Skip to content

Commit 6f201a6

Browse files
committed
builds: Add macOS CI
1 parent b50e017 commit 6f201a6

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: build
2+
on: [push]
3+
jobs:
4+
build:
5+
strategy:
6+
matrix:
7+
os: [macOS-latest]
8+
runs-on: ${{ matrix.os }}
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: setup
12+
run: sudo patch -d "$(xcrun --show-sdk-path)" -i "$PWD/.github/workflows/macos.diff"
13+
- name: build
14+
run: ./configure && make
15+
- name: test
16+
run: make check
17+
- name: bootstrap
18+
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)