@@ -8,11 +8,11 @@ inputs:
8
8
runs :
9
9
using : " composite"
10
10
steps :
11
- - name : Install bootstrap dependencies (ubuntu)
12
- if : ${{ startsWith(inputs.runner, ' ubuntu' ) }}
11
+ - name : Install bootstrap dependencies (ubuntu (amd64) )
12
+ if : ${{ contains(fromJSON('["ubuntu-20.04", " ubuntu-22.04", "ubuntu-24.04"]'), inputs.runner ) }}
13
13
shell : ' bash'
14
14
run : |
15
- # Install dependencies (ubuntu)
15
+ # Install dependencies (ubuntu (amd64) )
16
16
sudo apt-get update
17
17
sudo apt-get install libgmp-dev
18
18
if [[ "${{ inputs.install-llvm }}" == "true" ]]; then sudo apt-get install llvm; fi
21
21
tar xzf mlton-20241230-1.amd64-linux.ubuntu-20.04_glibc2.31.tgz --exclude='*/share' --strip-components=1
22
22
rm mlton-20241230-1.amd64-linux.ubuntu-20.04_glibc2.31.tgz
23
23
24
+ - name : Install bootstrap dependencies (ubuntu (arm64))
25
+ if : ${{ contains(fromJSON('["ubuntu-22.04-arm", "ubuntu-24.04-arm"]'), inputs.runner) }}
26
+ shell : ' bash'
27
+ run : |
28
+ # Install dependencies (ubuntu (arm))
29
+ sudo apt-get update
30
+ sudo apt-get install libgmp-dev
31
+ if [[ "${{ inputs.install-llvm }}" == "true" ]]; then sudo apt-get install llvm; fi
32
+ mkdir boot && cd boot
33
+ curl -sOL https://github.com/ii8/mlton-builds/releases/download/20241230/mlton-20241230.aarch64-linux-gnu.tar.gz
34
+ tar xzf mlton-20241230.aarch64-linux-gnu.tar.gz --exclude='*/share' --strip-components=1
35
+ rm mlton-20241230.aarch64-linux-gnu.tar.gz
36
+
24
37
- name : Install bootstrap dependencies (macos (amd64))
25
- if : ${{ inputs.runner == ' macos-13' }}
38
+ if : ${{ contains(fromJSON('[" macos-13"]'), inputs.runner) }}
26
39
shell : ' bash'
27
40
run : |
28
41
# Install dependencies (macos (amd64))
36
49
rm mlton-20241230-1.amd64-darwin.macos-13_gmp-homebrew.tgz
37
50
38
51
- name : Install bootstrap dependencies (macos (arm64))
39
- if : ${{ (inputs.runner == ' macos-14') || ( inputs.runner == 'macos-15' ) }}
52
+ if : ${{ contains(fromJSON('[" macos-14", "macos-15"]'), inputs.runner) }}
40
53
shell : ' bash'
41
54
run : |
42
55
# Install dependencies (macos (arm64))
@@ -50,13 +63,13 @@ runs:
50
63
rm mlton-20241230-1.arm64-darwin.macos-14_gmp-homebrew.tgz
51
64
52
65
- name : Install bootstrap dependencies (windows)
53
- if : ${{ startsWith(inputs.runner, ' windows' ) }}
66
+ if : ${{ contains(fromJSON('["windows-2019", " windows-2022", "windows-2025"]'), inputs.runner ) }}
54
67
shell : ' msys2 {0}'
55
68
run : |
56
69
# Install dependencies (windows)
57
70
pacboy --noconfirm -S --needed $(if [ ${MSYSTEM} == "CLANG64" ]; then echo clang:p ; else echo gcc:p; fi) gmp:p gmp-devel:
58
71
if [[ "${{ inputs.install-llvm }}" == "true" ]]; then pacboy --noconfirm -S --needed llvm:p ; fi
59
72
mkdir boot && cd boot
60
- curl -sOL https://github.com/MLton/mlton/releases/download/on-20241230-release/mlton-20241230-1.amd64-mingw.windows-2022_MINGW64 .tgz
61
- tar xzf mlton-20241230-1.amd64-mingw.windows-2022_MINGW64 .tgz --exclude='*/share' --strip-components=1
62
- rm mlton-20241230-1.amd64-mingw.windows-2022_MINGW64 .tgz
73
+ curl -sOL https://github.com/MLton/mlton/releases/download/on-20241230-release/mlton-20241230-1.amd64-mingw.windows-2022_msys2_${MSYSTEM} .tgz
74
+ tar xzf mlton-20241230-1.amd64-mingw.windows-2022_msys2_${MSYSTEM} .tgz --exclude='*/share' --strip-components=1
75
+ rm mlton-20241230-1.amd64-mingw.windows-2022_msys2_${MSYSTEM} .tgz
0 commit comments