Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: swc-project/swc
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 89758940fb7a02a747168d66e5b98971fbebb214
Choose a base ref
...
head repository: swc-project/swc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2a97219e05ac4a55af476bac02bb99c95d7adeb1
Choose a head ref

Commits on Aug 12, 2022

  1. chore(ci): Fix bot script

    kdy1 committed Aug 12, 2022
    1
    Copy the full SHA
    d298b20 View commit details
  2. chore(ci): Update rustc

    kdy1 committed Aug 12, 2022
    1
    Copy the full SHA
    6c08ab9 View commit details
  3. chore(ci): Fix lints (#5462)

    kdy1 authored Aug 12, 2022
    1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3eb1f4b View commit details
  4. chore: Publish crates

    swc-bot committed Aug 12, 2022
    Copy the full SHA
    d9fc50f View commit details
  5. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5a06271 View commit details
  6. chore: Publish crates

    swc-bot committed Aug 12, 2022
    Copy the full SHA
    415c495 View commit details
  7. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d36e48e View commit details
  8. chore: Publish crates

    swc-bot committed Aug 12, 2022
    Copy the full SHA
    c883cb4 View commit details
  9. chore: Publish crates

    kdy1 committed Aug 12, 2022
    Copy the full SHA
    d2f2a13 View commit details

Commits on Aug 13, 2022

  1. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5e42864 View commit details
  2. chore: Publish crates

    swc-bot committed Aug 13, 2022
    Copy the full SHA
    a512046 View commit details
  3. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4a3b4b2 View commit details
  4. chore: Publish crates

    swc-bot committed Aug 13, 2022
    Copy the full SHA
    62303e7 View commit details
  5. chore: Publish v1.2.227

    kdy1 committed Aug 13, 2022
    Copy the full SHA
    f082bc6 View commit details
  6. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    555b6a3 View commit details
  7. chore: Publish crates

    swc-bot committed Aug 13, 2022
    Copy the full SHA
    a95af3b View commit details
  8. chore: Publish crates

    kdy1 committed Aug 13, 2022
    Copy the full SHA
    1b089be View commit details
  9. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c918975 View commit details
  10. chore: Publish crates

    swc-bot committed Aug 13, 2022
    Copy the full SHA
    46c07fe View commit details
  11. chore: Publish v1.2.228

    kdy1 committed Aug 13, 2022
    Copy the full SHA
    cdfce93 View commit details
  12. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b35469a View commit details
  13. chore: Publish crates

    swc-bot committed Aug 13, 2022
    Copy the full SHA
    5bfe205 View commit details
  14. chore: Publish crates

    kdy1 committed Aug 13, 2022
    Copy the full SHA
    925839a View commit details
  15. chore: Publish v1.2.229

    kdy1 committed Aug 13, 2022
    Copy the full SHA
    b3cf3a2 View commit details
  16. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    eebdfdb View commit details
  17. chore: Publish crates

    swc-bot committed Aug 13, 2022
    Copy the full SHA
    31d2973 View commit details
  18. chore: Typo (#5478)

    alvra authored Aug 13, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8fde2ab View commit details
  19. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a76380c View commit details
  20. chore: Publish crates

    swc-bot committed Aug 13, 2022
    Copy the full SHA
    239617b View commit details

Commits on Aug 14, 2022

  1. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9d04f24 View commit details
  2. chore: Publish crates

    swc-bot committed Aug 14, 2022
    Copy the full SHA
    90734b8 View commit details
  3. chore: Publish v1.2.230

    kdy1 committed Aug 14, 2022
    Copy the full SHA
    7b727ca View commit details
  4. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    83417b6 View commit details
  5. chore: Publish crates

    swc-bot committed Aug 14, 2022
    Copy the full SHA
    d1f5272 View commit details
  6. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1a0a2b5 View commit details
  7. chore: Publish crates

    swc-bot committed Aug 14, 2022
    Copy the full SHA
    5abf38b View commit details
  8. chore: Publish crates

    kdy1 committed Aug 14, 2022
    Copy the full SHA
    f9b3870 View commit details
  9. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b655bf4 View commit details
  10. chore: Publish crates

    swc-bot committed Aug 14, 2022
    Copy the full SHA
    bcc67c3 View commit details
  11. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    2045fe6 View commit details
  12. chore: Publish crates

    swc-bot committed Aug 14, 2022
    Copy the full SHA
    0391d2c View commit details
  13. chore: Publish crates

    kdy1 committed Aug 14, 2022
    Copy the full SHA
    8eb7804 View commit details
  14. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    04e11a5 View commit details
  15. chore: Publish crates

    swc-bot committed Aug 14, 2022
    Copy the full SHA
    e8945d1 View commit details
  16. chore: Publish crates

    kdy1 committed Aug 14, 2022
    Copy the full SHA
    fcd438b View commit details
  17. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    76797b1 View commit details
  18. chore: Publish crates

    swc-bot committed Aug 14, 2022
    Copy the full SHA
    5884f6d View commit details
  19. chore: Publish v1.2.231

    kdy1 committed Aug 14, 2022
    Copy the full SHA
    ebb2b52 View commit details
  20. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    40bb695 View commit details
  21. chore: Publish crates

    swc-bot committed Aug 14, 2022
    Copy the full SHA
    554b459 View commit details
Showing 956 changed files with 31,337 additions and 10,290 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ jobs:
yarn build
- name: Print binary size
run: ls -al ./target/release/libbinding*
run: ls -al ./bindings/target/release/libbinding*

benchmark:
name: Performance regression check
@@ -74,7 +74,7 @@ jobs:
yarn
- name: Run benchmark
run: cargo bench --workspace --exclude swc_plugin --exclude binding_core_wasm --exclude swc_cli --exclude binding_core_node --features plugin_transform_schema_vtest -- --output-format bencher | tee output.txt
run: cargo bench --workspace --exclude swc_plugin --features plugin_transform_schema_vtest -- --output-format bencher | tee output.txt

- name: Download previous benchmark results
run: mkdir raw-data && curl -o raw-data/benchmark-data.json https://raw.githubusercontent.com/swc-project/raw-data/gh-pages/benchmark-data.json
12 changes: 10 additions & 2 deletions .github/workflows/bot.yml
Original file line number Diff line number Diff line change
@@ -4,8 +4,6 @@ on:
push:
branches:
- main
schedule:
- cron: "0 * * * *"
workflow_dispatch:

env:
@@ -56,6 +54,13 @@ jobs:
with:
node-version: "16"

- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy

- name: Install node dependencies
working-directory: scripts/bot
run: |
@@ -66,12 +71,14 @@ jobs:
with:
crate: cargo-mono
version: "0.3.1"
locked: true

- name: Install git-cliff
uses: baptiste0928/cargo-install@v1.1.0
with:
crate: git-cliff
version: "0.4.2"
locked: true

- name: Bump crates
id: bump
@@ -119,6 +126,7 @@ jobs:
- name: Publish crates
if: steps.bump.outcome == 'success' && steps.bump.conclusion == 'success'
run: |
npx ts-node scripts/bot/src/cargo/update-constants.ts
cargo mono publish --no-verify
cargo mono publish --no-verify
cargo mono publish --no-verify
56 changes: 27 additions & 29 deletions .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@ env:
# https://github.com/swc-project/swc/pull/3742
RUST_MIN_STACK: 4194304
CI: 1
CARGO_TERM_COLOR: "always"

jobs:
check-license:
@@ -95,9 +96,7 @@ jobs:
os: ubuntu-latest
- crate: better_scoped_tls
os: ubuntu-latest
- crate: binding_core_node
os: ubuntu-latest
- crate: binding_core_wasm
- crate: binding_macros
os: ubuntu-latest
- crate: dbg-swc
os: ubuntu-latest
@@ -107,8 +106,6 @@ jobs:
os: ubuntu-latest
- crate: jsdoc
os: ubuntu-latest
- crate: node_macro_deps
os: ubuntu-latest
- crate: preset_env_base
os: ubuntu-latest
- crate: string_enum
@@ -127,13 +124,6 @@ jobs:
cargo hack check --feature-powerset --no-dev-deps
- crate: swc_cached
os: ubuntu-latest
- crate: swc_cli
os: ubuntu-latest
check: |
cargo check
cargo check --features plugin
- crate: swc_cli
os: windows-latest
- crate: swc_common
os: ubuntu-latest
check: |
@@ -144,6 +134,8 @@ jobs:
os: ubuntu-latest
- crate: swc_config_macro
os: ubuntu-latest
- crate: swc_core
os: ubuntu-latest
- crate: swc_css
os: ubuntu-latest
- crate: swc_css_ast
@@ -282,22 +274,6 @@ jobs:
os: ubuntu-latest
- crate: swc_html_visit
os: ubuntu-latest
- crate: swc_xml
os: ubuntu-latest
- crate: swc_xml_ast
os: ubuntu-latest
- crate: swc_xml_codegen
os: ubuntu-latest
- crate: swc_xml_codegen
os: windows-latest
- crate: swc_xml_codegen_macros
os: ubuntu-latest
- crate: swc_xml_parser
os: ubuntu-latest
- crate: swc_xml_parser
os: windows-latest
- crate: swc_xml_visit
os: ubuntu-latest
- crate: swc_macros_common
os: ubuntu-latest
- crate: swc_node_base
@@ -339,6 +315,18 @@ jobs:
os: ubuntu-latest
- crate: swc_visit_macros
os: ubuntu-latest
- crate: swc_xml
os: ubuntu-latest
- crate: swc_xml_ast
os: ubuntu-latest
- crate: swc_xml_codegen
os: ubuntu-latest
- crate: swc_xml_codegen_macros
os: ubuntu-latest
- crate: swc_xml_parser
os: ubuntu-latest
- crate: swc_xml_visit
os: ubuntu-latest
- crate: testing
os: ubuntu-latest
- crate: testing_macros
@@ -415,7 +403,7 @@ jobs:
swc-exec-cache-${{ matrix.settings.crate }}-${{ runner.os }}
- name: Run cargo test
if: matrix.settings.crate != 'swc_plugin_runner' && matrix.settings.crate != 'swc_ecma_minifier' && matrix.settings.crate != 'swc_core' && matrix.settings.crate != 'swc_ecma_quote'
if: matrix.settings.crate != 'swc_plugin_runner' && matrix.settings.crate != 'swc_ecma_minifier' && matrix.settings.crate != 'swc_core' && matrix.settings.crate != 'swc_ecma_quote' && matrix.settings.crate != 'swc_cli' && matrix.settings.crate != 'binding_core_wasm'
run: |
cargo test --color always -p ${{ matrix.settings.crate }}
@@ -424,6 +412,16 @@ jobs:
run: |
cargo test --color always -p swc_core --features quote --features common --features utils
- name: Run cargo test (binding_core_wasm)
if: matrix.settings.crate == 'binding_core_wasm'
run: |
cargo test --color always --manifest-path ./bindings/binding_core_wasm/Cargo.toml
- name: Run cargo test (cli)
if: matrix.settings.crate == 'swc_cli'
run: |
cargo test --color always --manifest-path ./bindings/swc_cli/Cargo.toml --features plugin
- name: Run cargo test (plugin)
if: matrix.settings.crate == 'swc_plugin_runner'
run: |
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ jobs:
profile: minimal

- name: Create rustdoc
run: cargo doc --all --exclude swc_cli --exclude binding_core_node --exclude binding_core_wasm --features plugin_transform --features loader --features utils --features quote --features visit --features transforms --features __testing_transform
run: cargo doc --all --features plugin_transform --features loader --features utils --features quote --features visit --features transforms --features __testing_transform

- name: Create CNAME
run: |
15 changes: 13 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -4,13 +4,20 @@ on: [push, pull_request]

env:
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: "always"

jobs:
publish-test:
name: node-api
name: node-api - ${{ matrix.os }}
if: >-
${{ !contains(github.event.head_commit.message, 'chore: ') }}
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
steps:
- uses: actions/checkout@v3

@@ -82,12 +89,16 @@ jobs:

- name: Prepare
run: |
rustup target add wasm32-wasi
yarn
yarn build:dev
# Avoid no space left on device, copyfile
cargo clean
cargo clean --manifest-path ./bindings/binding_core_node/Cargo.toml
cargo clean --manifest-path ./bindings/binding_core_wasm/Cargo.toml
cargo clean --manifest-path ./bindings/swc_cli/Cargo.toml
yarn global add @swc/cli@0.1.56
yarn link
54 changes: 27 additions & 27 deletions .github/workflows/publish-node.yml
Original file line number Diff line number Diff line change
@@ -26,23 +26,23 @@ jobs:
- host: macos-latest
target: x86_64-apple-darwin
build: |
cargo build -p swc_cli --release --features plugin
cp ./target/release/swc .
cargo build --manifest-path ./bindings/swc_cli/Cargo.toml --release --features plugin
cp ./bindings/target/release/swc .
chmod +x ./swc
yarn build
strip -x *.node
- host: windows-latest
build: |
yarn build
cargo build -p swc_cli --release --features plugin
cp target/release/swc .
cargo build --manifest-path ./bindings/swc_cli/Cargo.toml --release --features plugin
cp ./bindings/target/release/swc .
target: x86_64-pc-windows-msvc
- host: windows-latest
build: |
export DISABLE_PLUGIN_E2E_TESTS=true
export CARGO_PROFILE_RELEASE_LTO=false
cargo build -p swc_cli --release --target i686-pc-windows-msvc
cp target/i686-pc-windows-msvc/release/swc .
cargo build --manifest-path ./bindings/swc_cli/Cargo.toml --release --target i686-pc-windows-msvc
cp bindings/target/i686-pc-windows-msvc/release/swc .
yarn build --target i686-pc-windows-msvc --cargo-flags="--no-default-features" --features swc_v1
yarn test
target: i686-pc-windows-msvc
@@ -51,9 +51,9 @@ jobs:
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
build: >-
set -e &&
RUSTFLAGS='-C target-feature=+sse2 -Z new-llvm-pass-manager=no' cargo build -p swc_cli --release --features plugin &&
rm -rf target/x86_64-unknown-linux-gnu/release/.cargo-lock &&
cp target/x86_64-unknown-linux-gnu/release/swc . && chmod +x ./swc &&
RUSTFLAGS='-C target-feature=+sse2 -Z new-llvm-pass-manager=no' cargo build --manifest-path ./bindings/swc_cli/Cargo.toml --release --features plugin &&
rm -rf bindings/target/target/x86_64-unknown-linux-gnu/release/.cargo-lock &&
cp bindings/target/x86_64-unknown-linux-gnu/release/swc . && chmod +x ./swc &&
yarn build --target x86_64-unknown-linux-gnu &&
strip swc.linux-x64-gnu.node
- host: ubuntu-latest
@@ -63,9 +63,9 @@ jobs:
build: >-
set -e &&
export CARGO_PROFILE_RELEASE_LTO=false &&
RUSTFLAGS='-C target-feature=+sse2 -Z new-llvm-pass-manager=no' cargo build -p swc_cli --release --features plugin &&
RUSTFLAGS='-C target-feature=+sse2 -Z new-llvm-pass-manager=no' cargo build --manifest-path ./bindings/swc_cli/Cargo.toml --release --features plugin &&
rm -rf target/release/.cargo-lock &&
cp target/release/swc . && chmod +x ./swc &&
cp bindings/target/release/swc . && chmod +x ./swc &&
RUSTFLAGS='-C target-feature=+sse2 -C target-feature=-crt-static -Z new-llvm-pass-manager=no' yarn build &&
llvm-strip -x swc.linux-x64-musl.node
- host: macos-latest
@@ -76,8 +76,8 @@ jobs:
export CXX=$(xcrun -f clang++);
SYSROOT=$(xcrun --sdk macosx --show-sdk-path);
export CFLAGS="-isysroot $SYSROOT -isystem $SYSROOT";
cargo build -p swc_cli --release --features plugin --target=aarch64-apple-darwin
cp ./target/aarch64-apple-darwin/release/swc .
cargo build --manifest-path ./bindings/swc_cli/Cargo.toml --release --features plugin --target=aarch64-apple-darwin
cp ./bindings/target/aarch64-apple-darwin/release/swc .
chmod +x ./swc
yarn build --target=aarch64-apple-darwin
strip -x *.node
@@ -87,8 +87,8 @@ jobs:
build: >-
set -e &&
rustup target add aarch64-unknown-linux-gnu &&
RUSTFLAGS='-Z new-llvm-pass-manager=no' cargo build -p swc_cli --release --features plugin --target aarch64-unknown-linux-gnu &&
cp ./target/aarch64-unknown-linux-gnu/release/swc . && chmod +x ./swc &&
RUSTFLAGS='-Z new-llvm-pass-manager=no' cargo build --manifest-path ./bindings/swc_cli/Cargo.toml --release --features plugin --target aarch64-unknown-linux-gnu &&
cp ./bindings/target/aarch64-unknown-linux-gnu/release/swc . && chmod +x ./swc &&
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
@@ -99,8 +99,8 @@ jobs:
sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf -y
build: |
export DISABLE_PLUGIN_E2E_TESTS=true
cargo build -p swc_cli --release --target=armv7-unknown-linux-gnueabihf
cp ./target/armv7-unknown-linux-gnueabihf/release/swc .
cargo build --manifest-path ./bindings/swc_cli/Cargo.toml --release --target=armv7-unknown-linux-gnueabihf
cp ./bindings/target/armv7-unknown-linux-gnueabihf/release/swc .
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
@@ -116,8 +116,8 @@ jobs:
touch "${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/${CLANG_VERSION}/lib/linux/aarch64/libgcc.a"
chmod 777 "${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/${CLANG_VERSION}/lib/linux/aarch64/libgcc.a"
echo "INPUT(-lunwind)" > "${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/${CLANG_VERSION}/lib/linux/aarch64/libgcc.a"
cargo build -p swc_cli --release --features plugin --target aarch64-linux-android
cp ./target/aarch64-linux-android/release/swc .
cargo build --manifest-path ./bindings/swc_cli/Cargo.toml --release --features plugin --target aarch64-linux-android
cp ./bindings/target/aarch64-linux-android/release/swc .
chmod +x ./swc
yarn build --target aarch64-linux-android
${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip *.node
@@ -134,8 +134,8 @@ jobs:
touch "${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/${CLANG_VERSION}/lib/linux/arm/libgcc.a"
chmod 777 "${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/${CLANG_VERSION}/lib/linux/arm/libgcc.a"
echo "INPUT(-lunwind)" > "${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/${CLANG_VERSION}/lib/linux/arm/libgcc.a"
cargo build -p swc_cli --release --target armv7-linux-androideabi
cp ./target/armv7-linux-androideabi/release/swc .
cargo build --manifest-path ./bindings/swc_cli/Cargo.toml --release --target armv7-linux-androideabi
cp ./bindings/target/armv7-linux-androideabi/release/swc .
chmod +x ./swc
yarn build --target armv7-linux-androideabi --cargo-flags='--no-default-features --features swc_v1'
${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip *.node
@@ -146,9 +146,9 @@ jobs:
build: >-
rustup toolchain install $(cat ./rust-toolchain) &&
rustup target add aarch64-unknown-linux-musl &&
RUSTFLAGS='-C target-feature=+crt-static -C link-arg=-lgcc -Z new-llvm-pass-manager=no' cargo build -p swc_cli --release --features plugin --target aarch64-unknown-linux-musl &&
RUSTFLAGS='-C target-feature=+crt-static -C link-arg=-lgcc -Z new-llvm-pass-manager=no' cargo build --manifest-path ./bindings/swc_cli/Cargo.toml --release --features plugin --target aarch64-unknown-linux-musl &&
rm -rf target/release/.cargo-lock &&
cp target/aarch64-unknown-linux-musl/release/swc . && chmod +x ./swc &&
cp bindings/target/aarch64-unknown-linux-musl/release/swc . && chmod +x ./swc &&
env RUSTFLAGS='-C target-feature=-crt-static -Z new-llvm-pass-manager=no' yarn build --target=aarch64-unknown-linux-musl &&
/aarch64-linux-musl-cross/bin/aarch64-linux-musl-strip swc.linux-arm64-musl.node
- host: windows-latest
@@ -158,8 +158,8 @@ jobs:
export DISABLE_PLUGIN_E2E_TESTS=true
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=256
export CARGO_PROFILE_RELEASE_LTO=false
cargo build -p swc_cli --release --target aarch64-pc-windows-msvc
cp target/aarch64-pc-windows-msvc/release/swc.exe .
cargo build --manifest-path ./bindings/swc_cli/Cargo.toml --release --target aarch64-pc-windows-msvc
cp bindings/target/aarch64-pc-windows-msvc/release/swc.exe .
yarn build --target aarch64-pc-windows-msvc --cargo-flags='--no-default-features --features swc_v1'
name: stable - ${{ matrix.settings.target }} - node@16
runs-on: ${{ matrix.settings.host }}
@@ -329,8 +329,8 @@ jobs:
freebsd-version
yarn install --ignore-scripts --registry https://registry.npmjs.org --network-timeout 300000
yarn build --cargo-flags="--no-default-features" --features "swc_v1"
cargo build -p swc_cli --release --features plugin
cp ./target/release/swc .
cargo build --manifest-path ./bindings/swc_cli/Cargo.toml --release
cp ./bindings/target/release/swc .
yarn test
rm -rf node_modules
rm -rf target
Loading