Skip to content

Commit

Permalink
ci: add riscv-builder for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mengzhuo committed Dec 25, 2024
1 parent 4e3fe26 commit df778c5
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ permissions: read-all

jobs:
build:
env:
OPAMROOTISOK: '1'
strategy:
matrix:
os:
- riscv-builders
- ubuntu-latest

runs-on: ${{ matrix.os }}
Expand All @@ -19,13 +22,15 @@ jobs:
- name: Checkout tree
uses: actions/checkout@v4

- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 4.14.2
- run: sudo apt install -yq opam

- run: opam install . --deps-only --with-test
- run: |
opam init --disable-sandboxing -y
opam switch -y create 4.14.2
opam install -y dune
- run: opam exec -- dune build -p moonbit-lang
- run: |
eval $(opam env)
dune build -p moonbit-lang
- run: ./_build/install/default/bin/moonc -v

0 comments on commit df778c5

Please sign in to comment.