advent-of-code-2024/.gitea/workflows/build_and_run.yml
Louis Vallat fdb63b50fa
feat: added day 1 part 1 and 2
Signed-off-by: Louis Vallat <contact@louis-vallat.fr>
2024-12-04 00:49:33 +01:00

27 lines
605 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]
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: ${{ secrets[format('INPUT_DAY{0}', matrix.day_number)] }}
run: |
echo $INPUT_BASE64 | base64 --decode > /tmp/input
cd $DAY_FOLDER
cargo run --release /tmp/input