advent-of-code-2021/.gitea/workflows/build_and_deploy.yml

25 lines
584 B
YAML
Raw Normal View History

name: Build and run challenges
defaults:
run:
shell: sh
on:
push:
jobs:
build-and-run:
name: Challenge for day ${{ matrix.day_number }}
strategy:
matrix:
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: alpine
steps:
- name: Install dependencies
run: apk add git rust
- name: Check out repository code
uses: actions/checkout@v4
- name: Run challenge
run: |
cd day${{ matrix.day_number }}
cargo run --release ./input