Louis Vallat
52d6c30299
All checks were successful
Build and run challenges / Challenge for day ${{ matrix.day_number }} (1) (push) Successful in 15s
Build and run challenges / Challenge for day ${{ matrix.day_number }} (2) (push) Successful in 16s
Build and run challenges / Challenge for day ${{ matrix.day_number }} (3) (push) Successful in 14s
Signed-off-by: Louis Vallat <contact@louis-vallat.dev>
31 lines
798 B
YAML
31 lines
798 B
YAML
name: Build and run challenges
|
|
defaults:
|
|
run:
|
|
shell: sh
|
|
on:
|
|
push:
|
|
|
|
|
|
jobs:
|
|
build-and-run:
|
|
name: "Challenge for day ${{ matrix.day_number }}"
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
day_number: [1, 2, 3]
|
|
#day_number: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]
|
|
runs-on: debian-12
|
|
steps:
|
|
- name: Install dependencies
|
|
run: |
|
|
apt update
|
|
apt install git
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
- name: Setup Rust toolchain
|
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
- name: Run challenge for day ${{ matrix.day_number }}
|
|
run: |
|
|
cd day${{ matrix.day_number }}
|
|
cargo run --release ./input
|