mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
chore: small refactor of github actions
sadly the matrix thing is not expressive enough to use a
given switch only on a given OS (like, windows + mingw32).
So, 🤷
This commit is contained in:
parent
38d8fc2f9a
commit
9fe414f793
1 changed files with 7 additions and 7 deletions
14
.github/workflows/main.yml
vendored
14
.github/workflows/main.yml
vendored
|
|
@ -3,22 +3,22 @@ on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
run:
|
run:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ${{ matrix.operating-system }}
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
operating-system: [macos-latest, ubuntu-latest, windows-latest]
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||||
ocaml-version: [ '4.08.0' ]
|
ocaml: [ '4.08.0' ]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@main
|
- uses: actions/checkout@main
|
||||||
- uses: avsm/setup-ocaml@master
|
- uses: avsm/setup-ocaml@master
|
||||||
with:
|
with:
|
||||||
ocaml-version: ${{ matrix.ocaml-version }}
|
ocaml-version: ${{ matrix.ocaml }}
|
||||||
- run: opam pin -n .
|
- run: opam pin -n .
|
||||||
- run: opam depext -yt containers containers-data containers-thread
|
- run: opam depext -yt containers containers-data containers-thread
|
||||||
- run: opam install -t . --deps-only
|
- run: opam install -t . --deps-only
|
||||||
if: ${{ matrix.operating-system != 'windows-latest' }}
|
if: ${{ matrix.os != 'windows-latest' }}
|
||||||
- run: opam install . --deps-only # no test deps
|
- run: opam install . --deps-only # no test deps
|
||||||
if: ${{ matrix.operating-system == 'windows-latest' }}
|
if: ${{ matrix.os == 'windows-latest' }}
|
||||||
- run: opam exec -- dune build
|
- run: opam exec -- dune build
|
||||||
- run: opam exec -- dune runtest
|
- run: opam exec -- dune runtest
|
||||||
if: ${{ matrix.operating-system != 'windows-latest' }}
|
if: ${{ matrix.os != 'windows-latest' }}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue