Skip to content

Commit 87d669a

Browse files
authored
Add new platforms (#73)
1 parent 3b4cad1 commit 87d669a

File tree

4 files changed

+39
-5
lines changed

4 files changed

+39
-5
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,26 @@ on:
77

88
jobs:
99
build:
10-
runs-on: macos-latest
10+
runs-on: macos-14
1111

1212
steps:
1313
- name: Checkout code
1414
uses: actions/checkout@v2
15+
- name: Xcode select
16+
run: sudo xcode-select -s '/Applications/Xcode_15.2.app/Contents/Developer'
1517
- name: Show destinations
1618
run: xcodebuild -scheme ETTrace -showdestinations
1719
- name: Build ETTrace for iOS Simulator
1820
run: xcodebuild build -scheme ETTrace -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' CLANG_CXX_LANGUAGE_STANDARD=c++17
1921
- name: Build ETTrace for iOS
2022
run: xcodebuild build -scheme ETTrace -sdk iphoneos -destination 'generic/platform=iOS' CLANG_CXX_LANGUAGE_STANDARD=c++17
2123
- name: Build ETTrace for macOS
22-
run: xcodebuild build -scheme ETTraceRunner -sdk macosx -destination 'generic/platform=macOS' ONLY_ACTIVE_ARCH=NO
24+
run: xcodebuild build -scheme ETTraceRunner -sdk macosx -destination 'generic/platform=macOS' ONLY_ACTIVE_ARCH=NO
25+
- name: Build ETTrace for tvOS
26+
run: xcodebuild build -scheme ETTrace -sdk appletvos -destination 'generic/platform=tvOS' ONLY_ACTIVE_ARCH=NO
27+
- name: Build ETTrace for tvOS Simulator
28+
run: xcodebuild build -scheme ETTrace -sdk appletvsimulator -destination 'generic/platform=tvOS Simulator' ONLY_ACTIVE_ARCH=NO
29+
- name: Build ETTrace for visionOS
30+
run: xcodebuild build -scheme ETTrace -sdk xros -destination 'generic/platform=visionOS' ONLY_ACTIVE_ARCH=NO
31+
- name: Build ETTrace for visionOS Simulator
32+
run: xcodebuild build -scheme ETTrace -sdk xrsimulator -destination 'generic/platform=visionOS Simulator' ONLY_ACTIVE_ARCH=NO

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ on:
77

88
jobs:
99
release:
10-
runs-on: macos-latest
10+
runs-on: macos-14
1111

1212
steps:
1313
- name: Checkout code
1414
uses: actions/checkout@v2
15+
- name: Xcode select
16+
run: sudo xcode-select -s '/Applications/Xcode_15.2.app/Contents/Developer'
1517
- name: Setup Signing Certificate
1618
uses: apple-actions/import-codesign-certs@v2
1719
with:

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// swift-tools-version: 5.7
1+
// swift-tools-version: 5.9
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
55

66
let package = Package(
77
name: "ETTrace",
8-
platforms: [.iOS(.v13), .macOS(.v12)],
8+
platforms: [.iOS(.v13), .macOS(.v12), .tvOS(.v13), .visionOS(.v1)],
99
products: [
1010
.library(
1111
name: "ETTrace",

build.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,29 @@ xcodebuild archive \
1818
SKIP_INSTALL=NO \
1919
CLANG_CXX_LANGUAGE_STANDARD=c++17
2020

21+
xcodebuild archive \
22+
-scheme ETTrace \
23+
-archivePath ./ETTrace-tvOSSimulator.xcarchive \
24+
-sdk appletvsimulator \
25+
-destination 'generic/platform=tvOS Simulator' \
26+
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
27+
INSTALL_PATH='Library/Frameworks' \
28+
SKIP_INSTALL=NO \
29+
CLANG_CXX_LANGUAGE_STANDARD=c++17
30+
31+
xcodebuild archive \
32+
-scheme ETTrace \
33+
-archivePath ./ETTrace-visionOSSimulator.xcarchive \
34+
-sdk xrsimulator \
35+
-destination 'generic/platform=visionOS Simulator' \
36+
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
37+
INSTALL_PATH='Library/Frameworks' \
38+
SKIP_INSTALL=NO \
39+
CLANG_CXX_LANGUAGE_STANDARD=c++17
40+
2141
xcodebuild -create-xcframework \
2242
-framework ./ETTrace-iphonesimulator.xcarchive/Products/Library/Frameworks/ETTrace.framework \
2343
-framework ./ETTrace-iphoneos.xcarchive/Products/Library/Frameworks/ETTrace.framework \
44+
-framework ./ETTrace-visionOSSimulator.xcarchive/Products/Library/Frameworks/ETTrace.framework \
45+
-framework ./ETTrace-tvOSSimulator.xcarchive/Products/Library/Frameworks/ETTrace.framework \
2446
-output ./ETTrace.xcframework

0 commit comments

Comments
 (0)