Skip to content

Commit ce732e9

Browse files
RISCfutureclaude
andcommitted
Standardize CI matrix policy and doc workflow
Category A: macos-26 + Swift 6.2. Add Linux CI (swift:6.2 container). Add workflow_dispatch to doc workflow. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e35b1bf commit ce732e9

2 files changed

Lines changed: 22 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# CI Matrix Policy
2+
#
3+
# Category A (tools-version 6.2 + macOS 26 min): macos-26 + Swift 6.2
4+
# Category B (tools-version 6.2 + older macOS): macos-15 + 6.2, macos-26 + 6.2
5+
# Category C (tools-version 6.0): macos-15 + 6.0, macos-15 + 6.2, macos-26 + 6.2
6+
# Linux (if viable): ubuntu + Swift 6.0, ubuntu + Swift 6.2
7+
#
8+
# When Swift 6.3 ships: bump 6.0→6.1 and 6.2→6.3 in Category C
9+
# When bumping tools-version to 6.2: drop 6.0/6.1, move to Category A or B
10+
111
name: CI
212

313
on:
@@ -29,6 +39,17 @@ jobs:
2939
run: swift build -v
3040
- name: Test
3141
run: swift test -v
42+
test-linux:
43+
name: Test on Linux
44+
runs-on: ubuntu-latest
45+
container:
46+
image: swift:6.2
47+
steps:
48+
- uses: actions/checkout@v4
49+
- name: Build
50+
run: swift build -v
51+
- name: Test
52+
run: swift test -v
3253
lint:
3354
name: Run Swiftlint
3455
runs-on: ubuntu-latest

.github/workflows/doc.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
1-
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
21
name: Deploy Documentation
32

43
on:
54
push:
65
branches: [main]
6+
workflow_dispatch:
77

8-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
98
permissions:
109
contents: read
1110
pages: write
1211
id-token: write
1312

14-
# Allow one concurrent deployment
1513
concurrency:
1614
group: pages
1715
cancel-in-progress: true
1816

1917
jobs:
20-
# Build job
2118
build:
2219
name: Generate Documentation
2320
runs-on: macos-latest
@@ -57,7 +54,6 @@ jobs:
5754
with:
5855
path: "docs/"
5956

60-
# Deployment job
6157
deploy:
6258
environment:
6359
name: github-pages

0 commit comments

Comments
 (0)