Closed dpo closed 2 years ago
Hi, I'm open to adding them. However, I don't have access to any self-hosted runners or aarch64 macOS hardware, which makes adding and testing archs that aren't available through GitHub's hosted runners impossible on my own.
I'm happy to accept PRs or collaborate on adding them if you have access to the required runners/hardware, though.
Great, thank you! Let me try to get a first version going.
Mosè pointed out on Slack that there isn't a GHA runner for M1 yet: https://github.com/actions/runner/issues/805#issuecomment-1132966327
These lines would need changing/additions to add support for it:
I might have missed something and the README would need an update too, so no guarantee for completeness.
I successfully tested a self-hosted runner on a Macbook M1 with the new runners v2.292.0
. I used this script to test an example package:
name: CI
on:
push:
branches: ["*"]
tags: ["*"]
pull_request:
jobs:
test:
name: Julia ${{ matrix.version }} - macOS - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: [self-hosted]
strategy:
fail-fast: false
matrix:
version:
- 1.7.2
arch:
- aarch64
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- name: Version Info
shell: julia --color=yes {0}
run: |
using InteractiveUtils
versioninfo()
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
It doesn't work properly on macOS yet due to permission errors when copying the files from the attached dmg file. I'll debug this another time. For now be warned that this may not work reliably.
I think this problem is orthogonal to the original issue of being able to install aarch64 binaries, though.
Good point, I opened #105
Many thanks for this!!!
I tried with Mosé's script but I get the error in the screenshot. The VersionInfo
job doesn't even run.
Server side, all I see is
% ./run.sh
√ Connected to GitHub
Current runner version: '2.292.0'
2022-06-01 15:47:42Z: Listening for Jobs
2022-06-01 15:48:25Z: Running job: Julia 1.7.3 - macOS - aarch64 - pull_request
2022-06-01 15:48:36Z: Job Julia 1.7.3 - macOS - aarch64 - pull_request completed with result: Failed
Any ideas?
There is no build of Julia v1.7.3 for that architecture. DON'T USE JULIA v1.7 ON THE M1, IT'S BROKEN. I hope the message is clear
I know ;-). I'm testing it. Hence this request.
It would be useful to select other Julia architectures (e.g., macOS aarch64) to run on self-hosted runners. Would you be open to adding such feature to this action?