forked from MLton/mlton
-
Notifications
You must be signed in to change notification settings - Fork 1
79 lines (70 loc) · 2.13 KB
/
binary-release-single.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
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Binary Release (single)
on:
workflow_dispatch:
inputs:
mlton-version:
required: true
type: string
runner:
required: true
type: string
binary-release-suffix:
required: false
type: string
workflow_call:
inputs:
mlton-version:
required: true
type: string
runner:
required: true
type: string
binary-release-suffix:
required: false
type: string
jobs:
binary-release-single:
runs-on: ${{ inputs.runner }}
env:
MLTON_VERSION: ${{ inputs.mlton-version }}
MLTON_BINARY_RELEASE_SUFFIX: ${{ inputs.binary-release-suffix }}
steps:
- name: Configure git (windows)
if: ${{ startsWith(matrix.runner, 'windows') }}
run: git config --global core.autocrlf false
shell: bash
- name: Install msys2 (windows)
if: ${{ startsWith(matrix.runner, 'windows') }}
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: false
install: >-
base-devel
git
pactoys
- name: Checkout
uses: actions/checkout@v4
with:
sparse-checkout: .github
ref: workflow-updates
- name: Install bootstrap dependencies
uses: ./.github/actions/install-bootstrap-dependencies
with:
runner: ${{ inputs.runner }}
install-llvm: false
- name: Download and unpack source release
uses: ./.github/actions/binary-release/download-and-unpack-source-release
with:
mlton-version: ${{ inputs.mlton-version }}
runner: ${{ inputs.runner }}
- name: Make binary release
uses: ./.github/actions/binary-release/make-binary-release
with:
mlton-version: ${{ inputs.mlton-version }}
runner: ${{ inputs.runner }}
binary-release-suffix: ${{ inputs.binary-release-suffix }}
- name: Upload binary release
run: gh release upload on-${MLTON_VERSION}-release mlton-${MLTON_VERSION}*.tgz --clobber
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}