diff --git a/.github/workflows/code-check.yaml b/.github/workflows/code-check.yaml index 8c6da356..07d9b88b 100644 --- a/.github/workflows/code-check.yaml +++ b/.github/workflows/code-check.yaml @@ -19,6 +19,7 @@ jobs: with: cache-all-crates: true shared-key: 'test-on-pr' + key: 'main' save-if: ${{ github.ref == 'refs/heads/main' }} # mainブランチにコミットが追加された時のみキャッシュを保存する cache-provider: 'github' - name: Set up clippy diff --git a/.github/workflows/python-build-check.yaml b/.github/workflows/python-build-check.yaml index 70afcfa6..530e1801 100644 --- a/.github/workflows/python-build-check.yaml +++ b/.github/workflows/python-build-check.yaml @@ -17,6 +17,7 @@ jobs: with: cache-all-crates: true shared-key: 'maturin-linux' + key: 'main' save-if: ${{ github.ref == 'refs/heads/main' }} # mainブランチにコミットが追加された時のみキャッシュを保存する cache-provider: 'github' - uses: actions/setup-python@v5 @@ -38,6 +39,7 @@ jobs: with: cache-all-crates: true shared-key: 'maturin-windows' + key: 'main' save-if: ${{ github.ref == 'refs/heads/main' }} # mainブランチにコミットが追加された時のみキャッシュを保存する cache-provider: 'github' - uses: actions/setup-python@v5 @@ -59,6 +61,7 @@ jobs: with: cache-all-crates: true shared-key: 'maturin-macos' + key: 'main' save-if: ${{ github.ref == 'refs/heads/main' }} # mainブランチにコミットが追加された時のみキャッシュを保存する cache-provider: 'github' - uses: actions/setup-python@v5 @@ -79,6 +82,7 @@ jobs: with: cache-all-crates: true shared-key: 'maturin-sdist' + key: 'main' save-if: ${{ github.ref == 'refs/heads/main' }} # mainブランチにコミットが追加された時のみキャッシュを保存する cache-provider: 'github' - name: Build sdist diff --git a/.github/workflows/wasm-pack-test.yaml b/.github/workflows/wasm-pack-test.yaml index 5f23761b..08c641f1 100644 --- a/.github/workflows/wasm-pack-test.yaml +++ b/.github/workflows/wasm-pack-test.yaml @@ -14,6 +14,7 @@ jobs: with: cache-all-crates: true shared-key: 'wasm-pack' + key: 'main' save-if: ${{ github.ref == 'refs/heads/main' }} # mainブランチにコミットが追加された時のみキャッシュを保存する cache-provider: 'github' - name: Install wasm-pack