Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,39 +22,39 @@ env:
jobs:

lint_markdown_files:
uses: optimizely/swift-sdk/.github/workflows/lint_markdown.yml@master
uses: optimizely/swift-sdk/.github/workflows/lint_markdown.yml@fix-release-process

integration_tests:
if: "${{ github.event.inputs.PREP == '' && github.event.inputs.RELEASE == '' }}"
uses: optimizely/swift-sdk/.github/workflows/integration_tests.yml@master
uses: optimizely/swift-sdk/.github/workflows/integration_tests.yml@fix-release-process
secrets:
CI_USER_TOKEN: ${{ secrets.CI_USER_TOKEN }}

lint:
runs-on: macos-15
lint:
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 16.1.0
xcode-version: 15.3
- env:
SRCCLR_API_TOKEN: ${{ secrets.SRCCLR_API_TOKEN }}
run: |
gem install cocoapods -v '1.15.2'
pod spec lint --quick
pod spec lint --quick --allow-warnings
curl -sSL https://download.sourceclear.com/ci.sh | bash

unittests:
if: "${{ github.event.inputs.PREP == '' && github.event.inputs.RELEASE == '' }}"
uses: optimizely/swift-sdk/.github/workflows/unit_tests.yml@master
uses: optimizely/swift-sdk/.github/workflows/unit_tests.yml@fix-release-process
prepare_for_release:
runs-on: macos-15
if: "${{ github.event.inputs.PREP == 'true' && github.event_name == 'workflow_dispatch' }}"
if: "${{ github.event.inputs.PREP == 'true' && github.event_name == 'workflow_dispatch' }}"
steps:
- uses: actions/checkout@v3
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 16.1.0
xcode-version: 15.3
- name: Install Hub by Homebrew
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Expand All @@ -77,12 +77,12 @@ jobs:

release:
if: "${{github.event.inputs.RELEASE == 'true' && github.event_name == 'workflow_dispatch' }}"
runs-on: macos-15
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 16.1.0
xcode-version: 15.3
- name: Install Hub by Homebrew
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Expand All @@ -97,4 +97,4 @@ jobs:
COCOAPODS_VERSION: '1.15.2'
run: |
gem install cocoapods -v $COCOAPODS_VERSION
Scripts/run_release.sh
Scripts/run_release.sh
26 changes: 13 additions & 13 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:

jobs:
unittests:
runs-on: macos-15
runs-on: macos-14
strategy:
fail-fast: false
matrix:
Expand All @@ -18,40 +18,40 @@ jobs:
# also, the xcode version (simulator_xcode_version) and simulator os versions (os) are moving target. We have to change these time to time.
# - see "https://github.com/actions/runner-images/blob/main/images/macos/macos-15-Readme.md" for installed macOS, xcode and simulator versions.
include:
- os: 18.4
device: "iPhone 16"
- os: 17.2
device: "iPhone 15"
scheme: "OptimizelySwiftSDK-iOS"
test_sdk: "iphonesimulator"
platform: "iOS Simulator"
os_type: "iOS"
simulator_xcode_version: 16.3
- os: 18.5
device: "iPhone 16 Plus"
simulator_xcode_version: 15.3
- os: 17.4
device: "iPad Pro 11-inch (M4)"
scheme: "OptimizelySwiftSDK-iOS"
test_sdk: "iphonesimulator"
platform: "iOS Simulator"
os_type: "iOS"
simulator_xcode_version: 16.4
- os: 18.6
device: "iPad Air 11-inch (M2)"
simulator_xcode_version: 15.3
- os: 18.2
device: "iPhone 16"
scheme: "OptimizelySwiftSDK-iOS"
test_sdk: "iphonesimulator"
platform: "iOS Simulator"
os_type: "iOS"
simulator_xcode_version: 16.4
- os: 18.5
simulator_xcode_version: 15.3
- os: 17.5
device: "Apple TV"
scheme: "OptimizelySwiftSDK-tvOS"
test_sdk: "appletvsimulator"
platform: "tvOS Simulator"
os_type: "tvOS"
simulator_xcode_version: 16.4
simulator_xcode_version: 15.3
steps:
- uses: actions/checkout@v3
- uses: maxim-lobanov/setup-xcode@v1
with:
# macos version and supported simulator_xcode_versions are all related to this xcode_version, so be careful when you upgrade this.
xcode-version: 16.4
xcode-version: 15.3
- name: set SDK Branch if PR
env:
BASE_REF: ${{ github.base_ref }}
Expand Down
Loading