mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-25 12:50:32 +01:00
Add CI for 2021
This commit is contained in:
46
.github/workflows/2021.yml
vendored
Normal file
46
.github/workflows/2021.yml
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
on:
|
||||||
|
- push
|
||||||
|
|
||||||
|
name: Advent of Code 2021
|
||||||
|
|
||||||
|
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@v2
|
||||||
|
|
||||||
|
- name: Install toolchain
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: ${{ matrix.toolchain }}
|
||||||
|
override: true
|
||||||
|
components: rustfmt, clippy
|
||||||
|
|
||||||
|
- name: Build binaries
|
||||||
|
working-directory: 2021
|
||||||
|
run: >
|
||||||
|
cargo build --all-targets
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
working-directory: 2021
|
||||||
|
run: >
|
||||||
|
cargo test
|
||||||
|
|
||||||
|
- name: Run clippy
|
||||||
|
working-directory: 2021
|
||||||
|
run: >
|
||||||
|
cargo clippy -- --deny warnings
|
||||||
Reference in New Issue
Block a user