-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.17 KB
/
Copy pathci.yml
File metadata and controls
41 lines (35 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
build-and-test:
runs-on: macos-15
strategy:
fail-fast: false
matrix:
# The build files and sources use spellings valid in both: the
# root_module API, callconv(.c), ArrayListUnmanaged, and
# net.Stream.read. Testing both keeps that honest rather than assumed.
zig: ["0.14.1", "0.15.2", "0.16.0"]
name: build-and-test (zig ${{ matrix.zig }})
steps:
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v2
with:
version: ${{ matrix.zig }}
# Pinned to macos-15 rather than macos-latest. macos-latest now ships
# Xcode 26.5, whose SDK Zig 0.14.1 cannot link against: every libc
# symbol comes out undefined, and even the build runner fails to link.
# Setting SDKROOT does not help, since the SDK itself is the problem.
- name: Report toolchain
run: |
xcodebuild -version
echo "SDK: $(xcrun --show-sdk-path)"
- name: Build
run: zig build
# Drives the built plugin through the raw VST3 C ABI.
- name: Test
run: zig build test