Bump clap from 4.4.12 to 4.5.2 #47
Workflow file for this run
This file contains 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: Build | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
workflow_call: | |
inputs: | |
upload_artifacts: | |
required: false | |
type: boolean | |
release: | |
required: false | |
type: boolean | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
default: true | |
- name: Install libasound2-dev (Ubuntu) | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get install libasound2-dev | |
- name: cargo build | |
shell: bash | |
run: | | |
if [ ${{inputs.release}} ]; then | |
cargo build --release | |
else | |
cargo build | |
fi | |
- name: Upload build artifact (Windows) | |
uses: actions/upload-artifact@v4 | |
if: inputs.upload_artifacts && runner.os == 'Windows' | |
with: | |
name: chip8--${{runner.arch}}-${{ runner.os }} | |
path: target/release/chip8.exe | |
- name: Upload build artifact (Linux, OSX) | |
uses: actions/upload-artifact@v4 | |
if: inputs.upload_artifacts && runner.os != 'Windows' | |
with: | |
name: chip8--${{runner.arch}}-${{ runner.os }} | |
path: target/release/chip8 |