-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (40 loc) · 1.23 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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