Add dependency on coreutils for day 4 #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run | |
on: | |
push: | |
jobs: | |
run: | |
runs-on: ${{ matrix.os }} | |
name: Day ${{ matrix.day }} (${{ matrix.os }}) | |
strategy: | |
matrix: | |
os: ['ubuntu-latest', 'macos-latest'] | |
day: ['01', '02', '03', '04', '05', '06', '07', '08'] | |
exclude: | |
# TODO: Investigate how we could build this with GNUStep | |
- os: 'ubuntu-latest' | |
day: '08' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Build | |
run: nix-build | |
working-directory: 'day${{ matrix.day }}' | |
- name: Run with input | |
run: 'result/bin/day${{ matrix.day }} resources/input.txt' | |
working-directory: 'day${{ matrix.day }}' |