name: Build on: push: branches: [ master ] pull_request: branches: [ master ] env: CARGO_TERM_COLOR: always jobs: build: runs-on: ubuntu-latest container: image: rust:latest steps: - uses: actions/checkout@v3 - name: Cache dependencies uses: actions/cache@v3 with: path: | ~/.cargo/registry ~/.cargo/git target key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Build run: cargo build --release - name: Rename binary run: mv target/release/audio-typing target/release/voice-typing - name: Upload artifact uses: actions/upload-artifact@v3 with: name: voice-typing path: target/release/voice-typing