Use 32/64-bit digits, depending on the system #71
Workflow file for this run
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: Examples | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'arbi/**' | |
| - 'examples/**' | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - 'arbi/**' | |
| - 'examples/**' | |
| workflow_dispatch: | |
| jobs: | |
| examples: | |
| name: Test Examples | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: | | |
| rustup update stable && rustup override set stable | |
| rustup toolchain install nightly | |
| rustup component add rustfmt --toolchain nightly | |
| - shell: bash | |
| run: | | |
| set -e | |
| for example in examples/*/; do | |
| echo "Processing $example" | |
| cd $example | |
| cargo clippy -- -D warnings | |
| cargo +nightly fmt -- --check | |
| cargo check --verbose | |
| cargo build --verbose | |
| cargo run --verbose | |
| cd ../.. | |
| done |