From c985ba8a1ada5aed1832db4a0067b03aea6e7604 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Mon, 22 Nov 2021 08:26:05 +0100 Subject: [PATCH] Add CI for 2021 --- .github/workflows/2021.yml | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/2021.yml diff --git a/.github/workflows/2021.yml b/.github/workflows/2021.yml new file mode 100644 index 0000000..95ccbbd --- /dev/null +++ b/.github/workflows/2021.yml @@ -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