Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
775254af
Unverified
Commit
775254af
authored
Jan 23, 2023
by
JJ Kasper
Committed by
GitHub
Jan 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add timeout for actions/cache restoring (#45198)
parent
e6ff749a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
2 deletions
+38
-2
build_test_deploy.yml
.github/workflows/build_test_deploy.yml
+32
-0
pull_request_stats.yml
.github/workflows/pull_request_stats.yml
+6
-2
No files found.
.github/workflows/build_test_deploy.yml
View file @
775254af
...
@@ -73,6 +73,7 @@ jobs:
...
@@ -73,6 +73,7 @@ jobs:
run
:
echo STORE_PATH=$(pnpm store path) >> $GITHUB_OUTPUT
run
:
echo STORE_PATH=$(pnpm store path) >> $GITHUB_OUTPUT
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
id
:
cache-pnpm-store
id
:
cache-pnpm-store
with
:
with
:
path
:
${{ steps.get-store-path.outputs.STORE_PATH }}
path
:
${{ steps.get-store-path.outputs.STORE_PATH }}
...
@@ -101,6 +102,7 @@ jobs:
...
@@ -101,6 +102,7 @@ jobs:
run
:
echo "WEEK=$(date +%U)" >> $GITHUB_OUTPUT
run
:
echo "WEEK=$(date +%U)" >> $GITHUB_OUTPUT
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
id
:
cache-build
id
:
cache-build
with
:
with
:
path
:
./*
path
:
./*
...
@@ -119,6 +121,7 @@ jobs:
...
@@ -119,6 +121,7 @@ jobs:
-
run
:
npm i -g pnpm@${PNPM_VERSION}
-
run
:
npm i -g pnpm@${PNPM_VERSION}
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
id
:
restore-build
id
:
restore-build
with
:
with
:
path
:
./*
path
:
./*
...
@@ -131,6 +134,7 @@ jobs:
...
@@ -131,6 +134,7 @@ jobs:
needs
:
build
needs
:
build
steps
:
steps
:
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
id
:
restore-build
id
:
restore-build
if
:
${{needs.build.outputs.docsChange == 'nope'}}
if
:
${{needs.build.outputs.docsChange == 'nope'}}
with
:
with
:
...
@@ -152,6 +156,7 @@ jobs:
...
@@ -152,6 +156,7 @@ jobs:
-
name
:
Cache cargo registry
-
name
:
Cache cargo registry
uses
:
actions/cache@v3
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{ steps.swc-change.outputs.SWC_CHANGE == 'yup' }}
if
:
${{ steps.swc-change.outputs.SWC_CHANGE == 'yup' }}
with
:
with
:
path
:
~/.cargo/registry
path
:
~/.cargo/registry
...
@@ -159,6 +164,7 @@ jobs:
...
@@ -159,6 +164,7 @@ jobs:
-
name
:
Cache cargo index
-
name
:
Cache cargo index
uses
:
actions/cache@v3
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{ steps.swc-change.outputs.SWC_CHANGE == 'yup' }}
if
:
${{ steps.swc-change.outputs.SWC_CHANGE == 'yup' }}
with
:
with
:
path
:
~/.cargo/git
path
:
~/.cargo/git
...
@@ -197,6 +203,7 @@ jobs:
...
@@ -197,6 +203,7 @@ jobs:
if
:
${{needs.build.outputs.docsChange == 'nope'}}
if
:
${{needs.build.outputs.docsChange == 'nope'}}
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{needs.build.outputs.docsChange == 'nope'}}
if
:
${{needs.build.outputs.docsChange == 'nope'}}
id
:
restore-build
id
:
restore-build
with
:
with
:
...
@@ -233,6 +240,7 @@ jobs:
...
@@ -233,6 +240,7 @@ jobs:
check-latest
:
true
check-latest
:
true
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{needs.build.outputs.docsChange == 'nope'}}
if
:
${{needs.build.outputs.docsChange == 'nope'}}
id
:
restore-build
id
:
restore-build
with
:
with
:
...
@@ -272,6 +280,7 @@ jobs:
...
@@ -272,6 +280,7 @@ jobs:
run
:
sudo ethtool -K eth0 tx off rx off
run
:
sudo ethtool -K eth0 tx off rx off
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{needs.build.outputs.docsChange == 'nope'}}
if
:
${{needs.build.outputs.docsChange == 'nope'}}
id
:
restore-build
id
:
restore-build
with
:
with
:
...
@@ -332,6 +341,7 @@ jobs:
...
@@ -332,6 +341,7 @@ jobs:
run
:
sudo ethtool -K eth0 tx off rx off
run
:
sudo ethtool -K eth0 tx off rx off
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{needs.build.outputs.docsChange == 'nope'}}
if
:
${{needs.build.outputs.docsChange == 'nope'}}
id
:
restore-build
id
:
restore-build
with
:
with
:
...
@@ -391,6 +401,7 @@ jobs:
...
@@ -391,6 +401,7 @@ jobs:
run
:
sudo ethtool -K eth0 tx off rx off
run
:
sudo ethtool -K eth0 tx off rx off
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{needs.build.outputs.docsChange == 'nope'}}
if
:
${{needs.build.outputs.docsChange == 'nope'}}
id
:
restore-build
id
:
restore-build
with
:
with
:
...
@@ -441,6 +452,7 @@ jobs:
...
@@ -441,6 +452,7 @@ jobs:
run
:
sudo ethtool -K eth0 tx off rx off
run
:
sudo ethtool -K eth0 tx off rx off
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{needs.build.outputs.docsChange == 'nope'}}
if
:
${{needs.build.outputs.docsChange == 'nope'}}
id
:
restore-build
id
:
restore-build
with
:
with
:
...
@@ -486,6 +498,7 @@ jobs:
...
@@ -486,6 +498,7 @@ jobs:
run
:
sudo ethtool -K eth0 tx off rx off
run
:
sudo ethtool -K eth0 tx off rx off
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{ needs.build.outputs.docsChange == 'nope' }}
if
:
${{ needs.build.outputs.docsChange == 'nope' }}
id
:
restore-build
id
:
restore-build
with
:
with
:
...
@@ -561,6 +574,7 @@ jobs:
...
@@ -561,6 +574,7 @@ jobs:
run
:
sudo ethtool -K eth0 tx off rx off
run
:
sudo ethtool -K eth0 tx off rx off
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{needs.build.outputs.docsChange == 'nope'}}
if
:
${{needs.build.outputs.docsChange == 'nope'}}
id
:
restore-build
id
:
restore-build
with
:
with
:
...
@@ -616,6 +630,7 @@ jobs:
...
@@ -616,6 +630,7 @@ jobs:
check-latest
:
true
check-latest
:
true
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{needs.build.outputs.docsChange == 'nope'}}
if
:
${{needs.build.outputs.docsChange == 'nope'}}
id
:
restore-build
id
:
restore-build
with
:
with
:
...
@@ -663,6 +678,7 @@ jobs:
...
@@ -663,6 +678,7 @@ jobs:
NEXT_TELEMETRY_DISABLED
:
1
NEXT_TELEMETRY_DISABLED
:
1
steps
:
steps
:
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{needs.build.outputs.docsChange == 'nope'}}
if
:
${{needs.build.outputs.docsChange == 'nope'}}
id
:
restore-build
id
:
restore-build
with
:
with
:
...
@@ -691,6 +707,7 @@ jobs:
...
@@ -691,6 +707,7 @@ jobs:
run
:
sudo ethtool -K eth0 tx off rx off
run
:
sudo ethtool -K eth0 tx off rx off
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{needs.build.outputs.docsChange == 'nope'}}
if
:
${{needs.build.outputs.docsChange == 'nope'}}
id
:
restore-build
id
:
restore-build
with
:
with
:
...
@@ -715,6 +732,7 @@ jobs:
...
@@ -715,6 +732,7 @@ jobs:
NEXT_TELEMETRY_DISABLED
:
1
NEXT_TELEMETRY_DISABLED
:
1
steps
:
steps
:
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{needs.build.outputs.docsChange == 'nope'}}
if
:
${{needs.build.outputs.docsChange == 'nope'}}
id
:
restore-build
id
:
restore-build
with
:
with
:
...
@@ -754,6 +772,7 @@ jobs:
...
@@ -754,6 +772,7 @@ jobs:
run
:
sudo ethtool -K eth0 tx off rx off
run
:
sudo ethtool -K eth0 tx off rx off
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
id
:
restore-build
id
:
restore-build
with
:
with
:
path
:
./*
path
:
./*
...
@@ -784,6 +803,7 @@ jobs:
...
@@ -784,6 +803,7 @@ jobs:
VERCEL_TEST_TEAM
:
vtest314-next-e2e-tests
VERCEL_TEST_TEAM
:
vtest314-next-e2e-tests
steps
:
steps
:
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
id
:
restore-build
id
:
restore-build
with
:
with
:
path
:
./*
path
:
./*
...
@@ -823,6 +843,7 @@ jobs:
...
@@ -823,6 +843,7 @@ jobs:
check-latest
:
true
check-latest
:
true
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
id
:
restore-build
id
:
restore-build
with
:
with
:
path
:
./*
path
:
./*
...
@@ -857,6 +878,7 @@ jobs:
...
@@ -857,6 +878,7 @@ jobs:
-
name
:
Cache cargo registry
-
name
:
Cache cargo registry
uses
:
actions/cache@v3
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
if
:
${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
with
:
with
:
path
:
~/.cargo/registry
path
:
~/.cargo/registry
...
@@ -864,6 +886,7 @@ jobs:
...
@@ -864,6 +886,7 @@ jobs:
-
name
:
Cache cargo index
-
name
:
Cache cargo index
uses
:
actions/cache@v3
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
if
:
${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
with
:
with
:
path
:
~/.cargo/git
path
:
~/.cargo/git
...
@@ -876,6 +899,7 @@ jobs:
...
@@ -876,6 +899,7 @@ jobs:
-
name
:
Turbo Cache
-
name
:
Turbo Cache
id
:
turbo-cache
id
:
turbo-cache
uses
:
actions/cache@v3
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
if
:
${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
with
:
with
:
path
:
.turbo
path
:
.turbo
...
@@ -895,6 +919,7 @@ jobs:
...
@@ -895,6 +919,7 @@ jobs:
# So we get latest cache
# So we get latest cache
-
name
:
Cache built files
-
name
:
Cache built files
uses
:
actions/cache@v3
uses
:
actions/cache@v3
timeout-minutes
:
2
with
:
with
:
path
:
./packages/next-swc/target
path
:
./packages/next-swc/target
key
:
next-swc-cargo-cache-dev-ubuntu-latest-${{ hashFiles('**/Cargo.lock') }}
key
:
next-swc-cargo-cache-dev-ubuntu-latest-${{ hashFiles('**/Cargo.lock') }}
...
@@ -962,6 +987,7 @@ jobs:
...
@@ -962,6 +987,7 @@ jobs:
steps
:
steps
:
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{needs.build.outputs.docsChange == 'nope'}}
if
:
${{needs.build.outputs.docsChange == 'nope'}}
id
:
restore-build
id
:
restore-build
with
:
with
:
...
@@ -1146,6 +1172,7 @@ jobs:
...
@@ -1146,6 +1172,7 @@ jobs:
# So we get latest cache
# So we get latest cache
-
name
:
Cache built files
-
name
:
Cache built files
uses
:
actions/cache@v3
uses
:
actions/cache@v3
timeout-minutes
:
2
with
:
with
:
path
:
./packages/next-swc/target
path
:
./packages/next-swc/target
key
:
next-swc-cargo-cache-${{ matrix.settings.target }}--${{ hashFiles('**/Cargo.lock') }}
key
:
next-swc-cargo-cache-${{ matrix.settings.target }}--${{ hashFiles('**/Cargo.lock') }}
...
@@ -1170,12 +1197,14 @@ jobs:
...
@@ -1170,12 +1197,14 @@ jobs:
-
name
:
Cache cargo registry
-
name
:
Cache cargo registry
uses
:
actions/cache@v3
uses
:
actions/cache@v3
timeout-minutes
:
2
with
:
with
:
path
:
~/.cargo/registry
path
:
~/.cargo/registry
key
:
${{ matrix.settings.target }}-cargo-registry
key
:
${{ matrix.settings.target }}-cargo-registry
-
name
:
Cache cargo index
-
name
:
Cache cargo index
uses
:
actions/cache@v3
uses
:
actions/cache@v3
timeout-minutes
:
2
with
:
with
:
path
:
~/.cargo/git
path
:
~/.cargo/git
key
:
${{ matrix.settings.target }}-cargo-index
key
:
${{ matrix.settings.target }}-cargo-index
...
@@ -1354,6 +1383,7 @@ jobs:
...
@@ -1354,6 +1383,7 @@ jobs:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{needs.build.outputs.docsChange == 'nope'}}
if
:
${{needs.build.outputs.docsChange == 'nope'}}
id
:
restore-build
id
:
restore-build
with
:
with
:
...
@@ -1381,6 +1411,7 @@ jobs:
...
@@ -1381,6 +1411,7 @@ jobs:
-
name
:
Turbo Cache
-
name
:
Turbo Cache
id
:
turbo-cache
id
:
turbo-cache
uses
:
actions/cache@v3
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{needs.build.outputs.docsChange == 'nope'}}
if
:
${{needs.build.outputs.docsChange == 'nope'}}
with
:
with
:
path
:
.turbo
path
:
.turbo
...
@@ -1440,6 +1471,7 @@ jobs:
...
@@ -1440,6 +1471,7 @@ jobs:
check-latest
:
true
check-latest
:
true
-
uses
:
actions/cache@v3
-
uses
:
actions/cache@v3
timeout-minutes
:
2
id
:
restore-build
id
:
restore-build
if
:
${{needs.build.outputs.docsChange == 'nope'}}
if
:
${{needs.build.outputs.docsChange == 'nope'}}
with
:
with
:
...
...
.github/workflows/pull_request_stats.yml
View file @
775254af
...
@@ -28,14 +28,16 @@ jobs:
...
@@ -28,14 +28,16 @@ jobs:
id
:
docs-change
id
:
docs-change
-
name
:
Cache cargo registry
-
name
:
Cache cargo registry
uses
:
actions/cache@v1
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
if
:
${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
with
:
with
:
path
:
~/.cargo/registry
path
:
~/.cargo/registry
key
:
stable-ubuntu-latest-node@14-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
key
:
stable-ubuntu-latest-node@14-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
-
name
:
Cache cargo index
-
name
:
Cache cargo index
uses
:
actions/cache@v1
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
if
:
${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
with
:
with
:
path
:
~/.cargo/git
path
:
~/.cargo/git
...
@@ -48,6 +50,7 @@ jobs:
...
@@ -48,6 +50,7 @@ jobs:
-
name
:
Turbo Cache
-
name
:
Turbo Cache
id
:
turbo-cache
id
:
turbo-cache
uses
:
actions/cache@v3
uses
:
actions/cache@v3
timeout-minutes
:
2
if
:
${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
if
:
${{ steps.docs-change.outputs.DOCS_CHANGE == 'nope' }}
with
:
with
:
path
:
.turbo
path
:
.turbo
...
@@ -62,6 +65,7 @@ jobs:
...
@@ -62,6 +65,7 @@ jobs:
# So we get latest cache
# So we get latest cache
-
name
:
Cache built files
-
name
:
Cache built files
uses
:
actions/cache@v3
uses
:
actions/cache@v3
timeout-minutes
:
2
with
:
with
:
path
:
./packages/next-target
path
:
./packages/next-target
key
:
next-swc-cargo-cache-ubuntu-latest--${{ hashFiles('**/Cargo.lock') }}
key
:
next-swc-cargo-cache-ubuntu-latest--${{ hashFiles('**/Cargo.lock') }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment