-
Notifications
You must be signed in to change notification settings - Fork 125
54 lines (50 loc) · 1.39 KB
/
subflow-electrod.yaml
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
48
49
50
51
52
53
54
name: subflow-electrod
on:
workflow_call:
workflow_dispatch:
jobs:
binaries:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-latest
ocaml-compiler: 4.14.1
dir: darwin/amd64
file: electrod
id: darwin-amd64
- os: macos-14
ocaml-compiler: 4.14.1
dir: darwin/arm64
file: electrod
id: darwin-arm64
- os: ubuntu-latest
ocaml-compiler: 4.14.1
dir: linux/amd64
file: electrod
id: linux-amd64
- os: windows-latest
ocaml-compiler: 4.14.1
dir: windows/amd64
file: electrod.exe
id: windows-amd64
steps:
- uses: actions/checkout@v4
with:
repository: alloytools/electrod
ref: alloy
- uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-local-packages: |
!electrod.opam.lock
electrod.opam
- run: |
opam install . --deps-only --with-test
opam exec -- dune build
mkdir -p native/${{ matrix.dir }}
cp electrod.exe native/${{ matrix.dir }}/${{ matrix.file }}
- uses: actions/upload-artifact@v4
with:
path: native/
name: electrod-${{ matrix.id }}