17
17
- x86_64-pc-windows-gnu
18
18
- x86_64-pc-windows-msvc
19
19
- wasm32-unknown-emscripten
20
+ - wasm32-wasip2
20
21
lua : [lua54, lua53, lua52, lua51]
21
22
include :
22
23
- target : x86_64-unknown-linux-gnu
@@ -37,44 +38,16 @@ jobs:
37
38
os : windows-latest
38
39
- target : wasm32-unknown-emscripten
39
40
os : ubuntu-latest
41
+ - target : wasm32-wasip2
42
+ os : ubuntu-latest
40
43
steps :
41
44
- uses : actions/checkout@main
42
- - uses : dtolnay/rust-toolchain@stable
45
+ - uses : ./.github/actions/setup-deps
43
46
with :
44
47
target : ${{ matrix.target }}
45
- - name : Install GCC (i686-unknown-linux-gnu)
46
- if : ${{ matrix.target == 'i686-unknown-linux-gnu' }}
47
- run : |
48
- sudo apt-get update -y
49
- sudo apt-get install -y --no-install-recommends gcc-multilib
50
- shell : bash
51
- - name : Install GCC (aarch64-unknown-linux-gnu)
52
- if : ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
53
- run : |
54
- sudo apt-get update -y
55
- sudo apt-get install -y --no-install-recommends gcc-aarch64-linux-gnu libc6-dev-arm64-cross
56
- shell : bash
57
- - name : Install GCC (arm-unknown-linux-gnueabi)
58
- if : ${{ matrix.target == 'arm-unknown-linux-gnueabi' }}
59
- run : |
60
- sudo apt-get update -y
61
- sudo apt-get install -y --no-install-recommends gcc-arm-linux-gnueabi libc6-dev-armel-cross
62
- shell : bash
63
- - name : Install GCC (x86_64-pc-windows-gnu)
64
- if : ${{ matrix.target == 'x86_64-pc-windows-gnu' }}
65
- run : |
66
- sudo apt-get update -y
67
- sudo apt-get install -y --no-install-recommends gcc-mingw-w64-x86-64
68
- shell : bash
69
- - name : Install emscripten (wasm32-unknown-emscripten)
70
- if : ${{ matrix.target == 'wasm32-unknown-emscripten' }}
71
- run : |
72
- sudo apt-get update -y
73
- sudo apt-get install -y --no-install-recommends emscripten
74
- shell : bash
75
48
- name : Build ${{ matrix.lua }}
76
49
run : |
77
- cargo build --manifest-path testcrate/Cargo.toml --target ${{ matrix.target }} -- release --features ${{ matrix.lua }}
50
+ cargo build --manifest-path testcrate/Cargo.toml --release --features ${{ matrix.lua }}
78
51
shell : bash
79
52
80
53
test :
83
56
needs : build
84
57
strategy :
85
58
matrix :
86
- os : [ubuntu-latest, macos-latest, windows-latest]
59
+ target :
60
+ - x86_64-unknown-linux-gnu
61
+ - x86_64-apple-darwin
62
+ - x86_64-pc-windows-msvc
63
+ - wasm32-wasip2
87
64
lua : [lua54, lua53, lua52, lua51]
88
65
include :
89
66
- os : ubuntu-latest
92
69
target : x86_64-apple-darwin
93
70
- os : windows-latest
94
71
target : x86_64-pc-windows-msvc
72
+ - os : ubuntu-latest
73
+ target : wasm32-wasip2
95
74
steps :
96
75
- uses : actions/checkout@main
97
- - uses : dtolnay/rust-toolchain@stable
76
+ - uses : ./.github/actions/setup-deps
98
77
with :
99
78
target : ${{ matrix.target }}
100
79
- name : Run ${{ matrix.lua }} tests
@@ -103,12 +82,11 @@ jobs:
103
82
shell : bash
104
83
105
84
test_standalone :
106
- name : Test
85
+ name : Test Standalone
107
86
runs-on : ${{ matrix.os }}
108
87
needs : build
109
88
strategy :
110
89
matrix :
111
- os : [ubuntu-latest, macos-latest, windows-latest]
112
90
include :
113
91
- os : ubuntu-latest
114
92
target : x86_64-unknown-linux-gnu
@@ -118,36 +96,13 @@ jobs:
118
96
target : x86_64-pc-windows-msvc
119
97
steps :
120
98
- uses : actions/checkout@main
121
- - uses : dtolnay/rust-toolchain@stable
99
+ - uses : ./.github/actions/setup-deps
122
100
with :
123
101
target : ${{ matrix.target }}
124
102
- name : Run standalone tests
125
103
run : |
126
104
cargo test
127
105
128
- test_emscripten :
129
- name : Test emscripten
130
- runs-on : ubuntu-latest
131
- needs : build
132
- strategy :
133
- matrix :
134
- lua : [lua54, lua53, lua52, lua51]
135
- steps :
136
- - uses : actions/checkout@main
137
- - uses : dtolnay/rust-toolchain@stable
138
- with :
139
- target : wasm32-unknown-emscripten
140
- - name : Install emscripten
141
- run : |
142
- sudo apt-get update -y
143
- sudo apt-get install -y --no-install-recommends emscripten
144
- shell : bash
145
- - name : Run ${{ matrix.lua }} tests
146
- run : |
147
- export CARGO_TARGET_WASM32_UNKNOWN_EMSCRIPTEN_RUNNER=node
148
- cargo test --manifest-path testcrate/Cargo.toml --release --features ${{ matrix.lua }}
149
- shell : bash
150
-
151
106
rustfmt :
152
107
name : Rustfmt
153
108
runs-on : ubuntu-latest
0 commit comments