-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (47 loc) · 1.39 KB
/
compatibility_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Compatibility tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
compatibility_tests_macos:
name: Execute compatibility tests
strategy:
fail-fast: false
matrix:
include:
- os: macos-15
xcode-version: "16.0" # Swift 6.0
runs-on: ${{ matrix.os }}
env:
OPENGRAPH_WERROR: 1
OPENGRAPH_ATTRIBUTEGRAPH: 1
OPENGRAPH_COMPATIBILITY_TEST: 1
OPENGRAPH_USE_LOCAL_DEPS: 1
OPENGRAPH_TARGET_RELEASE: 2024
DARWIN_PRIVATE_FRAMEWORKS_TARGET_RELEASE: 2024
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode-version }}
- name: Set up build environment
run: Scripts/CI/darwin_setup_build.sh
shell: bash
- name: Swift version
run: swift --version
- name: Run tests against Apple's AttributeGraph on macOS via SwiftPM
run: |
swift test \
--build-path .build-compatibility-test-debug
- name: Run tests against Apple's AttributeGraph on macOS via Xcode
run: |
xcodebuild test \
-scheme OpenGraph-Package \
-sdk macosx \
-destination "platform=macOS" \
-skipPackagePluginValidation \
-skipMacroValidation