Skip to content

Commit 223c44a

Browse files
committed
ci: use Python 3.12 in Xcode workflows and exclude Source/Data from Swift/C++ CI
1 parent 213bf53 commit 223c44a

2 files changed

Lines changed: 17 additions & 6 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- '**/*.mm'
1010
- '**/*.m'
1111
- '**/*.h'
12+
- '**/*.py'
1213
- '*.xcodeproj/**'
1314
- '*.xcworkspace/**'
1415
- '.github/workflows/codeql.yml'
@@ -21,6 +22,7 @@ on:
2122
- '**/*.mm'
2223
- '**/*.m'
2324
- '**/*.h'
25+
- '**/*.py'
2426
- '*.xcodeproj/**'
2527
- '*.xcworkspace/**'
2628
- '.github/workflows/codeql.yml'
@@ -42,19 +44,25 @@ jobs:
4244
strategy:
4345
fail-fast: false
4446
matrix:
45-
language: [ 'swift', 'cpp' ]
47+
language: [ 'swift', 'cpp', 'python' ]
4648

4749
steps:
4850
- name: Checkout repository
49-
uses: actions/checkout@v4
51+
uses: actions/checkout@v5
52+
53+
- name: Set up Python
54+
uses: actions/setup-python@v6
55+
with:
56+
python-version: '3.12'
5057

5158
- name: Initialize CodeQL
5259
uses: github/codeql-action/init@v4
5360
with:
5461
languages: ${{ matrix.language }}
55-
build-mode: manual
62+
build-mode: ${{ matrix.language == 'python' && 'none' || 'manual' }}
5663

5764
- name: Build project
65+
if: matrix.language == 'swift' || matrix.language == 'cpp'
5866
run: |
5967
xcodebuild -scheme McBopomofoInstaller -configuration Debug build ARCHS=arm64 ONLY_ACTIVE_ARCH=YES
6068

.github/workflows/continuous-integration-workflow-xcode-latest.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ jobs:
2828
# env:
2929
# DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
3030
steps:
31-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@v5
32+
- uses: actions/setup-python@v6
33+
with:
34+
python-version: '3.12'
3235
- uses: maxim-lobanov/setup-xcode@v1
3336
with:
3437
xcode-version: "^16.1.0"
@@ -88,6 +91,6 @@ jobs:
8891
run: bash .github/collect_swift_coverage.sh
8992
- name: Create commit comment
9093
if: github.event_name == 'push'
91-
uses: peter-evans/commit-comment@v3
94+
uses: peter-evans/commit-comment@v4
9295
with:
93-
body-path: 'codecov_comment.md'
96+
body-path: 'codecov_comment.md'

0 commit comments

Comments
 (0)