Skip to content

Commit 3a8eff1

Browse files
committed
builds: Add macOS CI
1 parent b50e017 commit 3a8eff1

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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@v1
14+
- name: setup
15+
run: sudo patch -d "$(xcrun --show-sdk-path)" -i "$PWD/.github/workflows/macos.diff"
16+
- name: build
17+
run: ./configure ${{ matrix.config }} && make
18+
- name: test
19+
run: make check
20+
- name: bootstrap
21+
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)