From c3da14ccfedb27fdb0eb65d0d4d3824dcf0a9e37 Mon Sep 17 00:00:00 2001 From: Sam Cao Date: Thu, 7 Mar 2024 18:46:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=84=20refactor:=20Switch=20to=20built-?= =?UTF-8?q?in=20env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/swc4j_build.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/swc4j_build.yml b/.github/workflows/swc4j_build.yml index 61d5d871..1908df36 100644 --- a/.github/workflows/swc4j_build.yml +++ b/.github/workflows/swc4j_build.yml @@ -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 }} @@ -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 }}