Add AbsoluteEdge support #421
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compatibility tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
compatibility_tests_macos: | |
name: Execute compatibility tests for macOS | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-15] | |
xcode-version: ["16.0"] | |
release: [2024] | |
runs-on: ${{ matrix.os }} | |
env: | |
OPENSWIFTUI_WERROR: 1 | |
OPENGRAPH_ATTRIBUTEGRAPH: 1 | |
OPENSWIFTUI_SWIFT_LOG: 0 | |
OPENSWIFTUI_SWIFT_CRYPTO: 0 | |
OPENSWIFTUI_TARGET_RELEASE: ${{ matrix.release }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Xcode | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: ${{ matrix.xcode-version }} | |
- name: Swift version | |
run: swift --version | |
- name: Run compatibility tests on OpenSwiftUI + macOS | |
run: | | |
swift test \ | |
--filter OpenSwiftUICompatibilityTests \ | |
--build-path .build-compatibility-test-debug | |
env: | |
OPENSWIFTUI_COMPATIBILITY_TEST: 0 | |
- name: Run compatibility tests on SwiftUI + macOS | |
run: | | |
swift test \ | |
--filter OpenSwiftUICompatibilityTests \ | |
--build-path .build-compatibility-test-debug | |
env: | |
OPENSWIFTUI_COMPATIBILITY_TEST: 1 | |
compatibility_tests_ios: | |
name: Execute compatibility tests for iOS | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-15] | |
xcode-version: ["16.0"] | |
release: [2024] | |
ios-version: ["18.0"] | |
include: | |
- ios-version: "18.0" | |
ios-simulator-name: "iPhone 16 Pro" | |
runs-on: ${{ matrix.os }} | |
env: | |
OPENSWIFTUI_WERROR: 1 | |
OPENGRAPH_ATTRIBUTEGRAPH: 1 | |
OPENSWIFTUI_SWIFT_LOG: 0 | |
OPENSWIFTUI_SWIFT_CRYPTO: 0 | |
OPENSWIFTUI_TARGET_RELEASE: ${{ matrix.release }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Xcode | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: ${{ matrix.xcode-version }} | |
- name: Swift version | |
run: swift --version | |
- name: Run compatibility tests on OpenSwiftUI + iOS | |
run: | | |
# FIXME: xcodebuild will run all test targets. | |
xcodebuild test \ | |
-scheme OpenSwiftUI \ | |
-configuration Debug \ | |
-destination "platform=iOS Simulator,OS=${{ matrix.ios-version }},name=${{ matrix.ios-simulator-name }}" \ | |
-skipMacroValidation \ | |
-skipPackagePluginValidation | |
env: | |
OPENSWIFTUI_COMPATIBILITY_TEST: 0 | |
- name: Run compatibility tests on SwiftUI + iOS | |
run: | | |
xcodebuild test \ | |
-scheme OpenSwiftUI \ | |
-configuration Debug \ | |
-destination "platform=iOS Simulator,OS=${{ matrix.ios-version }},name=${{ matrix.ios-simulator-name }}" \ | |
-skipMacroValidation \ | |
-skipPackagePluginValidation | |
env: | |
OPENSWIFTUI_COMPATIBILITY_TEST: 1 |