Attempt at a harness #65
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
on: | |
- push | |
name: Advent of Code 2023 | |
jobs: | |
ci: | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
- beta | |
experimental: [false] | |
include: | |
- toolchain: nightly | |
experimental: true | |
name: Continuous Integration | |
runs-on: ubuntu-latest | |
continue-on-error: ${{ matrix.experimental }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.toolchain }} | |
override: true | |
components: rustfmt | |
- name: Set up caching | |
uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: > | |
2023 -> target | |
- name: Build binaries | |
working-directory: 2023 | |
run: > | |
cargo build --all-targets | |
- name: Run tests | |
working-directory: 2023 | |
run: > | |
cargo test | |
- name: Check formatting | |
working-directory: 2023 | |
run: > | |
cargo fmt --check |