Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failed cache restoring #46083

Merged
merged 2 commits into from
Feb 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build_test_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ jobs:

testFirefox:
name: Test Firefox (production)
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: [build, build-native-test]
timeout-minutes: 10
env:
Expand All @@ -696,7 +696,7 @@ jobs:

testSafari:
name: Test Safari (production)
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: [build, build-native-test]
timeout-minutes: 15
env:
Expand Down Expand Up @@ -725,7 +725,7 @@ jobs:

testFirefoxNode18:
name: Test Firefox Node.js 18
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: [build, testFirefox, build-native-test]
timeout-minutes: 10
env:
Expand Down Expand Up @@ -983,7 +983,7 @@ jobs:

test-wasm:
name: Test the wasm build
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
timeout-minutes: 15
needs: [build, build-native-test, build-wasm-dev]

Expand Down
19 changes: 8 additions & 11 deletions .github/workflows/pull_request_stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ jobs:
# We will not get exact match, but doc says
# "If there are multiple partial matches for a restore key, the action returns the most recently created cache."
# So we get latest cache
- name: Cache built files
uses: actions/cache@v3
timeout-minutes: 5
with:
path: ./packages/next-target
key: next-swc-cargo-cache-ubuntu-latest--${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
next-swc-cargo-cache-ubuntu-latest
# - name: Cache built files
# uses: actions/cache@v3
# timeout-minutes: 5
# with:
# path: ./packages/next-target
# key: next-swc-cargo-cache-ubuntu-latest--${{ hashFiles('**/Cargo.lock') }}
# restore-keys: |
# next-swc-cargo-cache-ubuntu-latest

- name: Build in docker
uses: addnab/docker-run-action@v3
Expand All @@ -88,9 +88,6 @@ jobs:
turbo run build-native --cache-dir=".turbo" -- --target x86_64-unknown-linux-gnu &&
strip packages/next-swc/native/next-swc.*.node

- run: sudo chown -R $USER:$GROUP ./packages/next-swc/target
if: ${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
Expand Down