Skip to content

Commit

Permalink
Updates CI system
Browse files Browse the repository at this point in the history
Fixes #779
  • Loading branch information
aaronbrethorst committed Dec 10, 2024
1 parent 69d077b commit 3012b2f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/obakittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ on:

jobs:
build:
runs-on: macos-14
runs-on: macos-15-arm64

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/cache@v2
- uses: actions/cache@v4
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Switch Xcode 15
run: sudo xcode-select -switch /Applications/Xcode_15.4.app
run: sudo xcode-select -switch /Applications/Xcode_16.1.app

- name: Install xcodegen
run: brew install xcodegen
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Build OneBusAway
run: xcodebuild clean build-for-testing
-scheme 'App'
-destination 'platform=iOS Simulator,name=iPhone 15'
-destination 'platform=iOS Simulator,name=iPhone 16'
-quiet

# Unit Test
Expand All @@ -42,7 +42,7 @@ jobs:
-only-testing:OBAKitTests
-project 'OBAKit.xcodeproj'
-scheme 'App'
-destination 'platform=iOS Simulator,name=iPhone 15'
-destination 'platform=iOS Simulator,name=iPhone 16'
-resultBundlePath OBAKitTests.xcresult
-quiet

Expand Down
6 changes: 6 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ Now, replace the file `OBAKitCore/Models/Protobuf/gtfs-realtime.proto` with the

You can find the latest version of the GTFS-RT protobuf file in the https://github.com/google/transit/ repository.

### Update macOS/Xcode versions for GitHub Actions CI

1. Find the latest version of macOS and Xcode here: https://github.com/actions/runner-images/tree/main/images/macos
2. Update the `.github/obakittests.yml` file accordingly.
3. [There's no step 3](https://www.youtube.com/watch?v=ihOxl1v5BRk).

### Fix "Missing package product" build errors

In Xcode: File Menu -> Packages -> Reset Package Caches
Expand Down

0 comments on commit 3012b2f

Please sign in to comment.