From 77be768a7e78f3c775420ebfd22e5624ea3c3d90 Mon Sep 17 00:00:00 2001 From: mirsella Date: Thu, 7 Dec 2023 21:56:12 +0100 Subject: [PATCH] ci: update ci --- .github/workflows/cargo.yml | 11 +++++++++-- Cargo.toml => 2023/Cargo.toml | 0 {day1 => 2023/day1}/Cargo.toml | 0 {day1 => 2023/day1}/src/main.rs | 0 {day2 => 2023/day2}/Cargo.toml | 0 {day2 => 2023/day2}/src/main.rs | 0 {day3 => 2023/day3}/Cargo.toml | 0 {day3 => 2023/day3}/src/main.rs | 0 {day4 => 2023/day4}/Cargo.toml | 0 {day4 => 2023/day4}/src/main.rs | 0 {day5 => 2023/day5}/Cargo.toml | 0 {day5 => 2023/day5}/README.md | 0 {day5 => 2023/day5}/src/main.rs | 0 {day6 => 2023/day6}/Cargo.toml | 0 {day6 => 2023/day6}/src/main.rs | 0 {day7 => 2023/day7}/Cargo.toml | 0 {day7 => 2023/day7}/src/hand.rs | 0 {day7 => 2023/day7}/src/handjoker.rs | 0 {day7 => 2023/day7}/src/main.rs | 0 19 files changed, 9 insertions(+), 2 deletions(-) rename Cargo.toml => 2023/Cargo.toml (100%) rename {day1 => 2023/day1}/Cargo.toml (100%) rename {day1 => 2023/day1}/src/main.rs (100%) rename {day2 => 2023/day2}/Cargo.toml (100%) rename {day2 => 2023/day2}/src/main.rs (100%) rename {day3 => 2023/day3}/Cargo.toml (100%) rename {day3 => 2023/day3}/src/main.rs (100%) rename {day4 => 2023/day4}/Cargo.toml (100%) rename {day4 => 2023/day4}/src/main.rs (100%) rename {day5 => 2023/day5}/Cargo.toml (100%) rename {day5 => 2023/day5}/README.md (100%) rename {day5 => 2023/day5}/src/main.rs (100%) rename {day6 => 2023/day6}/Cargo.toml (100%) rename {day6 => 2023/day6}/src/main.rs (100%) rename {day7 => 2023/day7}/Cargo.toml (100%) rename {day7 => 2023/day7}/src/hand.rs (100%) rename {day7 => 2023/day7}/src/handjoker.rs (100%) rename {day7 => 2023/day7}/src/main.rs (100%) diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml index 43159fb..a460e20 100644 --- a/.github/workflows/cargo.yml +++ b/.github/workflows/cargo.yml @@ -6,10 +6,17 @@ jobs: test: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + folder: [2023] + steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - name: Create empty input.txt for compilation - run: for d in day*; do touch $d/input.txt; done + run: for d in ${{matrix.folder}}day*; do touch ${{matrix.folder}}$d/input.txt; done - name: Cargo Test - run: cargo test --workspace + run: | + cd ${{ matrix.folder }} + cargo test --workspace diff --git a/Cargo.toml b/2023/Cargo.toml similarity index 100% rename from Cargo.toml rename to 2023/Cargo.toml diff --git a/day1/Cargo.toml b/2023/day1/Cargo.toml similarity index 100% rename from day1/Cargo.toml rename to 2023/day1/Cargo.toml diff --git a/day1/src/main.rs b/2023/day1/src/main.rs similarity index 100% rename from day1/src/main.rs rename to 2023/day1/src/main.rs diff --git a/day2/Cargo.toml b/2023/day2/Cargo.toml similarity index 100% rename from day2/Cargo.toml rename to 2023/day2/Cargo.toml diff --git a/day2/src/main.rs b/2023/day2/src/main.rs similarity index 100% rename from day2/src/main.rs rename to 2023/day2/src/main.rs diff --git a/day3/Cargo.toml b/2023/day3/Cargo.toml similarity index 100% rename from day3/Cargo.toml rename to 2023/day3/Cargo.toml diff --git a/day3/src/main.rs b/2023/day3/src/main.rs similarity index 100% rename from day3/src/main.rs rename to 2023/day3/src/main.rs diff --git a/day4/Cargo.toml b/2023/day4/Cargo.toml similarity index 100% rename from day4/Cargo.toml rename to 2023/day4/Cargo.toml diff --git a/day4/src/main.rs b/2023/day4/src/main.rs similarity index 100% rename from day4/src/main.rs rename to 2023/day4/src/main.rs diff --git a/day5/Cargo.toml b/2023/day5/Cargo.toml similarity index 100% rename from day5/Cargo.toml rename to 2023/day5/Cargo.toml diff --git a/day5/README.md b/2023/day5/README.md similarity index 100% rename from day5/README.md rename to 2023/day5/README.md diff --git a/day5/src/main.rs b/2023/day5/src/main.rs similarity index 100% rename from day5/src/main.rs rename to 2023/day5/src/main.rs diff --git a/day6/Cargo.toml b/2023/day6/Cargo.toml similarity index 100% rename from day6/Cargo.toml rename to 2023/day6/Cargo.toml diff --git a/day6/src/main.rs b/2023/day6/src/main.rs similarity index 100% rename from day6/src/main.rs rename to 2023/day6/src/main.rs diff --git a/day7/Cargo.toml b/2023/day7/Cargo.toml similarity index 100% rename from day7/Cargo.toml rename to 2023/day7/Cargo.toml diff --git a/day7/src/hand.rs b/2023/day7/src/hand.rs similarity index 100% rename from day7/src/hand.rs rename to 2023/day7/src/hand.rs diff --git a/day7/src/handjoker.rs b/2023/day7/src/handjoker.rs similarity index 100% rename from day7/src/handjoker.rs rename to 2023/day7/src/handjoker.rs diff --git a/day7/src/main.rs b/2023/day7/src/main.rs similarity index 100% rename from day7/src/main.rs rename to 2023/day7/src/main.rs