Skip to content

Commit

Permalink
Experiment with ubuntu-24.04-arm runner in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewFluet committed Jan 17, 2025
1 parent 6fbd043 commit 49ca4bd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/actions/install-bootstrap-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ runs:
if: ${{ contains(fromJSON('["ubuntu-20.04", "ubuntu-22.04", "ubuntu-24.04"]'), inputs.runner) }}
shell: 'bash'
run: |
# Install dependencies (ubuntu)
# Install dependencies (ubuntu (amd64))
sudo apt-get update
sudo apt-get install libgmp-dev
if [[ "${{ inputs.install-llvm }}" == "true" ]]; then sudo apt-get install llvm; fi
Expand All @@ -21,6 +21,19 @@ runs:
tar xzf mlton-20241230-1.amd64-linux.ubuntu-20.04_glibc2.31.tgz --exclude='*/share' --strip-components=1
rm mlton-20241230-1.amd64-linux.ubuntu-20.04_glibc2.31.tgz
- name: Install bootstrap dependencies (ubuntu (arm64))
if: ${{ contains(fromJSON('["ubuntu-22.04-arm", "ubuntu-24.04-arm"]'), inputs.runner) }}
shell: 'bash'
run: |
# Install dependencies (ubuntu (arm))
sudo apt-get update
sudo apt-get install libgmp-dev
if [[ "${{ inputs.install-llvm }}" == "true" ]]; then sudo apt-get install llvm; fi
mkdir boot && cd boot
curl -sOL https://github.com/ii8/mlton-builds/releases/download/20241230/mlton-20241230.aarch64-linux-gnu.tar.gz
tar xzf mlton-20241230.aarch64-linux-gnu.tar.gz --exclude='*/share' --strip-components=1
rm mlton-20241230.aarch64-linux-gnu.tar.gz
- name: Install bootstrap dependencies (macos (amd64))
if: ${{ contains(fromJSON('["macos-13"]'), inputs.runner) }}
shell: 'bash'
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ jobs:
cc: "clang"
codegen: "llvm"

- runner: "ubuntu-24.04-arm"
cc: "gcc"
codegen: "c"
- runner: "ubuntu-24.04-arm"
cc: "clang"
codegen: "c"
- runner: "ubuntu-24.04-arm"
cc: "clang"
codegen: "llvm"

- runner: "macos-13"
cc: "clang"
codegen: "amd64"
Expand Down

0 comments on commit 49ca4bd

Please sign in to comment.