feat: simplified Github workflow by running ci/run_all.sh instead of … #99
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: Rust - Build, Test, Run | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
jobs: | |
BuildAndTest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose -- --nocapture | |
RunAll: | |
runs-on: ubuntu-latest | |
needs: BuildAndTest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run all AOC solutions in Release mode | |
run: cargo build --release && time ci/runall.sh |