Skip to content

Commit

Permalink
chore: Fix publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Nov 21, 2023
1 parent 23fdaf1 commit 8ac47a3
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 208 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/publish-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/publish-extra-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion packages/html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 0 additions & 3 deletions packages/html/scripts/npm/linux-arm-gnueabihf/README.md

This file was deleted.

42 changes: 0 additions & 42 deletions packages/html/scripts/npm/linux-arm-gnueabihf/package.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/minifier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 0 additions & 3 deletions packages/minifier/scripts/npm/linux-arm-gnueabihf/README.md

This file was deleted.

42 changes: 0 additions & 42 deletions packages/minifier/scripts/npm/linux-arm-gnueabihf/package.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/xml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 0 additions & 3 deletions packages/xml/scripts/npm/linux-arm-gnueabihf/README.md

This file was deleted.

42 changes: 0 additions & 42 deletions packages/xml/scripts/npm/linux-arm-gnueabihf/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/npm/linux-arm-gnueabihf/README.md

This file was deleted.

42 changes: 0 additions & 42 deletions scripts/npm/linux-arm-gnueabihf/package.json

This file was deleted.

0 comments on commit 8ac47a3

Please sign in to comment.