This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
Upgrade to Clap 4 #1045
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: Continuous Integration | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Run Clippy | |
run: | | |
cargo clippy --no-default-features --all-targets -- -D warnings | |
tests: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Execute tests | |
run: | | |
cargo test --all -- --test-threads=1 | |
env: | |
CARGO_INCREMENTAL: 0 | |
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests" | |
- name: Setup grcov | |
run: | | |
cargo install grcov | |
- name: Run grcov | |
run: | | |
zip -0 cov.zip $(find . -name "mirai*.gc*" -print) | |
grcov cov.zip -s . -t lcov --llvm --ignore-not-existing --ignore "/*" -o lcov.info | |
- name: Upload coverage data to codecov.io | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: "lcov.info" | |
mirai_on_mirai_macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Install MIRAI | |
run: | | |
cargo install --force --path ./checker --no-default-features | |
- name: Run MIRAI on MIRAI | |
run: | | |
cargo mirai --no-default-features | |
mirai_on_mirai_ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Install MIRAI | |
run: | | |
cargo install --force --path ./checker | |
- name: Run MIRAI on MIRAI | |
run: | | |
cargo mirai --no-default-features | |
mirai_on_mirai_windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Install MIRAI | |
run: | | |
cargo install --force --path ./checker | |
- name: Run MIRAI on MIRAI | |
run: | | |
cargo mirai --no-default-features | |