mirror of
https://github.com/swc-project/swc.git
synced 2024-11-23 00:32:15 +03:00
build(node): Fix glibc issue on linux gnu arm (#3255)
This commit is contained in:
parent
978de5943e
commit
214427157d
22
.github/workflows/publish-node.yml
vendored
22
.github/workflows/publish-node.yml
vendored
@ -44,9 +44,6 @@ jobs:
|
||||
yarn build --target i686-pc-windows-msvc
|
||||
yarn test
|
||||
target: i686-pc-windows-msvc
|
||||
setup: |
|
||||
choco install nodejs-lts --x86 -y --force
|
||||
echo "C:\Program Files (x86)\nodejs" >> $GITHUB_PATH
|
||||
- host: ubuntu-latest
|
||||
target: x86_64-unknown-linux-gnu
|
||||
docker: |
|
||||
@ -77,7 +74,7 @@ jobs:
|
||||
cp ./target/aarch64-apple-darwin/release/swc .
|
||||
yarn build --target=aarch64-apple-darwin
|
||||
strip -x *.node
|
||||
- host: ubuntu-latest
|
||||
- host: ubuntu-18.04
|
||||
target: aarch64-unknown-linux-gnu
|
||||
setup: |
|
||||
sudo apt-get update
|
||||
@ -87,7 +84,7 @@ jobs:
|
||||
cp ./target/aarch64-unknown-linux-gnu/release/swc .
|
||||
yarn build --target=aarch64-unknown-linux-gnu
|
||||
aarch64-linux-gnu-strip swc.linux-arm64-gnu.node
|
||||
- host: ubuntu-latest
|
||||
- host: ubuntu-18.04
|
||||
target: armv7-unknown-linux-gnueabihf
|
||||
setup: |
|
||||
sudo apt-get update
|
||||
@ -139,11 +136,22 @@ jobs:
|
||||
runs-on: ${{ matrix.settings.host }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup node
|
||||
- name: Setup node x64
|
||||
uses: actions/setup-node@v2
|
||||
if: matrix.settings.target != 'i686-pc-windows-msvc'
|
||||
with:
|
||||
node-version: 14
|
||||
node-version: 16
|
||||
check-latest: true
|
||||
cache: yarn
|
||||
architecture: x64
|
||||
- name: Setup node x86
|
||||
uses: actions/setup-node@v2
|
||||
if: matrix.settings.target == 'i686-pc-windows-msvc'
|
||||
with:
|
||||
node-version: 16
|
||||
check-latest: true
|
||||
cache: yarn
|
||||
architecture: x86
|
||||
- name: Install
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user