Skip to content

Commit

Permalink
Try to build on Ubuntu, macOS and Windows by using setup-moonbit
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Sep 16, 2024
1 parent fe49546 commit 456d964
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: install
if: ${{ matrix.os != 'windows-latest' }}
run: |
curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash
echo "$HOME/.moon/bin" >> $GITHUB_PATH
- name: install on windows
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: Setup Moonbit
uses: hustcer/setup-moonbit@v1

- name: moon version
run: |
Expand Down Expand Up @@ -77,10 +68,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: install
run: |
curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash
echo "$HOME/.moon/bin" >> $GITHUB_PATH
- name: Setup Moonbit
uses: hustcer/setup-moonbit@v1

- name: moon test
run: moon test --enable-coverage
Expand Down

0 comments on commit 456d964

Please sign in to comment.