diff --git a/.gitea/workflows/build_and_run.yml b/.gitea/workflows/build_and_run.yml new file mode 100644 index 0000000..5f85ca0 --- /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, 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 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 42f80ae..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,130 +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 - -day-5: - stage: build - script: - - cd day5; cargo run --release ./input - -day-6: - stage: build - script: - - cd day6; cargo run --release ./input - -day-7: - stage: build - script: - - cd day7; cargo run --release ./input - -day-8: - stage: build - script: - - cd day8; cargo run --release ./input - -day-9: - stage: build - script: - - cd day9; cargo run --release ./input - -day-10: - stage: build - script: - - cd day10; cargo run --release ./input - -day-11: - stage: build - script: - - cd day11; cargo run --release ./input - -day-12: - stage: build - script: - - cd day12; cargo run --release ./input - -day-13: - stage: build - script: - - cd day13; cargo run --release ./input - -day-14: - stage: build - script: - - cd day14; cargo run --release ./input - -day-15: - stage: build - script: - - cd day15; cargo run --release ./input - -day-16: - stage: build - script: - - cd day16; cargo run --release ./input - -day-17: - stage: build - script: - - cd day17; cargo run --release ./input - -day-18: - stage: build - script: - - cd day18; cargo run --release ./input - -day-19: - stage: build - script: - - cd day19; cargo run --release ./input - -day-20: - stage: build - script: - - cd day20; cargo run --release ./input - -day-21: - stage: build - script: - - cd day21; cargo run --release ./input - -day-22: - stage: build - script: - - cd day22; cargo run --release ./input - -day-23: - stage: build - script: - - cd day23; cargo run --release ./input - -day-24: - stage: build - script: - - cd day24; cargo run --release ./input - -day-25: - stage: build - script: - - cd day25; cargo run --release ./input