CI: get real inputs, and do a full run
Some checks failed
test / AoC 2024 (push) Failing after 2m28s

This commit is contained in:
Keenan Tims 2024-12-13 23:24:24 -08:00
parent 8ae2115b52
commit e10dd61bd5
Signed by: ktims
GPG Key ID: 11230674D69038D4

View File

@ -20,10 +20,31 @@ jobs:
components: clippy, rustfmt
toolchain: stable
- name: fake inputs
- name: install cargo-aoc
run: cargo install --locked cargo-aoc
- name: get date
id: date
run: |
mkdir -p input/2024/
for i in $(seq 1 25); do touch input/2024/day${i}.txt; done
echo date=$(date +%Y%m%d) > $GITHUB_OUTPUT
- name: Get cached inputs
id: inputs
uses: actions/cache@v4
with:
path: input
key: ${{ steps.date.outputs.date }}
- name: Get inputs from source
if: steps.inputs.outputs.cache-hit != 'true'
run: |
cargo aoc credentials ${{ secrets.AOC_SESSION }}
for i in $(seq 1 25); do
dayfmt=$(printf %02d $i)
if [ ${{ steps.date.outputs.date }} -ge 202412${dayfmt} ]; then
cargo aoc input --year 2024 --day $i
fi
done
- name: cargo test
run: cargo test --lib --all-features
@ -31,5 +52,8 @@ jobs:
- name: rustfmt
run: cargo fmt --all -- --check
# - name: clippy
# run: cargo clippy --lib --all-features --tests -- -D warnings
- name: clippy
run: cargo clippy --lib --all-features --tests -- -D warnings
- name: full run
run: cargo run --release