diff --git a/.github/workflows/test-2024.yaml b/.github/workflows/test-2024.yaml index 06f7f02..6a046ed 100644 --- a/.github/workflows/test-2024.yaml +++ b/.github/workflows/test-2024.yaml @@ -1,12 +1,19 @@ -name: test +name: test-2024 on: push: branches: [ main ] + paths: + - '2024/**' + - '.github/workflows/test-2024.yaml' env: CARGO_TERM_COLOR: always +defaults: + run: + working-directory: 2024 + jobs: tests: name: AoC 2024 @@ -17,6 +24,7 @@ jobs: uses: actions-rust-lang/setup-rust-toolchain@v1 with: cache: true + cache-workspaces: 2024 components: clippy, rustfmt toolchain: stable rustflags: "" @@ -33,7 +41,7 @@ jobs: id: inputs uses: actions/cache@v4 with: - path: input + path: 2024/input key: ${{ steps.date.outputs.date }} - name: Get inputs from source