Skip to content

Commit 8c7c8c0

Browse files
test some new actions
1 parent 0a320ac commit 8c7c8c0

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/rust.yml

+54
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,32 @@ jobs:
3535
run: |
3636
cargo test
3737
38+
build-test-win-ng:
39+
#if: ${{ false }}
40+
runs-on: windows-latest
41+
steps:
42+
- uses: actions/checkout@v1
43+
44+
- name: Install stable toolchain (windows)
45+
uses: actions-rs/toolchain@v1
46+
with:
47+
profile: minimal
48+
toolchain: stable
49+
target: x86_64-pc-windows-gnu
50+
override: true
51+
- name: Setup (windows)
52+
run: |
53+
$env:PATH = "C:\msys64\mingw64\bin;C:\msys64\usr\bin;$env:PATH"
54+
echo "PATH=${env:PATH}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
55+
echo "CARGO_BUILD_TARGET=x86_64-pc-windows-gnu" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
56+
- name: Build (windows)
57+
run: |
58+
cargo clean
59+
cargo build --no-default-features --features quickjs-ng
60+
- name: Test (windows)
61+
run: |
62+
cargo test --no-default-features --features quickjs-ng
63+
3864
build-test-msvc:
3965
#if: ${{ false }}
4066
runs-on: windows-latest
@@ -68,6 +94,34 @@ jobs:
6894
- name: Run tests
6995
run: cargo test --verbose
7096

97+
build-test-mac-ng:
98+
runs-on: macOs-latest
99+
steps:
100+
- uses: actions/checkout@v3
101+
- name: Build
102+
run: cargo build --no-default-features --features quickjs-ng
103+
- name: Run tests
104+
run: cargo test --no-default-features --features quickjs-ng
105+
106+
build-test-ubuntu-ng:
107+
runs-on: ubuntu-latest
108+
steps:
109+
- uses: actions/checkout@v2
110+
- name: Prepare
111+
run: |
112+
sudo apt update
113+
sudo apt install ccache llvm autoconf2.13 automake clang valgrind -y
114+
- name: Build
115+
run: |
116+
export SHELL=/bin/bash
117+
export CC=/usr/bin/clang
118+
export CXX=/usr/bin/clang++
119+
cargo clean
120+
cargo build --no-default-features --features quickjs-ng
121+
- name: Run tests
122+
run: cargo test --no-default-features --features quickjs-ng
123+
124+
71125
build:
72126
runs-on: ubuntu-latest
73127
steps:

0 commit comments

Comments
 (0)