chore(ci): Fix publish scripts

This commit is contained in:
Donny 2022-01-05 14:45:02 +09:00
parent 28ff0592a4
commit 3458e9f1d3
2 changed files with 6 additions and 5 deletions

View File

@ -92,7 +92,7 @@ jobs:
build: |
cargo build -p swc_cli --release --target=armv7-unknown-linux-gnueabihf
cp ./target/armv7-unknown-linux-gnueabihf/release/swc .
yarn build --target=armv7-unknown-linux-gnueabihf
yarn build --target=armv7-unknown-linux-gnueabihf --no-default-features --features swc_v1
arm-linux-gnueabihf-strip swc.linux-arm-gnueabihf.node
- host: ubuntu-latest
target: aarch64-linux-android
@ -114,7 +114,7 @@ jobs:
export PATH="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin:${PATH}"
cargo build -p swc_cli --release --target armv7-linux-androideabi
cp ./target/armv7-linux-androideabi/release/swc .
yarn build --target armv7-linux-androideabi
yarn build --target armv7-linux-androideabi --no-default-features --features swc_v1
${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/arm-linux-androideabi-strip *.node
- host: ubuntu-latest
target: aarch64-unknown-linux-musl
@ -129,7 +129,7 @@ jobs:
- host: windows-latest
target: aarch64-pc-windows-msvc
build: |
cargo build -p swc_cli --release --target aarch64-pc-windows-msvc
cargo build -p swc_cli --release --target aarch64-pc-windows-msvc --no-default-features --features swc_v1
cp target/aarch64-pc-windows-msvc/release/swc.exe .
yarn build --target aarch64-pc-windows-msvc
name: stable - ${{ matrix.settings.target }} - node@14

View File

@ -12,7 +12,8 @@ version = "0.1.0"
crate-type = ["cdylib"]
[features]
default = ["swc_v1"]
default = ["swc_v1", "plugin"]
plugin = ["swc/plugin"]
swc_v1 = ["swc_node_bundler/swc_v1", "swc/wrong-target"]
swc_v2 = ["swc_node_bundler/swc_v2"]
@ -28,7 +29,7 @@ node_macro_deps = {path = "../node_macro_deps"}
path-clean = "0.1"
serde = {version = "1", features = ["derive"]}
serde_json = {version = "1", features = ["unbounded_depth"]}
swc = {path = "../swc", features = ["concurrent", "plugin", "node"]}
swc = {path = "../swc", features = ["concurrent", "node"]}
swc_atoms = {version = "0.2.4", path = "../swc_atoms"}
swc_bundler = {path = "../swc_bundler"}
swc_common = {path = "../swc_common", features = ["sourcemap"]}