mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +03:00
chore: Fix ci script
This commit is contained in:
parent
7fae0bb979
commit
a6fcfe1ddd
28
.github/workflows/publish-node.yml
vendored
28
.github/workflows/publish-node.yml
vendored
@ -35,7 +35,7 @@ jobs:
|
||||
override: true
|
||||
|
||||
- name: Install node dependencies
|
||||
run: npm i
|
||||
run: yarn
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
@ -95,7 +95,7 @@ jobs:
|
||||
target: i686-pc-windows-msvc
|
||||
|
||||
- name: Install node dependencies
|
||||
run: npm i
|
||||
run: yarn
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
@ -128,7 +128,7 @@ jobs:
|
||||
target: aarch64-pc-windows-msvc
|
||||
|
||||
- name: Install node dependencies
|
||||
run: npm i
|
||||
run: yarn
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
@ -170,7 +170,7 @@ jobs:
|
||||
docker tag ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine builder
|
||||
|
||||
- name: "Install dependencies"
|
||||
run: npm i
|
||||
run: yarn
|
||||
|
||||
- name: "Build"
|
||||
run: |
|
||||
@ -179,7 +179,7 @@ jobs:
|
||||
- name: Run tests
|
||||
run: |
|
||||
docker pull node:lts-alpine
|
||||
docker run --rm -v $(pwd):/swc -w /swc node:lts-alpine sh -c "npm i && npm test"
|
||||
docker run --rm -v $(pwd):/swc -w /swc node:lts-alpine sh -c "yarn && npm test"
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
@ -216,7 +216,7 @@ jobs:
|
||||
key: aarch64-apple-darwin-publish-integration
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm i
|
||||
run: yarn
|
||||
|
||||
- name: Cross build aarch64
|
||||
run: |
|
||||
@ -269,7 +269,7 @@ jobs:
|
||||
sudo apt-get install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu -y
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm i
|
||||
run: yarn
|
||||
|
||||
- name: Cross build aarch64
|
||||
run: yarn build --target aarch64-unknown-linux-gnu
|
||||
@ -283,7 +283,7 @@ jobs:
|
||||
apt-get install -y ca-certificates gnupg2 curl && \
|
||||
curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
|
||||
apt-get install -y nodejs && \
|
||||
npm i && \
|
||||
yarn && \
|
||||
npm test
|
||||
"
|
||||
|
||||
@ -329,7 +329,7 @@ jobs:
|
||||
sudo apt-get install gcc-aarch64-linux-gnu -y
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm i
|
||||
run: yarn
|
||||
|
||||
- name: Cross build aarch64
|
||||
run: yarn build --target aarch64-unknown-linux-musl
|
||||
@ -340,7 +340,7 @@ jobs:
|
||||
args: >
|
||||
sh -c "sed -i -e 's/v[[:digit:]]\..*\//edge\//g' /etc/apk/repositories && \
|
||||
apk add nodejs npm && \
|
||||
npm i && \
|
||||
yarn && \
|
||||
npm test
|
||||
|
||||
- name: Upload artifact
|
||||
@ -385,7 +385,7 @@ jobs:
|
||||
sudo apt-get install gcc-arm-linux-gnueabihf -y
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm i
|
||||
run: yarn
|
||||
|
||||
- name: Cross build aarch64
|
||||
run: yarn build --target armv7-unknown-linux-gnueabihf
|
||||
@ -417,7 +417,7 @@ jobs:
|
||||
target: aarch64-linux-android
|
||||
|
||||
- name: Install node dependencies
|
||||
run: npm i
|
||||
run: yarn
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
@ -470,7 +470,7 @@ jobs:
|
||||
whoami
|
||||
env
|
||||
freebsd-version
|
||||
npm i
|
||||
yarn
|
||||
cargo build --release -p node
|
||||
yarn build
|
||||
npm test
|
||||
@ -513,7 +513,7 @@ jobs:
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm i
|
||||
run: yarn
|
||||
|
||||
- name: Download all artifacts
|
||||
uses: actions/download-artifact@v2
|
||||
|
Loading…
Reference in New Issue
Block a user