Mark day 25 as completed #78
This file contains hidden or 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', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25'] | |
exclude: | |
# TODO: Investigate why building Zig on macOS fails | |
# https://github.com/fwcd/advent-of-code-2024/actions/runs/12202208638/job/34042374507 | |
- os: 'macos-latest' | |
day: '06' | |
# TODO: Figure out how to make this run using GNUstep | |
# https://github.com/fwcd/advent-of-code-2024/actions/runs/12301122542/job/34330958377 | |
- os: 'ubuntu-latest' | |
day: '12' | |
# TODO: Something's wrong with Dart on Linux | |
# https://github.com/fwcd/advent-of-code-2024/actions/runs/12476453049/job/34821297220 | |
- os: 'ubuntu-latest' | |
day: '22' | |
# TODO: This currently requires building the Swift compiler from scratch on (arm64) macOS, | |
# so we'll disable it to save time | |
# https://github.com/fwcd/advent-of-code-2024/actions/runs/12486410752/job/34846445144 | |
- os: 'macos-latest' | |
day: '25' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Build | |
# We have to disable sandboxing to allow derivations to access the network | |
# during builds. This is required e.g. to build day 9's PAKCS with Haskell | |
# Stack, which downloads its own GHC, packages etc. | |
run: nix build -v --option sandbox false || (nix log; exit 1) | |
working-directory: 'day${{ matrix.day }}' | |
- name: Run with input | |
run: nix run . resources/input.txt | |
working-directory: 'day${{ matrix.day }}' |