Skip to content

Commit 0845d00

Browse files
Test Linux arm64 in the nightly run
The runtime builds for Linux arm64, but no job tested it. The platforms now include Linux arm64 on an arm runner whenever the Haxe version has a Linux arm64 build, which 4.3.7 does not, so the nightly run tests it. The 32-bit Linux libraries are installed only on x64 runners. Based on HaxeFoundation/hxcpp#1399 by @tobil4sk Fixes #45
1 parent fd56a6e commit 0845d00

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

‎.github/workflows/platforms.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,16 @@ jobs:
7474
sep: /
7575
ext: .dso
7676
os: ubuntu-latest
77+
78+
# Haxe 4.3.7 has no Linux arm64 build, so this runs with the nightly
79+
LinuxArm64:
80+
if: inputs.haxe != '4.3.7'
81+
uses: ./.github/workflows/test.yml
82+
name: Linux arm64
83+
with:
84+
label: Linux arm64
85+
haxe: ${{ inputs.haxe }}
86+
arch: Arm64
87+
sep: /
88+
ext: .dso
89+
os: ubuntu-24.04-arm

‎.github/workflows/setup/action.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ runs:
2020
haxelib run libhxcpp setup
2121
haxelib list
2222
23+
# The 32-bit Linux build's libraries, which arm64 runners do not have
2324
- name: install native libraries
24-
if: runner.os == 'Linux'
25+
if: runner.os == 'Linux' && runner.arch == 'X64'
2526
shell: pwsh
2627
run: |
2728
sudo apt-get update -qqy

0 commit comments

Comments
 (0)