Skip to content

Commit 6e0ca35

Browse files
committed
ci: add windows-latest & macos-13 for bleeding
1 parent c8f6ac5 commit 6e0ca35

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/check.yml

+23-2
Original file line numberDiff line numberDiff line change
@@ -240,16 +240,25 @@ jobs:
240240
continue-on-error: true
241241
strategy:
242242
matrix:
243-
os: [macos-latest, ubuntu-latest]
243+
os: [macos-latest, ubuntu-latest, windows-latest, macos-13]
244244
runs-on: ${{ matrix.os }}
245245
steps:
246246
- uses: actions/checkout@v4
247247

248248
- name: install
249+
if: ${{ matrix.os != 'windows-latest' }}
249250
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
251252
echo "$HOME/.moon/bin" >> $GITHUB_PATH
252253
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+
253262
- name: moon version
254263
run: |
255264
moon version --all
@@ -259,13 +268,25 @@ jobs:
259268
run: moon check --deny-warn
260269

261270
- name: Set ulimit and run moon test
271+
if: ${{ matrix.os != 'windows-latest' }}
262272
run: |
263273
ulimit -s 8176
264274
moon test --target all
265275
moon test --release --target all
266276
moon test --target native
267277
moon test --target native --release
268278
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+
269290
- name: moon test --doc
270291
run: |
271292
moon test --doc

0 commit comments

Comments
 (0)