Skip to content

Commit 249ca7f

Browse files
committed
ci: use Python 3.12 in Xcode workflows and exclude Source/Data from Swift/C++ CI
- Upgrade actions/checkout from v4 to v5 - Upgrade actions/setup-python to v6 with Python 3.12 - Upgrade peter-evans/commit-comment from v3 to v4 - Add paths-ignore for Source/Data/** in both workflows - Fixes Python 3.9 compatibility issues with PEP 604 union syntax - Prevents triggering Swift/C++ CI when only Source/Data changes All actions now use latest stable versions with Node 24 runtime.
1 parent 213bf53 commit 249ca7f

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
- '*.xcodeproj/**'
1313
- '*.xcworkspace/**'
1414
- '.github/workflows/codeql.yml'
15+
paths-ignore:
16+
- 'Source/Data/**'
1517

1618
pull_request:
1719
branches: [ "master" ]
@@ -24,6 +26,8 @@ on:
2426
- '*.xcodeproj/**'
2527
- '*.xcworkspace/**'
2628
- '.github/workflows/codeql.yml'
29+
paths-ignore:
30+
- 'Source/Data/**'
2731

2832
schedule:
2933
- cron: '0 0 * * 0'
@@ -46,7 +50,12 @@ jobs:
4650

4751
steps:
4852
- name: Checkout repository
49-
uses: actions/checkout@v4
53+
uses: actions/checkout@v5
54+
55+
- name: Set up Python
56+
uses: actions/setup-python@v6
57+
with:
58+
python-version: '3.12'
5059

5160
- name: Initialize CodeQL
5261
uses: github/codeql-action/init@v4

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
- '*.xcodeproj/**'
1111
- '*.xcworkspace/**'
1212
- '.github/workflows/continuous-integration-workflow-xcode-latest.yml'
13+
paths-ignore:
14+
- 'Source/Data/**'
1315
pull_request:
1416
paths:
1517
- '**/*.swift'
@@ -20,6 +22,8 @@ on:
2022
- '*.xcodeproj/**'
2123
- '*.xcworkspace/**'
2224
- '.github/workflows/continuous-integration-workflow-xcode-latest.yml'
25+
paths-ignore:
26+
- 'Source/Data/**'
2327

2428
jobs:
2529
build:
@@ -28,7 +32,10 @@ jobs:
2832
# env:
2933
# DEVELOPER_DIR: /Applications/Xcode.app/Contents/Developer
3034
steps:
31-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@v5
36+
- uses: actions/setup-python@v6
37+
with:
38+
python-version: '3.12'
3239
- uses: maxim-lobanov/setup-xcode@v1
3340
with:
3441
xcode-version: "^16.1.0"
@@ -88,6 +95,6 @@ jobs:
8895
run: bash .github/collect_swift_coverage.sh
8996
- name: Create commit comment
9097
if: github.event_name == 'push'
91-
uses: peter-evans/commit-comment@v3
98+
uses: peter-evans/commit-comment@v4
9299
with:
93-
body-path: 'codecov_comment.md'
100+
body-path: 'codecov_comment.md'

0 commit comments

Comments
 (0)