chore: Reduce cache of CI (#9063)

This commit is contained in:
Donny/강동윤 2024-06-16 20:19:40 +09:00 committed by GitHub
parent 886bf0e9c2
commit e7ec1e541d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -659,12 +659,13 @@ jobs:
- name: Cache execution results
uses: actions/cache@v3
if: ${{ matrix.settings.crate }} == 'swc' || ${{ startsWith(matrix.settings.crate, 'swc_ecma_transforms_') }}
with:
path: |
.swc-exec-cache
key: swc-exec-cache-${{ runner.os }}-${{ matrix.settings.crate }}-${{ hashFiles('**/Cargo.lock') }}
key: swc-exec-cache-${{ matrix.settings.crate }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
swc-exec-cache-${{ matrix.settings.crate }}-${{ runner.os }}
swc-exec-cache-${{ matrix.settings.crate }}
- name: Run cargo test
if: matrix.settings.crate != 'swc_plugin_runner' && matrix.settings.crate != 'swc_ecma_minifier' && matrix.settings.crate != 'swc_core' && matrix.settings.crate != 'swc_ecma_quote' && matrix.settings.crate != 'swc_cli' && matrix.settings.crate != 'binding_core_wasm'