Skip to content

Commit ae02199

Browse files
committed
Add Compute CI workflow
1 parent 421f8f6 commit ae02199

1 file changed

Lines changed: 85 additions & 0 deletions

File tree

.github/workflows/compute.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: Compute
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
compute_ubuntu_build:
11+
name: Build with Compute on Ubuntu
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
swift_version: ["6.1.3"]
16+
runs-on: ubuntu-22.04
17+
env:
18+
OPENATTRIBUTEGRAPH_WERROR: 1
19+
OPENATTRIBUTEGRAPH_OPENATTRIBUTESHIMS_COMPUTE: 1
20+
OPENATTRIBUTEGRAPH_COMPATIBILITY_TEST: 0
21+
container: swift:${{ matrix.swift_version }}-jammy
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Checkout Swift headers
25+
uses: ./.github/actions/checkout-swift-headers
26+
- name: Build in debug mode
27+
run: swift build -c debug
28+
29+
compute_macos_build:
30+
name: Build with Compute on macOS
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
os: [macos-15]
35+
xcode-version: ["16.4"]
36+
runs-on: ${{ matrix.os }}
37+
env:
38+
OPENATTRIBUTEGRAPH_WERROR: 1
39+
OPENATTRIBUTEGRAPH_OPENATTRIBUTESHIMS_COMPUTE: 1
40+
OPENATTRIBUTEGRAPH_COMPATIBILITY_TEST: 0
41+
steps:
42+
- uses: actions/checkout@v4
43+
- name: Setup Xcode
44+
uses: OpenSwiftUIProject/OpenSwiftUI/.github/actions/setup-xcode@main
45+
with:
46+
xcode-version: ${{ matrix.xcode-version }}
47+
- name: Checkout Swift headers
48+
uses: ./.github/actions/checkout-swift-headers
49+
- name: Build in debug mode
50+
run: swift build -c debug
51+
52+
compute_ios_build:
53+
name: Build with Compute on iOS
54+
strategy:
55+
fail-fast: false
56+
matrix:
57+
os: [macos-15]
58+
xcode-version: ["16.4"]
59+
ios-version: ["18.5"]
60+
include:
61+
- ios-version: "18.5"
62+
ios-simulator-name: "iPhone 16 Pro"
63+
runs-on: ${{ matrix.os }}
64+
env:
65+
OPENATTRIBUTEGRAPH_WERROR: 1
66+
OPENATTRIBUTEGRAPH_OPENATTRIBUTESHIMS_COMPUTE: 1
67+
OPENATTRIBUTEGRAPH_COMPATIBILITY_TEST: 0
68+
steps:
69+
- uses: actions/checkout@v4
70+
- name: Setup Xcode
71+
uses: OpenSwiftUIProject/OpenSwiftUI/.github/actions/setup-xcode@main
72+
with:
73+
xcode-version: ${{ matrix.xcode-version }}
74+
- name: Checkout Swift headers
75+
uses: ./.github/actions/checkout-swift-headers
76+
- name: Build in debug mode on iOS Simulator
77+
run: |
78+
xcodebuild build \
79+
-workspace .swiftpm/xcode/package.xcworkspace \
80+
-scheme OpenAttributeGraph-Package \
81+
-configuration Debug \
82+
-destination "platform=iOS Simulator,OS=${{ matrix.ios-version }},name=${{ matrix.ios-simulator-name }}" \
83+
-derivedDataPath .build-debug \
84+
-skipMacroValidation \
85+
-skipPackagePluginValidation

0 commit comments

Comments
 (0)