Skip to content

Commit

Permalink
use script
Browse files Browse the repository at this point in the history
  • Loading branch information
Bao Zhiyuan committed May 24, 2024
1 parent 90a08d4 commit 80bcc2c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ on:
- cron: '0 2 * * *'

jobs:
simple-use:
runs-on: macos-latest
unix-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os.name }}
env:
WECOM_ROBOT_KEY: ${{ secrets.WECOM_ROBOT_KEY }}
steps:
- uses: actions/checkout@v4

- name: install
run: |
/bin/bash -c "$(curl -fsSL https://cli.moonbitlang.com/bleeding/mac_m1_moon_setup.sh)"
curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash -s bleeding
echo "$HOME/.moon/bin" >> $GITHUB_PATH
- name: moon version
Expand All @@ -28,10 +33,9 @@ jobs:

- name: simple use
run: |
moon new hello
cd hello
moon add bzy-debug/hello
moon run main
for i in *.sh; do
bash $i
done
- name: notify on fail
if: ${{ failure() }}
Expand Down
5 changes: 5 additions & 0 deletions simple-use.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
moon new hello
pushd hello || exit 1
moon add bzy-debug/hello
moon run main
popd || exit 1

0 comments on commit 80bcc2c

Please sign in to comment.