-
Notifications
You must be signed in to change notification settings - Fork 1
83 lines (72 loc) · 1.98 KB
/
main.yml
File metadata and controls
83 lines (72 loc) · 1.98 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Splice CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-test:
name: Build & Test (${{ matrix.os }} - ${{ matrix.arch }})
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
# macOS
- os: macos
arch: x64
runner: macos-15-intel
- os: macos
arch: arm64
runner: macos-14
# Linux
- os: linux
arch: x64
runner: ubuntu-22.04
- os: linux
arch: arm64
runner: ubuntu-22.04
# Windows (CI only, no runtime)
- os: windows
arch: x64
runner: windows-2022
- os: windows
arch: arm64
runner: windows-2022
steps:
- uses: actions/checkout@v4
# ========================
# UNIX: build + run
# ========================
- name: Build Splice (Unix)
if: matrix.os != 'windows'
shell: bash
run: |
set -e
chmod +x build.sh
CI=true ./build.sh
- name: Run Splice (Unix)
if: matrix.os != 'windows'
shell: bash
run: |
./bin/spbuild test/main.spl main.spc
./bin/Splice main.spc
# ========================
# WINDOWS: intentionally skipped
# ========================
- name: Skip Splice runtime (Windows)
if: matrix.os == 'windows'
shell: pwsh
run: |
Write-Host "No prebuilt Windows binaries. Runtime tests skipped."
# ========================
# Finish
# ========================
- name: Mark as finished
shell: bash
run: echo "Build completed on ${{ matrix.os }}-${{ matrix.arch }}" > finish.txt
- name: Upload finish artifact
uses: actions/upload-artifact@v4
with:
name: splice-finish-${{ matrix.os }}-${{ matrix.arch }}
path: finish.txt