forked from MLton/mlton
-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (63 loc) · 3.06 KB
/
binary-release.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Binary Release
on:
workflow_dispatch:
inputs:
mlton-version:
required: true
type: string
workflow_call:
inputs:
mlton-version:
required: true
type: string
jobs:
binary-release:
strategy:
fail-fast: false
matrix:
include:
- runner: "ubuntu-24.04"
mlton-binary-release-suffix: ".${RUNNER}_glibc$(cc -dM -E - <<< '#include <stdlib.h>' | sed -En 's;#define __GLIBC__ (.*);\\1;p').$(cc -dM -E - <<< '#include <stdlib.h>' | sed -En 's;#define __GLIBC_MINOR__ (.*);\\1;p')"
- runner: "ubuntu-24.04"
mlton-compile-args: "-link-opt -static"
mlton-binary-release-suffix: ".${RUNNER}_static"
- runner: "ubuntu-22.04"
mlton-binary-release-suffix: ".${RUNNER}_glibc$(cc -dM -E - <<< '#include <stdlib.h>' | sed -En 's;#define __GLIBC__ (.*);\\1;p').$(cc -dM -E - <<< '#include <stdlib.h>' | sed -En 's;#define __GLIBC_MINOR__ (.*);\\1;p')"
- runner: "ubuntu-22.04"
mlton-compile-args: "-link-opt -static"
mlton-binary-release-suffix: ".${RUNNER}_static"
- runner: "ubuntu-20.04"
mlton-binary-release-suffix: ".${RUNNER}_glibc$(cc -dM -E - <<< '#include <stdlib.h>' | sed -En 's;#define __GLIBC__ (.*);\\1;p').$(cc -dM -E - <<< '#include <stdlib.h>' | sed -En 's;#define __GLIBC_MINOR__ (.*);\\1;p')"
- runner: "ubuntu-20.04"
mlton-compile-args: "-link-opt -static"
mlton-binary-release-suffix: ".${RUNNER}_static"
- runner: "macos-13"
mlton-binary-release-suffix: ".${RUNNER}_gmp-homebrew"
- runner: "macos-13"
mlton-compile-args: "-gmp-link-opt $(brew --prefix)/lib/libgmp.a"
mlton-binary-release-suffix: ".${RUNNER}_gmp-static"
- runner: "macos-14"
mlton-binary-release-suffix: ".${RUNNER}_gmp-homebrew"
- runner: "macos-14"
mlton-compile-args: "-gmp-link-opt $(brew --prefix)/lib/libgmp.a"
mlton-binary-release-suffix: ".${RUNNER}_gmp-static"
- runner: "macos-15"
mlton-binary-release-suffix: ".${RUNNER}_gmp-homebrew"
- runner: "macos-15"
mlton-compile-args: "-gmp-link-opt $(brew --prefix)/lib/libgmp.a"
mlton-binary-release-suffix: ".${RUNNER}_gmp-static"
- runner: "windows-2022"
mlton-binary-release-suffix: ".${RUNNER}_${MSYSTEM}"
- runner: "windows-2022"
mlton-compile-args: "-link-opt -static"
mlton-binary-release-suffix: ".${RUNNER}_${MSYSTEM}_static"
uses: ./.github/workflows/binary-release-single.yml
with:
mlton-version: ${{ inputs.mlton-version }}
runner: ${{ matrix.runner }}
old-mlton-runtime-args: ${{ matrix.old-mlton-runtime-args }}
old-mlton-compile-args: ${{ matrix.old-mlton-compile-args }}
mlton-runtime-args: ${{ matrix.mlton-runtime-args }}
mlton-compile-args: ${{ matrix.mlton-compile-args }}
mlton-binary-release-suffix: ${{ matrix.mlton-binary-release-suffix }}
secrets: inherit