Skip to content

Commit 20be77e

Browse files
committed
CI: Add native arm64 hello-world smoke test
1 parent 9874927 commit 20be77e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/main.yml

+11
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,18 @@ 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+
cat >hello.d <<EOF
163+
version (AArch64) {} else static assert(0);
164+
extern(C) int puts(const(char)* s);
165+
extern(C) int main() { puts("Hello world from native arm64!"); return 0; }
166+
EOF
167+
168+
generated/osx/release/64/dmd -betterC -arm -run hello.d
159169
- name: Test dmd
170+
if: success() || failure()
160171
run: ci/run.sh test_dmd
161172
- name: Test druntime
162173
if: '!matrix.coverage && (success() || failure())'

0 commit comments

Comments
 (0)