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
14d3f01a
Unverified
Commit
14d3f01a
authored
Oct 28, 2021
by
Donny/강동윤
Committed by
GitHub
Oct 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exclude musl from target (#30548)
parent
387d6564
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
56 deletions
+57
-56
build_test_deploy.yml
.github/workflows/build_test_deploy.yml
+57
-55
package.json
packages/next/package.json
+0
-1
No files found.
.github/workflows/build_test_deploy.yml
View file @
14d3f01a
...
@@ -413,7 +413,8 @@ jobs:
...
@@ -413,7 +413,8 @@ jobs:
-
build-native
-
build-native
-
build-windows-i686
-
build-windows-i686
-
build-windows-aarch64
-
build-windows-aarch64
-
build-linux-musl
# Temporarily disabled
# - build-linux-musl
-
build-linux-arm7
-
build-linux-arm7
-
build-linux-aarch64
-
build-linux-aarch64
-
build-android-aarch64
-
build-android-aarch64
...
@@ -685,60 +686,61 @@ jobs:
...
@@ -685,60 +686,61 @@ jobs:
with
:
with
:
name
:
next-swc-binaries
name
:
next-swc-binaries
path
:
packages/next/native/next-swc.win32-arm64-msvc.node
path
:
packages/next/native/next-swc.win32-arm64-msvc.node
build-linux-musl
:
# Temporarily disabled
needs
:
build
# build-linux-musl:
if
:
${{ needs.build.outputs.isRelease == 'true' }}
# needs: build
name
:
next-swc - linux-musl - node@lts
# if: ${{ needs.build.outputs.isRelease == 'true' }}
runs-on
:
ubuntu-latest
# name: next-swc - linux-musl - node@lts
steps
:
# runs-on: ubuntu-latest
-
uses
:
actions/checkout@v2
# steps:
# - uses: actions/checkout@v2
-
run
:
echo ::set-output name=DOCS_CHANGE::$(node skip-docs-change.js echo 'not-docs-only-change')
id
:
docs-change
# - run: echo ::set-output name=DOCS_CHANGE::$(node skip-docs-change.js echo 'not-docs-only-change')
# id: docs-change
-
name
:
Login to registry
if
:
${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }}
# - name: Login to registry
run
:
|
# if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }}
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD $DOCKER_REGISTRY_URL
# run: |
env
:
# docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD $DOCKER_REGISTRY_URL
DOCKER_REGISTRY_URL
:
ghcr.io
# env:
DOCKER_USERNAME
:
${{ github.actor }}
# DOCKER_REGISTRY_URL: ghcr.io
DOCKER_PASSWORD
:
${{ secrets.GITHUB_TOKEN }}
# DOCKER_USERNAME: ${{ github.actor }}
# DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
-
name
:
Cache
if
:
${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }}
# - name: Cache
uses
:
actions/cache@v2
# if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }}
with
:
# uses: actions/cache@v2
path
:
|
# with:
target/
# path: |
key
:
linux-musl-publish-integration
# target/
# key: linux-musl-publish-integration
-
name
:
Pull docker image
if
:
${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }}
# - name: Pull docker image
run
:
|
# if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }}
docker pull ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
# run: |
docker tag ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine builder
# docker pull ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
# docker tag ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine builder
-
name
:
Cache native binary
if
:
${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }}
# - name: Cache native binary
id
:
binary-cache
# if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }}
uses
:
actions/cache@v2
# id: binary-cache
with
:
# uses: actions/cache@v2
path
:
packages/next/native/next-swc.linux-x64-musl.node
# with:
key
:
next-swc-nightly-2021-08-12-linux-x64-musl-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next/build/swc/**') }}
# path: packages/next/native/next-swc.linux-x64-musl.node
# key: next-swc-nightly-2021-08-12-linux-x64-musl-${{ hashFiles('.github/workflows/build_test_deploy.yml', 'packages/next/build/swc/**') }}
-
name
:
'
Build'
if
:
${{ steps.binary-cache.outputs.cache-hit != 'true' && steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }}
# - name: 'Build'
run
:
|
# if: ${{ steps.binary-cache.outputs.cache-hit != 'true' && steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }}
docker run --rm -v $(pwd)/packages/next:/swc -w /swc builder sh -c "yarn build-native"
# run: |
# docker run --rm -v $(pwd)/packages/next:/swc -w /swc builder sh -c "yarn build-native"
-
name
:
Upload artifact
if
:
${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }}
# - name: Upload artifact
uses
:
actions/upload-artifact@v2
# if: ${{ steps.docs-change.outputs.DOCS_CHANGE != 'docs only change' }}
with
:
# uses: actions/upload-artifact@v2
name
:
next-swc-binaries
# with:
path
:
packages/next/native/next-swc.linux-x64-musl.node
# name: next-swc-binaries
# path: packages/next/native/next-swc.linux-x64-musl.node
build-linux-aarch64
:
build-linux-aarch64
:
needs
:
build
needs
:
build
...
...
packages/next/package.json
View file @
14d3f01a
...
@@ -278,7 +278,6 @@
...
@@ -278,7 +278,6 @@
"triples"
:
{
"triples"
:
{
"defaults"
:
true
,
"defaults"
:
true
,
"additional"
:
[
"additional"
:
[
"x86_64-unknown-linux-musl"
,
"i686-pc-windows-msvc"
,
"i686-pc-windows-msvc"
,
"aarch64-unknown-linux-gnu"
,
"aarch64-unknown-linux-gnu"
,
"armv7-unknown-linux-gnueabihf"
,
"armv7-unknown-linux-gnueabihf"
,
...
...
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