feat: moved to gitea workflows for CI/CD
All checks were successful
Build and run challenges / Challenge for day (1) (push) Successful in 13s
Build and run challenges / Challenge for day (2) (push) Successful in 17s
Build and run challenges / Challenge for day (4) (push) Successful in 15s
Build and run challenges / Challenge for day (3) (push) Successful in 20s
All checks were successful
Build and run challenges / Challenge for day (1) (push) Successful in 13s
Build and run challenges / Challenge for day (2) (push) Successful in 17s
Build and run challenges / Challenge for day (4) (push) Successful in 15s
Build and run challenges / Challenge for day (3) (push) Successful in 20s
Signed-off-by: Louis Vallat <contact@louis-vallat.dev>
This commit is contained in:
parent
7da14f16a4
commit
72ec952f43
24
.gitea/workflows/build_and_run.yml
Normal file
24
.gitea/workflows/build_and_run.yml
Normal file
@ -0,0 +1,24 @@
|
||||
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, 4]
|
||||
runs-on: alpine
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
run: apk add git rust cargo
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: Run challenge
|
||||
run: |
|
||||
cd day${{ matrix.day_number }}
|
||||
cargo run --release ./input
|
@ -1,25 +0,0 @@
|
||||
default:
|
||||
image: rust
|
||||
|
||||
stages:
|
||||
- build
|
||||
|
||||
day-1:
|
||||
stage: build
|
||||
script:
|
||||
- cd day1; cargo run --release ./input
|
||||
|
||||
day-2:
|
||||
stage: build
|
||||
script:
|
||||
- cd day2; cargo run --release ./input
|
||||
|
||||
day-3:
|
||||
stage: build
|
||||
script:
|
||||
- cd day3; cargo run --release ./input
|
||||
|
||||
day-4:
|
||||
stage: build
|
||||
script:
|
||||
- cd day4; cargo run --release ./input
|
Loading…
Reference in New Issue
Block a user