advent-of-code-2024/.gitea/workflows/build_and_run.yml
Louis Vallat 0218ede635
All checks were successful
Build and run challenges / Challenge for day (1) (push) Successful in 3s
Build and run challenges / Challenge for day (2) (push) Successful in 3s
Build and run challenges / Challenge for day (3) (push) Successful in 9s
wip: added dynamic input
Signed-off-by: Louis Vallat <contact@louis-vallat.fr>
2024-12-04 00:39:56 +01:00

26 lines
542 B
YAML

name: Build and run challenges
defaults:
run:
shell: sh
on:
push:
jobs:
build-and-run:
name: Challenge for day
strategy:
matrix:
day_number: [1, 2, 3]
runs-on: rust-bookworm
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Run challenge
env:
DAY_FOLDER: day${{ matrix.day_number }}
INPUT_BASE64: ${{ vars[format('INPUT_DAY{0}', matrix.day_number) }}
run: |
cd $DAY_FOLDER
cargo run --release input