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