mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-25 12:50:32 +01:00
Update CI for 2023
No clippy warnings right now because everything is unsed anyway
This commit is contained in:
20
.github/workflows/2022.yml
vendored
20
.github/workflows/2022.yml
vendored
@@ -1,7 +1,7 @@
|
||||
on:
|
||||
- push
|
||||
|
||||
name: Advent of Code 2022
|
||||
name: Advent of Code 2023
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
@@ -20,33 +20,33 @@ jobs:
|
||||
continue-on-error: ${{ matrix.experimental }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
uses: dtolnay/rust-toolchain@v1
|
||||
with:
|
||||
profile: minimal
|
||||
toolchain: ${{ matrix.toolchain }}
|
||||
override: true
|
||||
components: rustfmt, clippy
|
||||
components: rustfmt
|
||||
|
||||
- name: Set up caching
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: >
|
||||
2022 -> target
|
||||
2023 -> target
|
||||
|
||||
- name: Build binaries
|
||||
working-directory: 2022
|
||||
working-directory: 2023
|
||||
run: >
|
||||
cargo build --all-targets
|
||||
|
||||
- name: Run tests
|
||||
working-directory: 2022
|
||||
working-directory: 2023
|
||||
run: >
|
||||
cargo test
|
||||
|
||||
- name: Run clippy
|
||||
working-directory: 2022
|
||||
- name: Check formatting
|
||||
working-directory: 2023
|
||||
run: >
|
||||
cargo clippy -- --deny warnings
|
||||
cargo fmt --check
|
||||
|
||||
Reference in New Issue
Block a user