Merge pull request #31 from Guanran928/feat-shell-completions #102
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust build & test | |
permissions: {} | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
BUILD_TARGET: [release] | |
outputs: | |
release_built: ${{ steps.set-output.outputs.release_built }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 | |
- name: Build binaries in "${{ matrix.BUILD_TARGET }}" mode | |
run: cargo build --profile ${{ matrix.BUILD_TARGET }} | |
- name: Run tests in "${{ matrix.BUILD_TARGET }}" mode | |
run: cargo test --profile ${{ matrix.BUILD_TARGET }} |