Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 0 additions & 36 deletions .github/workflows/primary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,39 +46,3 @@ jobs:
- uses: actions/checkout@v4
- name: Lint Podspec
run: pod lib lint --allow-warnings

xcframework:
name: XCFramework
runs-on: macOS-14
steps:
- uses: actions/checkout@v4

- name: Build XCFramework
run: ci/build_xcframework.sh

- uses: actions/upload-artifact@v4
with:
name: PocketSVG.xcframework
path: derived_data/xcframework/PocketSVG.xcframework
retention-days: 5

create-release:
name: Make release
runs-on: macOS-13
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') # only if tag is pushed
needs: [primary, cocoapods, spm, xcframework]
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
name: PocketSVG.xcframework
path: PocketSVG.xcframework

- name: Make release
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
TAG_NAME=${GITHUB_REF#refs/*/}
zip -r9 "PocketSVG.xcframework.zip" "PocketSVG.xcframework"
gh release create $TAG_NAME --notes ""
gh release upload $TAG_NAME PocketSVG.xcframework.zip
15 changes: 8 additions & 7 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ import PackageDescription
let package = Package(
name: "PocketSVG",
platforms: [
.macOS(.v10_10),
.iOS(.v9),
.tvOS(.v10),
.watchOS(.v3),
.visionOS(.v1)
.macOS(.v10_13),
.iOS(.v12),
.tvOS(.v12),
.watchOS(.v4),
.visionOS(.v1),
],
products: [
.library(
name: "PocketSVG",
type: .dynamic,
targets: ["PocketSVG"])
targets: ["PocketSVG"]
),
],
targets: [
.target(
Expand All @@ -35,5 +35,6 @@ let package = Package(
]
),
],
swiftLanguageVersions: [.v5],
cxxLanguageStandard: .cxx14
)
87 changes: 0 additions & 87 deletions ci/build_xcframework.sh

This file was deleted.

Loading