Skip to content

Commit

Permalink
🦄 refactor: Switch to built-in env
Browse files Browse the repository at this point in the history
  • Loading branch information
caoccao committed Mar 7, 2024
1 parent aa5b2d8 commit c3da14c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/swc4j_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,18 @@ jobs:
os: windows
arch: x86_64
ext: .dll
rustenv: $env:RUSTFLAGS = '-Awarnings'
- image: ubuntu-latest
os: linux
arch: x86_64
ext: .so
rustenv: export RUSTFLAGS='-Awarnings'
- image: macos-latest
os: macos
arch: x86_64
ext: .dylib
rustenv: export RUSTFLAGS='-Awarnings'
- image: macos-14
os: macos
arch: arm64
ext: .dylib
rustenv: export RUSTFLAGS='-Awarnings'

name: Build swc4j for ${{ matrix.os }} ${{ matrix.arch }}
runs-on: ${{ matrix.image }}
Expand All @@ -61,9 +57,10 @@ jobs:
deno-version: vx.x.x

- name: Cargo Build and Test
env:
RUSTFLAGS: -Awarnings
run: |
cd rust
${{ matrix.rustenv }}
cargo build -r
cargo test -r
deno run --allow-all ../scripts/ts/copy_swc4j_lib.ts -o ${{ matrix.os }} -a ${{ matrix.arch }}
Expand Down

0 comments on commit c3da14c

Please sign in to comment.