Unverified Commit 14d3f01a authored by Donny/강동윤's avatar Donny/강동윤 Committed by GitHub

Exclude musl from target (#30548)

parent 387d6564
...@@ -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
......
...@@ -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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment