Skip to content

Commit 3a7120f

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

2 files changed

Lines changed: 18 additions & 5 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 10 additions & 2 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,11 +44,16 @@ 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
@@ -55,6 +62,7 @@ jobs:
5562
build-mode: 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: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- '*.xcodeproj/**'
1111
- '*.xcworkspace/**'
1212
- '.github/workflows/continuous-integration-workflow-xcode-latest.yml'
13+
- '!Source/Data/**'
1314
pull_request:
1415
paths:
1516
- '**/*.swift'
@@ -20,6 +21,7 @@ on:
2021
- '*.xcodeproj/**'
2122
- '*.xcworkspace/**'
2223
- '.github/workflows/continuous-integration-workflow-xcode-latest.yml'
24+
- '!Source/Data/**'
2325

2426
jobs:
2527
build:
@@ -28,7 +30,10 @@ jobs:
2830
# env:
2931
# DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
3032
steps:
31-
- uses: actions/checkout@v4
33+
- uses: actions/checkout@v5
34+
- uses: actions/setup-python@v6
35+
with:
36+
python-version: '3.12'
3237
- uses: maxim-lobanov/setup-xcode@v1
3338
with:
3439
xcode-version: "^16.1.0"
@@ -88,6 +93,6 @@ jobs:
8893
run: bash .github/collect_swift_coverage.sh
8994
- name: Create commit comment
9095
if: github.event_name == 'push'
91-
uses: peter-evans/commit-comment@v3
96+
uses: peter-evans/commit-comment@v4
9297
with:
93-
body-path: 'codecov_comment.md'
98+
body-path: 'codecov_comment.md'

0 commit comments

Comments
 (0)