Update CI for 2023

No clippy warnings right now because everything is unsed anyway
This commit is contained in:
2023-11-26 14:46:37 +01:00
parent 0a22995055
commit 4785d71e0c

View File

@@ -1,7 +1,7 @@
on: on:
- push - push
name: Advent of Code 2022 name: Advent of Code 2023
jobs: jobs:
ci: ci:
@@ -20,33 +20,33 @@ jobs:
continue-on-error: ${{ matrix.experimental }} continue-on-error: ${{ matrix.experimental }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Install toolchain - name: Install toolchain
uses: actions-rs/toolchain@v1 uses: dtolnay/rust-toolchain@v1
with: with:
profile: minimal profile: minimal
toolchain: ${{ matrix.toolchain }} toolchain: ${{ matrix.toolchain }}
override: true override: true
components: rustfmt, clippy components: rustfmt
- name: Set up caching - name: Set up caching
uses: Swatinem/rust-cache@v2 uses: Swatinem/rust-cache@v2
with: with:
workspaces: > workspaces: >
2022 -> target 2023 -> target
- name: Build binaries - name: Build binaries
working-directory: 2022 working-directory: 2023
run: > run: >
cargo build --all-targets cargo build --all-targets
- name: Run tests - name: Run tests
working-directory: 2022 working-directory: 2023
run: > run: >
cargo test cargo test
- name: Run clippy - name: Check formatting
working-directory: 2022 working-directory: 2023
run: > run: >
cargo clippy -- --deny warnings cargo fmt --check