stdlib: Use new destructuring assignment syntax #51
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: Tests | |
on: | |
push: | |
branches: [ master, dev ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
Test: | |
runs-on: ubuntu-22.04 | |
env: | |
CARGO_TERM_COLOR: always | |
steps: | |
- name: π₯ Checkout | |
uses: actions/checkout@v4 | |
- name: ποΈ Cache | |
uses: actions/cache@v4 | |
with: | |
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
- name: π Check for errors | |
run: cargo check --all-features | |
- name: π§Ή Check formatting | |
run: cargo fmt -- --check | |
- name: π Check with Clippy | |
run: cargo clippy --all-targets --all-features | |
- name: π¨ Build | |
run: cargo build --release | |
- name: π§ͺ Run tests | |
run: MINSC_EXE=target/release/minsc ./tests/test.sh | |
- name: π Run examples | |
run: MINSC_EXE=target/release/minsc ./tests/test.sh examples | |
- name: π¦ Prepare artifacts | |
run: strip target/release/minsc | |
- name: π€οΈ Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: minsc | |
path: target/release/minsc |