Skip to content

Commit

Permalink
Try to use whoop workflow (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrosen081 authored Jun 27, 2024
1 parent ddc5b4f commit 278de59
Show file tree
Hide file tree
Showing 9 changed files with 757 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
- uses: actions/checkout@v2

- name: Create XCFramework
uses: unsignedapps/[email protected]
run: ./create_xcframework.sh

- name: Create release
uses: ncipollo/release-action@v1
with:
Expand Down
14 changes: 14 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"pins" : [
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"state" : {
"revision" : "64889f0c732f210a935a0ad7cda38f77f876262d",
"version" : "509.1.1"
}
}
],
"version" : 2
}
669 changes: 669 additions & 0 deletions WhoopDIKit/WhoopDIKit.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"pins" : [
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"state" : {
"revision" : "64889f0c732f210a935a0ad7cda38f77f876262d",
"version" : "509.1.1"
}
}
],
"version" : 2
}
18 changes: 18 additions & 0 deletions WhoopDIKit/WhoopDIKit/WhoopDIKit.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// WhoopDIKit.h
// WhoopDIKit
//
// Created by Jack Rosen on 5/3/24.
//

#import <Foundation/Foundation.h>

//! Project version number for WhoopDIKit.
FOUNDATION_EXPORT double WhoopDIKitVersionNumber;

//! Project version string for WhoopDIKit.
FOUNDATION_EXPORT const unsigned char WhoopDIKitVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <WhoopDIKit/PublicHeader.h>


18 changes: 18 additions & 0 deletions WhoopDIKit/WhoopDIKitMacros/WhoopDIKitMacros.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// WhoopDIKitMacros.h
// WhoopDIKitMacros
//
// Created by Jack Rosen on 5/3/24.
//

#import <Foundation/Foundation.h>

//! Project version number for WhoopDIKitMacros.
FOUNDATION_EXPORT double WhoopDIKitMacrosVersionNumber;

//! Project version string for WhoopDIKitMacros.
FOUNDATION_EXPORT const unsigned char WhoopDIKitMacrosVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <WhoopDIKitMacros/PublicHeader.h>


7 changes: 7 additions & 0 deletions create_xcframework.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
xcodebuild archive -project WhoopDIKit/WhoopDIKit.xcodeproj -scheme WhoopDIKit -destination "generic/platform=iOS" -archivePath "archives/WhoopDIKit-ios.xcarchive"
xcodebuild archive -project WhoopDIKit/WhoopDIKit.xcodeproj -scheme WhoopDIKit -destination "generic/platform=iOS Simulator" -archivePath "archives/WhoopDIKit-iosSimulator.xcarchive"

xcodebuild -create-xcframework -archive archives/WhoopDIKit-ios.xcarchive -framework WhoopDIKit.framework -archive archives/WhoopDIKit-iosSimulator.xcarchive -framework WhoopDIKit.framework -output WhoopDIKit.xcframework

zip -r WhoopDIKit.zip WhoopDIKit.xcframework
shasum -a 256 WhoopDIKit.zip | awk '{print $1}' > WhoopDIKit.sha256

0 comments on commit 278de59

Please sign in to comment.