Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
maximedenes committed Oct 27, 2023
1 parent 4d9c626 commit 8b72215
Showing 1 changed file with 37 additions and 6 deletions.
43 changes: 37 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,30 @@ on:
push:

jobs:
build:

nix-dev-build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure Dune
run: |
mkdir -p ~/.config/dune
cat <<EOF > ~/.config/dune/config
(lang dune 3.2)
(display short)
EOF
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix develop -c bash -c "dune build"
- run: nix develop -c bash -c "dune runtest"

opam-dev-build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
Expand All @@ -16,9 +37,7 @@ jobs:
ocaml-compiler:
- "4.11.0"
- "4.14.1"

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

steps:
- name: Checkout tree
uses: actions/checkout@v4
Expand All @@ -30,6 +49,18 @@ jobs:
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}

- run: dune build
- name: Install deps
env:
OPAMYES: true
run: |
opam install ./jasmin-language-server.opam --deps-only --with-doc --with-test
- name: Build jasmin-language-server
run: |
eval $(opam env)
cd dune build
- run: dune runtest
- name: Unit tests
run: |
eval $(opam env)
dune runtest

0 comments on commit 8b72215

Please sign in to comment.