Skip to content

Commit

Permalink
Merge pull request #634 from avsm/master
Browse files Browse the repository at this point in the history
Enable GitHub Actions in master branch
  • Loading branch information
yallop authored Mar 18, 2020
2 parents 14b699f + 8e58a54 commit b43e5b5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Ctypes
on: [push, pull_request]
jobs:
tests:
name: Tests
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
ocaml-version: [ '4.09.0', '4.10.0' ]
operating-system: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@master
- uses: avsm/setup-ocaml@v1.0
with:
ocaml-version: ${{ matrix.ocaml-version }}
- name: Deps
run: |
opam pin add -n ctypes.dev .
opam pin add -n ctypes-foreign.dev .
opam depext -ty ctypes ctypes-foreign
opam install -t --deps-only .
- name: Build
run: opam exec -- make
- name: Test
run: opam exec -- make test
1 change: 1 addition & 0 deletions ctypes-foreign.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ depexts: [
["libffi"] {os = "macos" & os-distribution = "macports"}
["libffi-devel"] {os-distribution = "centos"}
["libffi-devel"] {os-distribution = "ol"}
["libffi"] {os = "win32" & os-distribution = "cygwinports"}
["libffi-devel"] {os-distribution = "fedora"}
["libffi-dev"] {os-distribution = "alpine"}
["libffi-devel"] {os-family = "suse"}
Expand Down

0 comments on commit b43e5b5

Please sign in to comment.