From 72ec952f43b9f12d3ad7671f4ae8834ec1889c21 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Sat, 7 Sep 2024 14:44:07 +0200 Subject: [PATCH] feat: moved to gitea workflows for CI/CD Signed-off-by: Louis Vallat --- .gitea/workflows/build_and_run.yml | 24 ++++++++++++++++++++++++ .gitlab-ci.yml | 25 ------------------------- 2 files changed, 24 insertions(+), 25 deletions(-) create mode 100644 .gitea/workflows/build_and_run.yml delete mode 100644 .gitlab-ci.yml diff --git a/.gitea/workflows/build_and_run.yml b/.gitea/workflows/build_and_run.yml new file mode 100644 index 0000000..fa5483b --- /dev/null +++ b/.gitea/workflows/build_and_run.yml @@ -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 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 77e3e03..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -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