@@ -240,16 +240,25 @@ jobs:
240
240
continue-on-error : true
241
241
strategy :
242
242
matrix :
243
- os : [macos-latest, ubuntu-latest]
243
+ os : [macos-latest, ubuntu-latest, windows-latest, macos-13 ]
244
244
runs-on : ${{ matrix.os }}
245
245
steps :
246
246
- uses : actions/checkout@v4
247
247
248
248
- name : install
249
+ if : ${{ matrix.os != 'windows-latest' }}
249
250
run : |
250
- curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash -s ' bleeding'
251
+ curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash -s bleeding
251
252
echo "$HOME/.moon/bin" >> $GITHUB_PATH
252
253
254
+ - name : install on windows
255
+ env :
256
+ MOONBIT_INSTALL_VERSION : bleeding
257
+ if : ${{ matrix.os == 'windows-latest' }}
258
+ run : |
259
+ Set-ExecutionPolicy RemoteSigned -Scope CurrentUser; irm https://cli.moonbitlang.com/install/powershell.ps1 | iex
260
+ "C:\Users\runneradmin\.moon\bin" | Out-File -FilePath $env:GITHUB_PATH -Append
261
+
253
262
- name : moon version
254
263
run : |
255
264
moon version --all
@@ -259,13 +268,25 @@ jobs:
259
268
run : moon check --deny-warn
260
269
261
270
- name : Set ulimit and run moon test
271
+ if : ${{ matrix.os != 'windows-latest' }}
262
272
run : |
263
273
ulimit -s 8176
264
274
moon test --target all
265
275
moon test --release --target all
266
276
moon test --target native
267
277
moon test --target native --release
268
278
279
+ - name : Setup MSVC
280
+ if : ${{ matrix.os == 'windows-latest' }}
281
+ uses : ilammy/msvc-dev-cmd@v1
282
+
283
+ - name : Run moon test on Windows
284
+ if : ${{ matrix.os == 'windows-latest' }}
285
+ run : |
286
+ moon test --target all
287
+ moon test --release --target all
288
+ moon test --target native
289
+
269
290
- name : moon test --doc
270
291
run : |
271
292
moon test --doc
0 commit comments