7
7
runs-on : ${{ matrix.os }}
8
8
strategy :
9
9
matrix :
10
- os : [ubuntu-22.04 , macos-latest, windows-latest]
10
+ os : [ubuntu-latest , macos-latest, windows-latest]
11
11
rust : [stable]
12
12
lua : [lua54, lua53, lua52, lua51, luajit, luau, luau-jit, luau-vector4]
13
13
include :
14
- - os : ubuntu-22.04
14
+ - os : ubuntu-latest
15
15
target : x86_64-unknown-linux-gnu
16
16
- os : macos-latest
17
17
target : x86_64-apple-darwin
18
18
- os : windows-latest
19
19
target : x86_64-pc-windows-msvc
20
20
steps :
21
- - uses : actions/checkout@v4
21
+ - uses : actions/checkout@main
22
22
- uses : dtolnay/rust-toolchain@stable
23
23
with :
24
24
toolchain : ${{ matrix.rust }}
31
31
cargo build --features "${{ matrix.lua }},vendored,async,serialize,macros,send"
32
32
shell : bash
33
33
- name : Build ${{ matrix.lua }} pkg-config
34
- if : ${{ matrix.os == 'ubuntu-22.04 ' }}
34
+ if : ${{ matrix.os == 'ubuntu-latest ' }}
35
35
run : |
36
36
sudo apt-get update
37
37
sudo apt-get install -y --no-install-recommends liblua5.4-dev liblua5.3-dev liblua5.2-dev liblua5.1-0-dev libluajit-5.1-dev
45
45
matrix :
46
46
lua : [lua54, lua53, lua52, lua51, luajit]
47
47
steps :
48
- - uses : actions/checkout@v4
48
+ - uses : actions/checkout@main
49
49
- uses : dtolnay/rust-toolchain@stable
50
50
with :
51
51
toolchain : stable
@@ -55,13 +55,13 @@ jobs:
55
55
56
56
build_aarch64_cross_ubuntu :
57
57
name : Cross-compile to aarch64-unknown-linux-gnu
58
- runs-on : ubuntu-22.04
58
+ runs-on : ubuntu-latest
59
59
needs : build
60
60
strategy :
61
61
matrix :
62
62
lua : [lua54, lua53, lua52, lua51, luajit]
63
63
steps :
64
- - uses : actions/checkout@v4
64
+ - uses : actions/checkout@main
65
65
- uses : dtolnay/rust-toolchain@stable
66
66
with :
67
67
toolchain : stable
@@ -77,13 +77,13 @@ jobs:
77
77
78
78
build_armv7_cross_ubuntu :
79
79
name : Cross-compile to armv7-unknown-linux-gnueabihf
80
- runs-on : ubuntu-22.04
80
+ runs-on : ubuntu-latest
81
81
needs : build
82
82
strategy :
83
83
matrix :
84
84
lua : [lua54, lua53, lua52, lua51]
85
85
steps :
86
- - uses : actions/checkout@v4
86
+ - uses : actions/checkout@main
87
87
- uses : dtolnay/rust-toolchain@stable
88
88
with :
89
89
toolchain : stable
@@ -103,18 +103,18 @@ jobs:
103
103
needs : build
104
104
strategy :
105
105
matrix :
106
- os : [ubuntu-22.04 , macos-latest, windows-latest]
106
+ os : [ubuntu-latest , macos-latest, windows-latest]
107
107
rust : [stable, nightly]
108
108
lua : [lua54, lua53, lua52, lua51, luajit, luajit52, luau, luau-jit, luau-vector4]
109
109
include :
110
- - os : ubuntu-22.04
110
+ - os : ubuntu-latest
111
111
target : x86_64-unknown-linux-gnu
112
112
- os : macos-latest
113
113
target : x86_64-apple-darwin
114
114
- os : windows-latest
115
115
target : x86_64-pc-windows-msvc
116
116
steps :
117
- - uses : actions/checkout@v4
117
+ - uses : actions/checkout@main
118
118
- uses : dtolnay/rust-toolchain@stable
119
119
with :
120
120
toolchain : ${{ matrix.rust }}
@@ -139,14 +139,14 @@ jobs:
139
139
needs : build
140
140
strategy :
141
141
matrix :
142
- os : [ubuntu-22.04 ]
142
+ os : [ubuntu-latest ]
143
143
rust : [nightly]
144
144
lua : [lua54, lua53, lua52, lua51, luajit, luau, luau-jit, luau-vector4]
145
145
include :
146
- - os : ubuntu-22.04
146
+ - os : ubuntu-latest
147
147
target : x86_64-unknown-linux-gnu
148
148
steps :
149
- - uses : actions/checkout@v4
149
+ - uses : actions/checkout@main
150
150
- uses : dtolnay/rust-toolchain@stable
151
151
with :
152
152
toolchain : ${{ matrix.rust }}
@@ -160,22 +160,48 @@ jobs:
160
160
env :
161
161
RUSTFLAGS : -Z sanitizer=address
162
162
163
+ test_with_memory_limit :
164
+ name : Test with memory limit
165
+ runs-on : ${{ matrix.os }}
166
+ needs : build
167
+ strategy :
168
+ matrix :
169
+ os : [ubuntu-latest]
170
+ rust : [nightly]
171
+ lua : [lua54, lua53, lua52, lua51, luajit, luau, luau-jit, luau-vector4]
172
+ include :
173
+ - os : ubuntu-latest
174
+ target : x86_64-unknown-linux-gnu
175
+ steps :
176
+ - uses : actions/checkout@main
177
+ - uses : dtolnay/rust-toolchain@stable
178
+ with :
179
+ toolchain : ${{ matrix.rust }}
180
+ target : ${{ matrix.target }}
181
+ - uses : Swatinem/rust-cache@v2
182
+ - name : Run ${{ matrix.lua }} tests with forced memory limit
183
+ run : |
184
+ cargo test --tests --features "${{ matrix.lua }},vendored,async,send,serialize,macros"
185
+ shell : bash
186
+ env :
187
+ RUSTFLAGS : --cfg=force_memory_limit
188
+
163
189
test_modules :
164
190
name : Test modules
165
191
runs-on : ${{ matrix.os }}
166
192
needs : build
167
193
strategy :
168
194
matrix :
169
- os : [ubuntu-22.04 , macos-latest]
195
+ os : [ubuntu-latest , macos-latest]
170
196
rust : [stable]
171
197
lua : [lua54, lua53, lua52, lua51, luajit, luau]
172
198
include :
173
- - os : ubuntu-22.04
199
+ - os : ubuntu-latest
174
200
target : x86_64-unknown-linux-gnu
175
201
- os : macos-latest
176
202
target : x86_64-apple-darwin
177
203
steps :
178
- - uses : actions/checkout@v4
204
+ - uses : actions/checkout@main
179
205
- uses : dtolnay/rust-toolchain@stable
180
206
with :
181
207
toolchain : ${{ matrix.rust }}
@@ -199,7 +225,7 @@ jobs:
199
225
shell : msys2 {0}
200
226
steps :
201
227
- uses : msys2/setup-msys2@v2
202
- - uses : actions/checkout@v4
228
+ - uses : actions/checkout@main
203
229
- name : Install Rust & Lua
204
230
run : |
205
231
pacman -S --noconfirm mingw-w64-x86_64-rust mingw-w64-x86_64-lua mingw-w64-x86_64-luajit mingw-w64-x86_64-pkg-config
@@ -210,13 +236,13 @@ jobs:
210
236
211
237
test_wasm32_emscripten :
212
238
name : Test on wasm32-unknown-emscripten
213
- runs-on : ubuntu-22.04
239
+ runs-on : ubuntu-latest
214
240
needs : build
215
241
strategy :
216
242
matrix :
217
243
lua : [lua54, lua53, lua52, lua51, luau]
218
244
steps :
219
- - uses : actions/checkout@v4
245
+ - uses : actions/checkout@main
220
246
- uses : dtolnay/rust-toolchain@stable
221
247
with :
222
248
toolchain : stable
@@ -232,22 +258,22 @@ jobs:
232
258
233
259
rustfmt :
234
260
name : Rustfmt
235
- runs-on : ubuntu-22.04
261
+ runs-on : ubuntu-latest
236
262
steps :
237
- - uses : actions/checkout@v4
263
+ - uses : actions/checkout@main
238
264
- uses : dtolnay/rust-toolchain@nightly
239
265
with :
240
266
components : rustfmt
241
267
- run : cargo fmt -- --check
242
268
243
269
clippy :
244
270
name : Clippy
245
- runs-on : ubuntu-22.04
271
+ runs-on : ubuntu-latest
246
272
strategy :
247
273
matrix :
248
274
lua : [lua54, lua53, lua52, lua51, luajit, luau, luau-jit, luau-vector4]
249
275
steps :
250
- - uses : actions/checkout@v4
276
+ - uses : actions/checkout@main
251
277
- uses : dtolnay/rust-toolchain@stable
252
278
with :
253
279
toolchain : nightly
0 commit comments