Skip to content

Commit 21f47ec

Browse files
actions fix
1 parent 4767125 commit 21f47ec

File tree

1 file changed

+40
-5
lines changed

1 file changed

+40
-5
lines changed

.github/workflows/rust.yml

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,34 @@ jobs:
3737
run: |
3838
cargo test
3939
40-
build-test-msvc:
41-
if: ${{ false }}
40+
build-test-win-ng:
41+
runs-on: windows-latest
42+
steps:
43+
- uses: actions/checkout@v1
44+
45+
- name: Install stable toolchain (windows)
46+
uses: actions-rs/toolchain@v1
47+
with:
48+
profile: minimal
49+
toolchain: stable
50+
target: x86_64-pc-windows-gnu
51+
override: true
52+
53+
- name: Setup (windows)
54+
run: |
55+
$env:PATH = "C:\msys64\mingw64\bin;C:\msys64\usr\bin;$env:PATH"
56+
echo "PATH=${env:PATH}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
57+
echo "CARGO_BUILD_TARGET=x86_64-pc-windows-gnu" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
58+
59+
- name: Build (windows)
60+
run: |
61+
cargo clean
62+
cargo build --no-default-features --features quickjs-ng
63+
- name: Test (windows)
64+
run: |
65+
cargo test --no-default-features --features quickjs-ng
66+
67+
build-test-win-msvc-ng:
4268
runs-on: windows-latest
4369
steps:
4470
- uses: actions/checkout@v1
@@ -69,9 +95,18 @@ jobs:
6995
steps:
7096
- uses: actions/checkout@v3
7197
- name: Build
72-
run: cargo build --verbose
98+
run: cargo build
7399
- name: Run tests
74-
run: cargo test --verbose
100+
run: cargo test
101+
102+
build-test-mac-ng:
103+
runs-on: macOS-latest
104+
steps:
105+
- uses: actions/checkout@v3
106+
- name: Build
107+
run: cargo build --no-default-features --features quickjs-ng
108+
- name: Run tests
109+
run: cargo test --no-default-features --features quickjs-ng
75110

76111
build-ubuntu-quickjs-ng:
77112
runs-on: ubuntu-latest
@@ -82,7 +117,7 @@ jobs:
82117
sudo apt update
83118
sudo apt install llvm autoconf2.13 automake clang -y
84119
- name: Run tests
85-
run: cargo test --verbose --no-default-features --features "quickjs-ng console setimmediate setinterval settimeout typescript"
120+
run: cargo test --no-default-features --features "quickjs-ng console setimmediate setinterval settimeout typescript"
86121

87122
build:
88123
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)