Skip to content

Commit

Permalink
Merge pull request #2 from mengzhuo/ci
Browse files Browse the repository at this point in the history
Initial Github Workflow Support
  • Loading branch information
mengzhuo authored Dec 23, 2024
2 parents 417aa93 + 3b728ba commit 95378a0
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Test

on:
- push
- pull_request

permissions: read-all

jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest

runs-on: ${{ matrix.os }}

steps:
- name: Checkout tree
uses: actions/checkout@v4

- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 4.14.2

- run: opam install . --deps-only --with-test

- run: opam exec -- dune build -p moonbit-lang

- run: ./_build/install/default/bin/moonc -v

0 comments on commit 95378a0

Please sign in to comment.