Skip to content

Commit

Permalink
Update CI Scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
buggmagnet committed Jan 3, 2025
1 parent 8a1ea3e commit 31fc153
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 40 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ios-build-xcode-16.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ jobs:
with:
go-version: 1.21.13

- name: Set up yeetd to workaround XCode being slow in CI
run: |
wget https://github.com/biscuitehh/yeetd/releases/download/1.0/yeetd-normal.pkg
sudo installer -pkg yeetd-normal.pkg -target /
yeetd &
- name: Configure Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/ios-screenshots-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions: {}
jobs:
test:
name: Take screenshots
runs-on: macos-13-xlarge
runs-on: macos-15-xlarge
env:
SOURCE_PACKAGES_PATH: .spm
TEST_ACCOUNT: ${{ secrets.IOS_TEST_ACCOUNT_NUMBER }}
Expand All @@ -28,15 +28,10 @@ jobs:
with:
go-version: 1.21.13

- name: Set up yeetd to workaround XCode being slow in CI
run: |
wget https://github.com/biscuitehh/yeetd/releases/download/1.0/yeetd-normal.pkg
sudo installer -pkg yeetd-normal.pkg -target /
yeetd &
- name: Configure Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0.1'
xcode-version: '16.1'
- name: Configure Rust
run: |
rustup default stable
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/ios-screenshots-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
test:
if: github.event.pull_request.merged || github.event_name == 'workflow_dispatch'
name: Screenshot tests
runs-on: macos-13-xlarge
runs-on: macos-15-xlarge
env:
SOURCE_PACKAGES_PATH: .spm
TEST_ACCOUNT: ${{ secrets.IOS_TEST_ACCOUNT_NUMBER }}
Expand All @@ -40,15 +40,10 @@ jobs:
with:
go-version: 1.21.13

- name: Set up yeetd to workaround XCode being slow in CI
run: |
wget https://github.com/biscuitehh/yeetd/releases/download/1.0/yeetd-normal.pkg
sudo installer -pkg yeetd-normal.pkg -target /
yeetd &
- name: Configure Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0.1'
xcode-version: '16.1'
- name: Configure Rust
run: |
rustup default stable
Expand Down Expand Up @@ -84,7 +79,7 @@ jobs:
-project MullvadVPN.xcodeproj \
-scheme MullvadVPN \
-testPlan MullvadVPNScreenshots \
-destination "platform=iOS Simulator,name=iPhone 15" \
-destination "platform=iOS Simulator,name=iPhone 16" \
-clonedSourcePackagesDirPath "$SOURCE_PACKAGES_PATH" \
-disableAutomaticPackageResolution \
-resultBundlePath xcode-test-report \
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/ios-validate-build-schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
test:
if: github.event.pull_request.merged == true
name: Validate build schemas
runs-on: macos-13-xlarge
runs-on: macos-15-xlarge
env:
SOURCE_PACKAGES_PATH: .spm
steps:
Expand All @@ -41,15 +41,10 @@ jobs:
with:
go-version: 1.21.13

- name: Set up yeetd to workaround XCode being slow in CI
run: |
wget https://github.com/biscuitehh/yeetd/releases/download/1.0/yeetd-normal.pkg
sudo installer -pkg yeetd-normal.pkg -target /
yeetd &
- name: Configure Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0.1'
xcode-version: '16.1'
- name: Configure Rust
run: |
rustup default stable
Expand Down Expand Up @@ -82,23 +77,23 @@ jobs:
-project MullvadVPN.xcodeproj \
-scheme MullvadVPN \
-configuration MockRelease \
-destination "platform=iOS Simulator,name=iPhone 15" \
-destination "platform=iOS Simulator,name=iPhone 16" \
-clonedSourcePackagesDirPath "$SOURCE_PACKAGES_PATH" \
-disableAutomaticPackageResolution \
build
set -o pipefail && env NSUnbufferedIO=YES xcodebuild \
-project MullvadVPN.xcodeproj \
-scheme MullvadVPN \
-configuration Staging \
-destination "platform=iOS Simulator,name=iPhone 15" \
-destination "platform=iOS Simulator,name=iPhone 16" \
-clonedSourcePackagesDirPath "$SOURCE_PACKAGES_PATH" \
-disableAutomaticPackageResolution \
build
set -o pipefail && env NSUnbufferedIO=YES xcodebuild \
-project MullvadVPN.xcodeproj \
-scheme MullvadVPNUITests \
-configuration Debug \
-destination "platform=iOS Simulator,name=iPhone 15" \
-destination "platform=iOS Simulator,name=iPhone 16" \
-clonedSourcePackagesDirPath "$SOURCE_PACKAGES_PATH" \
-disableAutomaticPackageResolution \
build
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions: {}
jobs:
check-formatting:
name: Check formatting
runs-on: macos-13
runs-on: macos-15
steps:
- name: Install SwiftFormat
run: |
Expand All @@ -33,7 +33,7 @@ jobs:

swiftlint:
name: Run swiftlint
runs-on: macos-13
runs-on: macos-15
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -47,7 +47,7 @@ jobs:

test:
name: Unit tests
runs-on: macos-13-xlarge
runs-on: macos-15-xlarge
env:
SOURCE_PACKAGES_PATH: .spm
steps:
Expand Down Expand Up @@ -77,15 +77,10 @@ jobs:
brew update
brew install protobuf
- name: Set up yeetd to workaround XCode being slow in CI
run: |
wget https://github.com/biscuitehh/yeetd/releases/download/1.0/yeetd-normal.pkg
sudo installer -pkg yeetd-normal.pkg -target /
yeetd &
- name: Configure Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0.1'
xcode-version: '16.1'
- name: Configure Rust
# Since the https://github.com/actions/runner-images/releases/tag/macos-13-arm64%2F20240721.1 release
# Brew does not install tools at the correct location anymore
Expand Down Expand Up @@ -115,7 +110,7 @@ jobs:
-project MullvadVPN.xcodeproj \
-scheme MullvadVPN \
-testPlan MullvadVPNCI \
-destination "platform=iOS Simulator,name=iPhone 15" \
-destination "platform=iOS Simulator,name=iPhone 16" \
-clonedSourcePackagesDirPath "$SOURCE_PACKAGES_PATH" \
-disableAutomaticPackageResolution \
-resultBundlePath xcode-test-report \
Expand Down

0 comments on commit 31fc153

Please sign in to comment.