Skip to content

Bump clap from 4.5.23 to 4.5.28 #842

Bump clap from 4.5.23 to 4.5.28

Bump clap from 4.5.23 to 4.5.28 #842

Workflow file for this run

on: push
name: Run
jobs:
run:
name: Run aoc days
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Cache rust artifacts
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }}-{{ hashFiles('rust-toolchain.toml') }}-v5
- name: Cache inputs
uses: actions/cache@v4
with:
path: |
inputs
key: aoc-inputs-${{ hashFiles('inputs/**') }}
- name: Run cargo build
run: |
cargo build --profile release-lto
env:
RUSTFLAGS: "-C target-cpu=native"
- name: Fetch inputs
env:
AOC_SESSION: ${{ secrets.AOC_SESSION }}
run: |
pip3 install -r scripts/requirements.txt
python3 ./scripts/fetch_inputs.py
- name: Run 2024 days
run: |
time ./target/release-lto/aoc --year 2024
- name: Run 2023 days
run: |
time ./target/release-lto/aoc --year 2023
- name: Run 2022 days
run: |
time ./target/release-lto/aoc --year 2022
- name: Run 2021 days
run: |
time ./target/release-lto/aoc --year 2021
- name: Run 2019 days
run: |
time ./target/release-lto/aoc --year 2019