Skip to content

Commit

Permalink
ci: add vanilla opam build.
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Mar 3, 2024
1 parent ad8d8ac commit f97347c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/opam.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build with opam

on:
push:
paths: [ '*.opam' ]
pull_request:
paths: [ '*.opam' ]
workflow_dispatch:

# only run one instance of this action at a time.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.09
- run: opam install . --deps-only --with-test
- run: dune build --profile release

6 changes: 0 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ jobs:
with: { name: pac-nix }
- run: echo 'preparing nix shell environment'

# it will be nice to make this work, just in case we aslp adds new dependencies
# - uses: ocaml/setup-ocaml@v2
# with:
# ocaml-compiler: ocaml-system.4.09.1 # must match nix develop's ocaml version!
# - run: opam install . --deps-only --with-test

- run: dune build --profile release
- run: ./coverage.sh test
id: coverage
Expand Down

0 comments on commit f97347c

Please sign in to comment.