Skip to content

Day 17a

Day 17a #81

Workflow file for this run

---
name: CI
on: [ workflow_dispatch, push, pull_request ]
jobs:
omnilint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: docker://lpenz/omnilint:0.5.1
rust:
uses: lpenz/ghworkflow-rust/.github/workflows/[email protected]
with:
coveralls: true
publish_cratesio: false
publish_github_release: false
solve:
strategy:
matrix:
day:
- day01
- day02
- day03
- day04
- day05
- day06
- day07
- day08
- day09
- day10
- day11
- day12
- day13
- day14
- day15
- day16
- day17
part: [ a, b ]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: [ omnilint, rust ]
steps:
- uses: actions/[email protected]
- name: build ${{ matrix.day }}${{ matrix.part }}
run: |
cargo build \
--release \
-p ${{ matrix.day }} \
--bin ${{ matrix.day }}${{ matrix.part }}
- name: solve ${{ matrix.day }}${{ matrix.part }}
run: |
./target/release/${{ matrix.day }}${{ matrix.part }} \
< ${{ matrix.day }}/input.txt \
2>&1 | tee "$GITHUB_STEP_SUMMARY"