chore: Fix publish action

This commit is contained in:
강동윤 (Donny) 2023-11-21 11:50:27 +09:00
parent 23fdaf13f8
commit 8ac47a370e
15 changed files with 23 additions and 208 deletions

View File

@ -102,18 +102,18 @@ jobs:
export CC_aarch64_unknown_linux_gnu=/usr/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc &&
yarn build --target aarch64-unknown-linux-gnu &&
llvm-strip -x swc.linux-arm64-gnu.node
- host: ubuntu-latest
target: armv7-unknown-linux-gnueabihf
setup: |
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf -y
# Use napi to build cli binary here to use zig as linker
build: |
export DISABLE_PLUGIN_E2E_TESTS=true
yarn napi build --bin swc --release --target armv7-unknown-linux-gnueabihf --cargo-cwd ./bindings/swc_cli --cargo-name swc --zig --zig-link-only
chmod +x ./swc
yarn build --target armv7-unknown-linux-gnueabihf --cargo-flags='--no-default-features --features swc_v1'
arm-linux-gnueabihf-strip swc.linux-arm-gnueabihf.node
# - host: ubuntu-latest
# target: armv7-unknown-linux-gnueabihf
# setup: |
# sudo apt-get update
# sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf -y
# # Use napi to build cli binary here to use zig as linker
# build: |
# export DISABLE_PLUGIN_E2E_TESTS=true
# yarn napi build --bin swc --release --target armv7-unknown-linux-gnueabihf --cargo-cwd ./bindings/swc_cli --cargo-name swc --zig --zig-link-only
# chmod +x ./swc
# yarn build --target armv7-unknown-linux-gnueabihf --cargo-flags='--no-default-features --features swc_v1'
# arm-linux-gnueabihf-strip swc.linux-arm-gnueabihf.node
- host: ubuntu-latest
target: aarch64-unknown-linux-musl
downloadTarget: aarch64-unknown-linux-musl

View File

@ -79,14 +79,14 @@ jobs:
export CC_aarch64_unknown_linux_gnu=/usr/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-gcc &&
(cd packages/${{ github.event.inputs.package }} && corepack yarn build --target aarch64-unknown-linux-gnu &&
llvm-strip -x ${{ github.event.inputs.package }}.linux-arm64-gnu.node)
- host: ubuntu-latest
target: armv7-unknown-linux-gnueabihf
setup: |
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf -y
# Use napi to build cli binary here to use zig as linker
build: |
(cd packages/${{ github.event.inputs.package }} && corepack yarn build --target armv7-unknown-linux-gnueabihf && arm-linux-gnueabihf-strip ${{ github.event.inputs.package }}.linux-arm-gnueabihf.node)
# - host: ubuntu-latest
# target: armv7-unknown-linux-gnueabihf
# setup: |
# sudo apt-get update
# sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf -y
# # Use napi to build cli binary here to use zig as linker
# build: |
# (cd packages/${{ github.event.inputs.package }} && corepack yarn build --target armv7-unknown-linux-gnueabihf && arm-linux-gnueabihf-strip ${{ github.event.inputs.package }}.linux-arm-gnueabihf.node)
- host: ubuntu-latest
target: aarch64-unknown-linux-musl
downloadTarget: aarch64-unknown-linux-musl
@ -321,7 +321,7 @@ jobs:
run: >-
set -e &&
(cd "./packages/${{ github.event.inputs.package }}" && DISABLE_PLUGIN_E2E_TESTS=true corepack yarn test)
test-linux-arm-gnueabihf-binding:
# test-linux-arm-gnueabihf-binding:
name: Test bindings on armv7-unknown-linux-gnueabihf - node@${{ matrix.node }}
needs:
- build-node
@ -369,7 +369,7 @@ jobs:
needs:
- test-linux-x64-gnu-binding
- test-linux-x64-musl-binding
- test-linux-arm-gnueabihf-binding
# - test-linux-arm-gnueabihf-binding
- test-macOS-windows-binding
- test-linux-aarch64-musl-binding
steps:

View File

@ -7,8 +7,7 @@ module.exports = {
"x86_64-unknown-linux-musl",
"x86_64-unknown-freebsd",
"i686-pc-windows-msvc",
"aarch64-unknown-linux-gnu",
"armv7-unknown-linux-gnueabihf",
"aarch64-apple-darwin",
"aarch64-linux-android",
"aarch64-unknown-linux-musl",

View File

@ -8,7 +8,6 @@ module.exports = {
"x86_64-unknown-freebsd",
"i686-pc-windows-msvc",
"aarch64-unknown-linux-gnu",
"armv7-unknown-linux-gnueabihf",
"aarch64-apple-darwin",
"aarch64-linux-android",
"aarch64-unknown-linux-musl",

View File

@ -28,7 +28,6 @@
"x86_64-unknown-linux-musl",
"i686-pc-windows-msvc",
"aarch64-unknown-linux-gnu",
"armv7-unknown-linux-gnueabihf",
"aarch64-apple-darwin",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc"

View File

@ -1,3 +0,0 @@
# `@swc/html-linux-arm-gnueabihf`
This is the **armv7-unknown-linux-gnueabihf** binary for `@swc/html`

View File

@ -1,42 +0,0 @@
{
"name": "@swc/html-linux-arm-gnueabihf",
"version": "1.2.130",
"os": [
"linux"
],
"cpu": [
"arm"
],
"main": "html.linux-arm-gnueabihf.node",
"files": [
"html.linux-arm-gnueabihf.node",
"swc"
],
"description": "Super-fast alternative for babel",
"keywords": [
"swc",
"swcpack",
"babel",
"typescript",
"rust",
"webpack",
"tsc"
],
"author": "강동윤 <kdy1997.dev@gmail.com>",
"homepage": "https://swc.rs",
"license": "Apache-2.0 AND MIT",
"engines": {
"node": ">=10"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/swc-project/swc.git"
},
"bugs": {
"url": "https://github.com/swc-project/swc/issues"
}
}

View File

@ -29,7 +29,6 @@
"x86_64-unknown-linux-musl",
"i686-pc-windows-msvc",
"aarch64-unknown-linux-gnu",
"armv7-unknown-linux-gnueabihf",
"aarch64-apple-darwin",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc"

View File

@ -1,3 +0,0 @@
# `@swc/minifier-linux-arm-gnueabihf`
This is the **armv7-unknown-linux-gnueabihf** binary for `@swc/minifier`

View File

@ -1,42 +0,0 @@
{
"name": "@swc/minifier-linux-arm-gnueabihf",
"version": "1.3.98",
"os": [
"linux"
],
"cpu": [
"arm"
],
"main": "minifier.linux-arm-gnueabihf.node",
"files": [
"minifier.linux-arm-gnueabihf.node",
"swc"
],
"description": "Super-fast alternative for babel",
"keywords": [
"swc",
"swcpack",
"babel",
"typescript",
"rust",
"webpack",
"tsc"
],
"author": "강동윤 <kdy1997.dev@gmail.com>",
"homepage": "https://swc.rs",
"license": "Apache-2.0 AND MIT",
"engines": {
"node": ">=10"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/swc-project/swc.git"
},
"bugs": {
"url": "https://github.com/swc-project/swc/issues"
}
}

View File

@ -28,7 +28,6 @@
"x86_64-unknown-linux-musl",
"i686-pc-windows-msvc",
"aarch64-unknown-linux-gnu",
"armv7-unknown-linux-gnueabihf",
"aarch64-apple-darwin",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc"

View File

@ -1,3 +0,0 @@
# `@swc/xml-linux-arm-gnueabihf`
This is the **armv7-unknown-linux-gnueabihf** binary for `@swc/xml`

View File

@ -1,42 +0,0 @@
{
"name": "@swc/xml-linux-arm-gnueabihf",
"version": "1.2.130",
"os": [
"linux"
],
"cpu": [
"arm"
],
"main": "xml.linux-arm-gnueabihf.node",
"files": [
"xml.linux-arm-gnueabihf.node",
"swc"
],
"description": "Super-fast alternative for babel",
"keywords": [
"swc",
"swcpack",
"babel",
"typescript",
"rust",
"webpack",
"tsc"
],
"author": "강동윤 <kdy1997.dev@gmail.com>",
"homepage": "https://swc.rs",
"license": "Apache-2.0 AND MIT",
"engines": {
"node": ">=10"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/swc-project/swc.git"
},
"bugs": {
"url": "https://github.com/swc-project/swc/issues"
}
}

View File

@ -1,3 +0,0 @@
# `@swc/core-linux-arm-gnueabihf`
This is the **armv7-unknown-linux-gnueabihf** binary for `@swc/core`

View File

@ -1,42 +0,0 @@
{
"name": "@swc/core-linux-arm-gnueabihf",
"version": "1.3.98",
"os": [
"linux"
],
"cpu": [
"arm"
],
"main": "swc.linux-arm-gnueabihf.node",
"files": [
"swc.linux-arm-gnueabihf.node",
"swc"
],
"description": "Super-fast alternative for babel",
"keywords": [
"swc",
"swcpack",
"babel",
"typescript",
"rust",
"webpack",
"tsc"
],
"author": "강동윤 <kdy1997.dev@gmail.com>",
"homepage": "https://swc.rs",
"license": "Apache-2.0 AND MIT",
"engines": {
"node": ">=10"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/swc-project/swc.git"
},
"bugs": {
"url": "https://github.com/swc-project/swc/issues"
}
}