-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (46 loc) · 1.07 KB
/
Copy pathswift.yml
File metadata and controls
49 lines (46 loc) · 1.07 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
name: Swift
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
macos-build:
name: macOS
runs-on: macos-26
strategy:
matrix:
swift: ["6.3"]
steps:
- name: Set up Xcode
run: sudo xcode-select -s "/Applications/Xcode_26.4.app"
- uses: actions/checkout@v6
with:
submodules: true
- name: Build
run: swift build
- name: Build XCFramework
run: ./Scripts/create-xcframework.sh
- name: Upload XCFramework
uses: actions/upload-artifact@v7
with:
path: .build/Xcode/Frameworks/Compute.xcframework.zip
archive: false
linux-build:
name: Linux
runs-on: ubuntu-latest
strategy:
matrix:
swift: ["6.3"]
container:
image: swift:${{ matrix.swift }}-jammy
steps:
- name: Install dependencies
run: |
apt-get update
apt-get install -y libssl-dev
- uses: actions/checkout@v6
with:
submodules: true
- name: Build
run: swift build