Skip to content

Commit

Permalink
Select Xcode 14.1 in CodeQL jobs
Browse files Browse the repository at this point in the history
- Align spm build script with Xcode 14.1 -> iOS 16.1 on iPhone 14
- Always pick macoslatest because do not build on ubuntu
  • Loading branch information
aokj4ck committed Jan 23, 2024
1 parent 333009c commit 964b468
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
runs-on: macos-latest
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
Expand All @@ -39,6 +39,11 @@ jobs:
env:
SDK_REGISTRY_TOKEN: ${{ secrets.SDK_REGISTRY_TOKEN }}

steps:
- name: "Set Xcode version"
run: |
sudo xcode-select -s /Applications/Xcode_14.1.app
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_spm_sample.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ EOF

BASEDIR="${BASEDIR}" xcodegen
xcodebuild -resolvePackageDependencies -derivedDataPath derivedData -scheme CircleCIApp
xcodebuild -scheme "CircleCIApp" -destination 'platform=iOS Simulator,name=iPhone 13,OS=15.0' -derivedDataPath derivedData/ -project CircleCIApp.xcodeproj CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
xcodebuild -scheme "CircleCIApp" -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.1' -derivedDataPath derivedData/ -project CircleCIApp.xcodeproj CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO

popd

Expand Down

0 comments on commit 964b468

Please sign in to comment.