Add CI for 2021

This commit is contained in:
2021-11-22 08:26:05 +01:00
parent cece8439a7
commit c985ba8a1a

46
.github/workflows/2021.yml vendored Normal file
View 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