Skip to content

Commit

Permalink
ci: add windows-latest & macos-13 for bleeding
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Flash committed Jan 24, 2025
1 parent 082b60c commit dd60b12
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,16 +240,25 @@ jobs:
continue-on-error: true
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
os: [macos-latest, ubuntu-latest, windows-latest, macos-13]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

- name: install
if: ${{ matrix.os != 'windows-latest' }}
run: |
curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash -s 'bleeding'
curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash -s bleeding
echo "$HOME/.moon/bin" >> $GITHUB_PATH
- name: install on windows
env:
MOONBIT_INSTALL_VERSION: bleeding
if: ${{ matrix.os == 'windows-latest' }}
run: |
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser; irm https://cli.moonbitlang.com/install/powershell.ps1 | iex
"C:\Users\runneradmin\.moon\bin" | Out-File -FilePath $env:GITHUB_PATH -Append
- name: moon version
run: |
moon version --all
Expand All @@ -259,13 +268,25 @@ jobs:
run: moon check --deny-warn

- name: Set ulimit and run moon test
if: ${{ matrix.os != 'windows-latest' }}
run: |
ulimit -s 8176
moon test --target all
moon test --release --target all
moon test --target native
moon test --target native --release
- name: Setup MSVC
if: ${{ matrix.os == 'windows-latest' }}
uses: ilammy/msvc-dev-cmd@v1

- name: Run moon test on Windows
if: ${{ matrix.os == 'windows-latest' }}
run: |
moon test --target all
moon test --release --target all
moon test --target native
- name: moon test --doc
run: |
moon test --doc
Expand Down

0 comments on commit dd60b12

Please sign in to comment.