Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: add Linux arm64 build #40

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 25 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@ jobs:
timeout-minutes: 15
strategy:
matrix:
os: [linux-x86_64, macos-x86_64, macos-arm64, windows-x86_64]
os: [linux-x86_64, linux-arm64, macos-x86_64, macos-arm64, windows-x86_64]
compiler: [ldc, dmd]
type: [release, debug]
include:
- os: linux-x86_64
image: ubuntu-latest
container: alpine:edge

- os: linux-arm64
image: ubuntu-24.04-arm
container: alpine:edge

- os: macos-x86_64
image: macos-13
target: 10.12
Expand All @@ -31,22 +35,39 @@ jobs:

- os: linux-x86_64
compiler: ldc
dflags: -static -preview=all
dflags: -static

- os: linux-arm64
compiler: ldc
dflags: -static

- type: debug
flags: --debug=db --debug=msg --debug=user

- compiler: ldc
dflags: -preview=all
dflags-preview: -preview all

exclude:
- os: linux-arm64
compiler: dmd

- os: macos-arm64
compiler: dmd
runs-on: ${{ matrix.image }}
container: ${{ matrix.container }}
env:
DFLAGS: ${{ matrix.dflags }}
DFLAGS: ${{ matrix.dflags }} ${{ matrix.dflags-preview }}
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.target }}
steps:
# Workaround from https://github.com/actions/runner/issues/801#issuecomment-2394392502
- name: Patch native Alpine NodeJS into Runner environment
if: matrix.os == 'linux-arm64'
run: |
apk add docker nodejs
sed -i "s:ID=alpine:ID=NotpineForGHA:" /etc/os-release
docker run --rm -v /:/host alpine sh -c 'cd /host/home/runner/runners/*/externals/ && rm -rf node20/* && mkdir node20/bin && ln -s /usr/bin/node node20/bin/node'
shell: sh

- name: Checkout code
uses: actions/checkout@v4

Expand Down
Loading