-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (53 loc) · 1.57 KB
/
cross-platform.yml
File metadata and controls
64 lines (53 loc) · 1.57 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Cross-platform CI for Game Server Admin
# Builds and tests on Linux, macOS, and Windows
#
# SPDX-License-Identifier: MPL-2.0
name: Cross-Platform Build & Test
on:
push:
branches: [main, 'claude/**']
pull_request:
branches: [main]
permissions:
contents: read
jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
name: Linux
run-integration: true
- os: macos-latest
name: macOS
run-integration: false
- os: windows-latest
name: Windows
run-integration: false
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install Zig 0.15.2
uses: goto-bus-stop/setup-zig@7ab2955eb728f5440978d7e4148f16f0e36aa02f # v2.2.1
with:
version: 0.15.2
- name: Cache Zig
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: |
~/.cache/zig
~/AppData/Local/zig
key: zig-${{ matrix.os }}-${{ hashFiles('src/interface/ffi/build.zig') }}
- name: Build
working-directory: src/interface/ffi
run: zig build
- name: Unit Tests
working-directory: src/interface/ffi
run: zig build test
- name: Integration Tests (Linux only)
if: matrix.run-integration
working-directory: src/interface/ffi
run: zig build test-integration