mirror of
https://git.sr.ht/~anthonycicc/advent_of_code_2023
synced 2025-04-20 13:34:12 -04:00
CI
This commit is contained in:
parent
1049feb012
commit
e6f5ad7462
5 changed files with 16 additions and 0 deletions
16
.build.yml
16
.build.yml
|
@ -3,3 +3,19 @@ tasks:
|
||||||
- test: |
|
- test: |
|
||||||
cd advent_of_code_2023
|
cd advent_of_code_2023
|
||||||
nix --extra-experimental-features 'nix-command flakes' flake check
|
nix --extra-experimental-features 'nix-command flakes' flake check
|
||||||
|
- build: |
|
||||||
|
cd advent_of_code_2023
|
||||||
|
nix --extra-experimental-features 'nix-command flakes' build
|
||||||
|
- run_aoc: |
|
||||||
|
cd advent_of_code_2023
|
||||||
|
for identity in anthonycicc acicchetti-jf; do
|
||||||
|
for day in one; do
|
||||||
|
for part in one two; do
|
||||||
|
path="inputs/${identity}/day_${day}/${part}.txt"
|
||||||
|
if [[ -f "$path" ]]; then
|
||||||
|
echo "$identity - $day - $part"
|
||||||
|
nix --extra-experimental-features 'nix-command flakes' run '.' -- -d $day -p $part -f "$path"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue