Skip to content

Commit

Permalink
ci: fix test on main
Browse files Browse the repository at this point in the history
  • Loading branch information
lijunchen authored and Young-Flash committed Oct 16, 2024
1 parent 8bbb200 commit 2c4e5d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test-on-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
chmod +x ~/.moon/bin/tcc
git clone --depth 1 https://github.com/moonbitlang/core.git ~/.moon/lib/core
echo "$HOME/.moon/bin" >> $GITHUB_PATH
echo "$GITHUB_WORKSPACE/target/debug" >> $GITHUB_PATH
- name: install MoonBit(Windows)
if: ${{ matrix.os == 'windows-latest' }}
Expand All @@ -83,6 +84,7 @@ jobs:
Invoke-WebRequest -Uri https://cli.moonbitlang.com/moon-ci/Windows-x86_64/mooncake.exe -OutFile "$env:USERPROFILE/.moon/bin/mooncake.exe"
git clone --depth 1 https://github.com/moonbitlang/core.git "$env:USERPROFILE/.moon/lib/core"
"$env:USERPROFILE\.moon\bin" | Out-File -FilePath $env:GITHUB_PATH -Append
"$env:GITHUB_WORKSPACE\target\debug" | Out-File -FilePath $env:GITHUB_PATH -Append
- name: Build
run: cargo build
Expand All @@ -92,7 +94,6 @@ jobs:
if: ${{ matrix.os != 'windows-latest' }}
run: |
cargo run --bin moon bundle --source-dir ~/.moon/lib/core --all
echo "${{ github.workspace }}/target/debug" >> $GITHUB_PATH
- name: Bundle core (Windows)
if: ${{ matrix.os == 'windows-latest' }}
run: cargo run --bin moon bundle --source-dir "$env:USERPROFILE\.moon\lib\core" --all
Expand Down

0 comments on commit 2c4e5d8

Please sign in to comment.