diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 6aa044e..30cedef 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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 @@ -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() }} diff --git a/simple-use.sh b/simple-use.sh new file mode 100644 index 0000000..1bafa38 --- /dev/null +++ b/simple-use.sh @@ -0,0 +1,5 @@ +moon new hello +pushd hello || exit 1 + moon add bzy-debug/hello + moon run main +popd || exit 1 \ No newline at end of file