Skip to content

add: devcontainer & ci #2

add: devcontainer & ci

add: devcontainer & ci #2

Workflow file for this run

on:
schedule:
- cron: '* * * * 2'
pull_request:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: install-ubuntu
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
/bin/bash -c "$(curl -fsSL https://cli.moonbitlang.com/ubuntu_x86_64_moon_setup.sh)"
echo "/home/runner/.moon/bin" >> $GITHUB_PATH
- name: install-macos
if: ${{ matrix.os == 'macos-latest' }}
run: |
/bin/bash -c "$(curl -fsSL https://cli.moonbitlang.com/mac_intel_moon_setup.sh)"
echo "/Users/runner/.moon/bin" >> $GITHUB_PATH
- name: install-windows
if: ${{ matrix.os == 'windows-latest' }}
run: |
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser; irm https://cli.moonbitlang.cn/windows_moon_setup.ps1 | iex
$env:GITHUB_PATH += ";$env:USERPROFILE\.moon\bin"
- name: moon check
run: |
moon check --target wasm-gc
moon check --target js
- name: moon build
run: |
moon build --target wasm-gc
moon build --target js