Skip to content

Commit 10cd36d

Browse files
committed
Add test script
1 parent 7e7c721 commit 10cd36d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: universal ci
2+
on:
3+
push:
4+
branches: [ main ]
5+
workflow_dispatch:
6+
7+
jobs:
8+
install-sdk:
9+
strategy:
10+
matrix:
11+
os: ['macos-13', 'macos-14', 'macos-15']
12+
fail-fast: false
13+
runs-on: ${{ matrix.os }}
14+
steps:
15+
- name: "Install SDK"
16+
run: |
17+
HOST_TOOLCHAIN_URL="https://download.swift.org/development/xcode/swift-DEVELOPMENT-SNAPSHOT-2025-08-08-a/swift-DEVELOPMENT-SNAPSHOT-2025-08-08-a-osx.pkg"
18+
curl -fsSL --retry 8 --retry-connrefused ${HOST_TOOLCHAIN_URL} --output swift.pkg
19+
/usr/sbin/installer -pkg swift.pkg -target CurrentUserHomeDirectory
20+
SWIFT_PATH=${HOME}/Library/Developer/Toolchains/$(basename ${HOST_TOOLCHAIN_URL} "-osx.pkg").xctoolchain/usr
21+
${SWIFT_PATH}/bin/swift --version
22+
23+
${SWIFT_PATH}/bin/swift sdk install https://download.swift.org/swift-6.2-branch/static-sdk/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-08-09-a/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-08-09-a_static-linux-0.0.1.artifactbundle.tar.gz --checksum 157dbf0cc8465f72c00a765c5f99e24d06c06b71cbe59136421163aa2c0fa7eb
24+
25+
26+

0 commit comments

Comments
 (0)