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
8d82d769
Unverified
Commit
8d82d769
authored
Oct 26, 2021
by
JJ Kasper
Committed by
GitHub
Oct 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make check release job parallel to build job (#30350)
parent
8077f421
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
28 deletions
+34
-28
build_test_deploy.yml
.github/workflows/build_test_deploy.yml
+34
-28
No files found.
.github/workflows/build_test_deploy.yml
View file @
8d82d769
...
...
@@ -17,13 +17,30 @@ jobs:
-
name
:
Check examples
run
:
./scripts/check-examples.sh
checkIsRelease
:
runs-on
:
ubuntu-latest
outputs
:
isRelease
:
${{ steps.check-release.outputs.IS_RELEASE }}
steps
:
-
uses
:
actions/checkout@v2
with
:
fetch-depth
:
25
-
run
:
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
-
id
:
check-release
run
:
|
if [[ $(git describe --exact-match 2> /dev/null || :) = v* ]];
then
echo "::set-output name=IS_RELEASE::true"
else
echo "::set-output name=IS_RELEASE::false"
fi
build
:
runs-on
:
ubuntu-latest
env
:
NEXT_TELEMETRY_DISABLED
:
1
outputs
:
docsChange
:
${{ steps.docs-change.outputs.DOCS_CHANGE }}
isRelease
:
${{ steps.check-release.outputs.IS_RELEASE }}
steps
:
-
uses
:
actions/checkout@v2
with
:
...
...
@@ -32,24 +49,12 @@ jobs:
# https://github.com/actions/virtual-environments/issues/1187
-
name
:
tune linux network
run
:
sudo ethtool -K eth0 tx off rx off
-
run
:
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
-
run
:
yarn install --frozen-lockfile --check-files
-
run
:
node run-tests.js --timings --write-timings -g 1/1
-
name
:
Check docs only change
run
:
echo ::set-output name=DOCS_CHANGE::$(node skip-docs-change.js echo 'not-docs-only-change')
id
:
docs-change
-
run
:
echo ${{steps.docs-change.outputs.DOCS_CHANGE}}
-
run
:
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
-
run
:
git describe
-
id
:
check-release
run
:
|
if [[ $(git describe --exact-match 2> /dev/null || :) = v* ]];
then
echo "::set-output name=IS_RELEASE::true"
else
echo "::set-output name=IS_RELEASE::false"
fi
-
uses
:
actions/cache@v2
id
:
cache-build
with
:
...
...
@@ -405,10 +410,11 @@ jobs:
if
:
${{needs.build.outputs.docsChange != 'docs only change'}}
publishRelease
:
if
:
${{ needs.
build
.outputs.isRelease == 'true' }}
if
:
${{ needs.
checkIsRelease
.outputs.isRelease == 'true' }}
name
:
Potentially publish release
runs-on
:
ubuntu-latest
needs
:
-
checkIsRelease
-
build
-
build-native
-
build-windows-i686
...
...
@@ -581,8 +587,8 @@ jobs:
if
:
${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }}
build-windows-i686
:
needs
:
build
if
:
${{ needs.
build
.outputs.isRelease == 'true' }}
needs
:
checkIsRelease
if
:
${{ needs.
checkIsRelease
.outputs.isRelease == 'true' }}
name
:
next-swc - windows-i686 - node@14
runs-on
:
windows-latest
env
:
...
...
@@ -640,8 +646,8 @@ jobs:
path
:
packages/next/native/next-swc.win32-ia32-msvc.node
build-windows-aarch64
:
needs
:
build
if
:
${{ needs.
build
.outputs.isRelease == 'true' }}
needs
:
checkIsRelease
if
:
${{ needs.
checkIsRelease
.outputs.isRelease == 'true' }}
name
:
next-swc - windows-aarch64 - node@14
runs-on
:
windows-latest
steps
:
...
...
@@ -687,8 +693,8 @@ jobs:
path
:
packages/next/native/next-swc.win32-arm64-msvc.node
build-linux-musl
:
needs
:
build
if
:
${{ needs.
build
.outputs.isRelease == 'true' }}
needs
:
checkIsRelease
if
:
${{ needs.
checkIsRelease
.outputs.isRelease == 'true' }}
name
:
next-swc - linux-musl - node@lts
runs-on
:
ubuntu-latest
steps
:
...
...
@@ -741,8 +747,8 @@ jobs:
path
:
packages/next/native/next-swc.linux-x64-musl.node
build-linux-aarch64
:
needs
:
build
if
:
${{ needs.
build
.outputs.isRelease == 'true' }}
needs
:
checkIsRelease
if
:
${{ needs.
checkIsRelease
.outputs.isRelease == 'true' }}
name
:
next-swc - aarch64-unknown-linux-gnu - node@14
runs-on
:
ubuntu-18.04
steps
:
...
...
@@ -803,8 +809,8 @@ jobs:
path
:
packages/next/native/next-swc.linux-arm64-gnu.node
build-linux-aarch64-musl
:
needs
:
build
if
:
${{ needs.
build
.outputs.isRelease == 'true' }}
needs
:
checkIsRelease
if
:
${{ needs.
checkIsRelease
.outputs.isRelease == 'true' }}
name
:
next-swc - aarch64-unknown-linux-musl - node@14
runs-on
:
ubuntu-18.04
steps
:
...
...
@@ -863,8 +869,8 @@ jobs:
path
:
packages/next/native/next-swc.linux-arm64-musl.node
build-linux-arm7
:
needs
:
build
if
:
${{ needs.
build
.outputs.isRelease == 'true' }}
needs
:
checkIsRelease
if
:
${{ needs.
checkIsRelease
.outputs.isRelease == 'true' }}
name
:
next-swc - arm7-unknown-linux-gnu - node@14
runs-on
:
ubuntu-18.04
steps
:
...
...
@@ -925,8 +931,8 @@ jobs:
path
:
packages/next/native/next-swc.linux-arm-gnueabihf.node
build-android-aarch64
:
needs
:
build
if
:
${{ needs.
build
.outputs.isRelease == 'true' }}
needs
:
checkIsRelease
if
:
${{ needs.
checkIsRelease
.outputs.isRelease == 'true' }}
name
:
next-swc - Android - aarch64
runs-on
:
macos-latest
steps
:
...
...
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