Skip to content

Commit 4b221ed

Browse files
authored
Merge pull request #603 from MatthewFluet/workflow-updates
GitHub workflow updates
2 parents 970095a + 49ca4bd commit 4b221ed

File tree

2 files changed

+32
-9
lines changed

2 files changed

+32
-9
lines changed

.github/actions/install-bootstrap-dependencies/action.yml

+22-9
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ inputs:
88
runs:
99
using: "composite"
1010
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) }}
1313
shell: 'bash'
1414
run: |
15-
# Install dependencies (ubuntu)
15+
# Install dependencies (ubuntu (amd64))
1616
sudo apt-get update
1717
sudo apt-get install libgmp-dev
1818
if [[ "${{ inputs.install-llvm }}" == "true" ]]; then sudo apt-get install llvm; fi
@@ -21,8 +21,21 @@ runs:
2121
tar xzf mlton-20241230-1.amd64-linux.ubuntu-20.04_glibc2.31.tgz --exclude='*/share' --strip-components=1
2222
rm mlton-20241230-1.amd64-linux.ubuntu-20.04_glibc2.31.tgz
2323
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+
2437
- name: Install bootstrap dependencies (macos (amd64))
25-
if: ${{ inputs.runner == 'macos-13' }}
38+
if: ${{ contains(fromJSON('["macos-13"]'), inputs.runner) }}
2639
shell: 'bash'
2740
run: |
2841
# Install dependencies (macos (amd64))
@@ -36,7 +49,7 @@ runs:
3649
rm mlton-20241230-1.amd64-darwin.macos-13_gmp-homebrew.tgz
3750
3851
- 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) }}
4053
shell: 'bash'
4154
run: |
4255
# Install dependencies (macos (arm64))
@@ -50,13 +63,13 @@ runs:
5063
rm mlton-20241230-1.arm64-darwin.macos-14_gmp-homebrew.tgz
5164
5265
- name: Install bootstrap dependencies (windows)
53-
if: ${{ startsWith(inputs.runner, 'windows') }}
66+
if: ${{ contains(fromJSON('["windows-2019", "windows-2022", "windows-2025"]'), inputs.runner) }}
5467
shell: 'msys2 {0}'
5568
run: |
5669
# Install dependencies (windows)
5770
pacboy --noconfirm -S --needed $(if [ ${MSYSTEM} == "CLANG64" ]; then echo clang:p ; else echo gcc:p; fi) gmp:p gmp-devel:
5871
if [[ "${{ inputs.install-llvm }}" == "true" ]]; then pacboy --noconfirm -S --needed llvm:p ; fi
5972
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

.github/workflows/ci.yml

+10
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ jobs:
2828
cc: "clang"
2929
codegen: "llvm"
3030

31+
- runner: "ubuntu-24.04-arm"
32+
cc: "gcc"
33+
codegen: "c"
34+
- runner: "ubuntu-24.04-arm"
35+
cc: "clang"
36+
codegen: "c"
37+
- runner: "ubuntu-24.04-arm"
38+
cc: "clang"
39+
codegen: "llvm"
40+
3141
- runner: "macos-13"
3242
cc: "clang"
3343
codegen: "amd64"

0 commit comments

Comments
 (0)