Skip to content

Commit 2869cdb

Browse files
committed
builds: Add macOS CI
1 parent 292b206 commit 2869cdb

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: build
2+
on: [push]
3+
jobs:
4+
build:
5+
strategy:
6+
matrix:
7+
os: [macos-latest, macos-15-intel, macos-26-intel]
8+
include:
9+
- os: macos-latest
10+
config: --host=aarch64-apple-darwin
11+
runs-on: ${{ matrix.os }}
12+
steps:
13+
- uses: actions/checkout@v6
14+
- name: qbe
15+
run: |
16+
git clone git://c9x.me/qbe.git
17+
make -C qbe install
18+
- name: setup
19+
run: sudo patch -d "$(xcrun --show-sdk-path)" -i "$PWD/.github/workflows/macos.diff"
20+
- name: build
21+
run: ./configure ${{ matrix.config }} && make
22+
- name: test
23+
run: make check
24+
- name: bootstrap
25+
run: make bootstrap

.github/workflows/macos.diff

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--- usr/include/i386/_types.h.orig 2026-04-25 12:55:44
2+
+++ usr/include/i386/_types.h 2026-04-25 12:59:28
3+
@@ -115,10 +115,8 @@
4+
5+
#if USE_CLANG_TYPES
6+
typedef va_list __darwin_va_list; /* va_list */
7+
-#elif (__GNUC__ > 2)
8+
-typedef __builtin_va_list __darwin_va_list; /* va_list */
9+
#else
10+
-typedef void * __darwin_va_list; /* va_list */
11+
+typedef __builtin_va_list __darwin_va_list; /* va_list */
12+
#endif
13+
14+
#if USE_CLANG_TYPES

0 commit comments

Comments
 (0)