-
Notifications
You must be signed in to change notification settings - Fork 8
90 lines (86 loc) · 2.74 KB
/
compute.yml
File metadata and controls
90 lines (86 loc) · 2.74 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Compute
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
compute_ubuntu_build:
name: Build with Compute (source) on Ubuntu
strategy:
fail-fast: false
matrix:
swift_version: ["6.2"]
runs-on: ubuntu-22.04
env:
OPENATTRIBUTEGRAPH_WERROR: 1
OPENATTRIBUTEGRAPH_OPENATTRIBUTESHIMS_COMPUTE: 1
OPENATTRIBUTEGRAPH_OPENATTRIBUTESHIMS_COMPUTE_USE_BINARY: 0
OPENATTRIBUTEGRAPH_USE_LOCAL_DEPS: 1
container: swift:${{ matrix.swift_version }}-jammy
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Linux build environment
run: Scripts/CI/linux_compute_build.sh
shell: bash
- name: Build in debug mode
run: swift build -c debug -Xcc -Wno-elaborated-enum-base
compute_macos_build:
name: Build with Compute (binary) on macOS
strategy:
fail-fast: false
matrix:
os: [macos-15]
xcode-version: ["16.4"]
runs-on: ${{ matrix.os }}
env:
OPENATTRIBUTEGRAPH_WERROR: 1
OPENATTRIBUTEGRAPH_OPENATTRIBUTESHIMS_COMPUTE: 1
OPENATTRIBUTEGRAPH_OPENATTRIBUTESHIMS_COMPUTE_USE_BINARY: 1
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Xcode
uses: OpenSwiftUIProject/OpenSwiftUI/.github/actions/setup-xcode@main
with:
xcode-version: ${{ matrix.xcode-version }}
- name: Build in debug mode
run: swift build -c debug
compute_ios_build:
name: Build with Compute (binary) on iOS
strategy:
fail-fast: false
matrix:
os: [macos-15]
xcode-version: ["16.4"]
ios-version: ["18.5"]
include:
- ios-version: "18.5"
ios-simulator-name: "iPhone 16 Pro"
runs-on: ${{ matrix.os }}
env:
OPENATTRIBUTEGRAPH_WERROR: 1
OPENATTRIBUTEGRAPH_OPENATTRIBUTESHIMS_COMPUTE: 1
OPENATTRIBUTEGRAPH_OPENATTRIBUTESHIMS_COMPUTE_USE_BINARY: 1
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Xcode
uses: OpenSwiftUIProject/OpenSwiftUI/.github/actions/setup-xcode@main
with:
xcode-version: ${{ matrix.xcode-version }}
- name: Build in debug mode on iOS Simulator
run: |
xcodebuild build \
-workspace .swiftpm/xcode/package.xcworkspace \
-scheme OpenAttributeGraph \
-configuration Debug \
-destination "platform=iOS Simulator,OS=${{ matrix.ios-version }},name=${{ matrix.ios-simulator-name }}" \
-derivedDataPath .build-debug \
-skipMacroValidation \
-skipPackagePluginValidation \
OTHER_SWIFT_FLAGS="-warnings-as-errors"