-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (45 loc) · 1.33 KB
/
build.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
name: build
run-name: Build Spatial Shell
on: [push]
jobs:
build_matrix:
runs-on: ubuntu-latest
strategy:
matrix:
ocaml_compiler: [
# ocaml-system for Debian stable and Ubuntu LTS
ocaml.4.13.1,
# OCaml LTS version
ocaml.4.14.1,
# ocaml-system for Fedora 39
ocaml.5.0.0,
# ocaml-system for Archlinux
ocaml.5.1.0
]
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: sudo apt install opam scdoc
- name: Initialize Opam
run: opam init -n --bare
- name: Install dependencies
run: make build-deps OCAML_COMPILER="${{ matrix.ocaml_compiler }}"
- name: Build Spatial Shell
run: |
eval $(opam env)
make
build_static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: sudo apt install opam scdoc musl-dev musl-tools
- name: Initialize Opam
run: opam init -n --bare
- name: Build static binaries
run: ./scripts/prepare-release-artifacts.sh
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
path: _artifacts/spatial-shell-*.tar.gz
name: spatial-shell-${{ github.sha }}