-
Notifications
You must be signed in to change notification settings - Fork 412
40 lines (38 loc) · 1.02 KB
/
binaries.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
name: Binaries
on:
workflow_dispatch:
jobs:
binary:
name: Create
strategy:
fail-fast: false
matrix:
include:
- os: macos-13
name: x86_64-apple-darwin
installable: .#
- os: macos-14
name: aarch64-apple-darwin
installable: .#
- os: ubuntu-22.04
name: x86_64-unknown-linux-musl
installable: .#dune-static
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # for git describe
- uses: cachix/install-nix-action@v22
- run: echo "(version $(git describe --always --dirty --abbrev=7))" >> dune-project
- run: nix build ${{ matrix.installable }}
- uses: actions/upload-artifact@v4
with:
path: result/bin/dune
name: dune-${{ matrix.name }}
combine:
runs-on: ubuntu-latest
needs: binary
steps:
- uses: actions/upload-artifact/merge@v4
with:
separate-directories: true