Skip to content

Commit 7cd178d

Browse files
committed
CI: Add native arm64 hello-world smoke test
1 parent f013b70 commit 7cd178d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/main.yml

+13
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,20 @@ jobs:
156156
uses: seanmiddleditch/gha-setup-vsdevenv@v4
157157
with:
158158
arch: ${{ env.MODEL == '64' && 'x64' || 'x86' }}
159+
- name: 'macOS arm64: Run arm64 smoke test'
160+
if: matrix.os == 'macos-14'
161+
run: |
162+
set -uexo pipefail
163+
164+
cat >hello.d <<EOF
165+
version (AArch64) {} else static assert(0);
166+
extern(C) int puts(const(char)* s);
167+
extern(C) int main() { puts("Hello world from native arm64!"); return 0; }
168+
EOF
169+
170+
generated/osx/release/64/dmd -betterC -arm -run hello.d
159171
- name: Test dmd
172+
if: success() || failure()
160173
run: ci/run.sh test_dmd
161174
- name: Test druntime
162175
if: '!matrix.coverage && (success() || failure())'

0 commit comments

Comments
 (0)