add some basic tests #88
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: ["push", "pull_request"] | |
jobs: | |
build-ubuntu: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install required Ubuntu packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y --no-install-recommends libgtk-4-dev gobject-introspection gir1.2-glib-2.0 gir1.2-gtk-4.0 bubblewrap | |
- name: Install OPAM | |
run: | | |
echo '' | bash -c "sh <(curl -fsSL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)" | |
opam init | |
opam install -y dune dune-configurator alcotest | |
- name: Build ocaml-gtk | |
run: | | |
eval `opam env` | |
dune build | |
env: | |
PREFIX: /usr/lib/x86_64-linux-gnu | |
build-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install required Homebrew packages | |
run: | | |
brew install gtk4 gobject-introspection | |
- name: Install OPAM | |
run: | | |
echo '' | bash -c "sh <(curl -fsSL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)" | |
opam init | |
opam install -y dune dune-configurator alcotest | |
- name: Build ocaml-gtk | |
run: | | |
eval `opam env` | |
dune build | |
env: | |
PREFIX: /usr/local/lib |