Skip to content

Commit ff4913c

Browse files
authored
Add cocoapod deployment (#28)
* add back cocoapods * update script * update pod files * inspect cocoapod error * build pods on older Xcode
1 parent 3251969 commit ff4913c

File tree

5 files changed

+81
-0
lines changed

5 files changed

+81
-0
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,22 @@ jobs:
252252
env:
253253
DEVELOPER_DIR: ${{ env.CI_XCODE_LATEST }}
254254

255+
cocoapods:
256+
needs: xcode-build-watchos
257+
runs-on: macos-latest
258+
steps:
259+
- uses: actions/checkout@v3
260+
- name: Use multiple cores
261+
run: defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
262+
- name: Update Framework Version
263+
run: ./Scripts/update_build
264+
env:
265+
BUILD_VERSION: '4.16.2'
266+
- name: CocoaPods
267+
run: pod lib lint --allow-warnings
268+
env:
269+
DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
270+
255271
carthage:
256272
timeout-minutes: 25
257273
needs: xcode-build-watchos

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,24 @@ env:
77
CI_XCODE_LATEST: '/Applications/Xcode_14.0.1.app/Contents/Developer'
88

99
jobs:
10+
# cocoapods:
11+
# runs-on: macos-latest
12+
# steps:
13+
# - uses: actions/checkout@v3
14+
# - name: Get release version
15+
# run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
16+
# - name: Use multiple cores
17+
# run: defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
18+
# - name: Update Framework Version
19+
# run: ./Scripts/update_build
20+
# env:
21+
# BUILD_VERSION: ${{ env.TAG }}
22+
# - name: Deploy CocoaPods
23+
# run: set -o pipefail && env NSUnbufferedIO=YES pod trunk push ParseSwift.podspec --allow-warnings --verbose
24+
# env:
25+
# COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
26+
# DEVELOPER_DIR: ${{ env.CI_XCODE_13 }}
27+
1028
docs:
1129
runs-on: macos-latest
1230
steps:

ParseSwift.podspec

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Pod::Spec.new do |s|
2+
s.name = "ParseSwift"
3+
s.version = "1.0.0"
4+
s.summary = "The original Parse Swift SDK"
5+
s.homepage = "https://github.com/netreconlab/Parse-Swift"
6+
s.authors = {
7+
'Corey E. Baker' => 'coreyearleon@icloud.com'
8+
}
9+
s.source = {
10+
:git => "#{s.homepage}.git",
11+
:tag => "#{s.version}",
12+
}
13+
s.ios.deployment_target = "13.0"
14+
s.osx.deployment_target = "10.15"
15+
s.tvos.deployment_target = "13.0"
16+
s.watchos.deployment_target = "6.0"
17+
s.swift_versions = ['5.3', '5.4', '5.5', '5.6', '5.7']
18+
s.source_files = "Sources/ParseSwift/**/*.swift"
19+
s.license = {
20+
:type => "Apache 2.0",
21+
:file => "LICENSE"
22+
}
23+
end

ParseSwift.podtemplate

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Pod::Spec.new do |s|
2+
s.name = "ParseSwift"
3+
s.version = "[[VERSION]]"
4+
s.summary = "The original Parse Swift SDK"
5+
s.homepage = "https://github.com/netreconlab/Parse-Swift"
6+
s.authors = {
7+
'Corey E. Baker' => 'coreyearleon@icloud.com'
8+
}
9+
s.source = {
10+
:git => "#{s.homepage}.git",
11+
:tag => "#{s.version}",
12+
}
13+
s.ios.deployment_target = "13.0"
14+
s.osx.deployment_target = "10.15"
15+
s.tvos.deployment_target = "13.0"
16+
s.watchos.deployment_target = "6.0"
17+
s.swift_versions = ['5.3', '5.4', '5.5', '5.6']
18+
s.source_files = "Sources/ParseSwift/**/*.swift"
19+
s.license = {
20+
:type => "Apache 2.0",
21+
:file => "LICENSE"
22+
}
23+
end

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
[![Build Status Release](https://github.com/netreconlab/Parse-Swift/workflows/release/badge.svg)](https://github.com/netreconlab/Parse-Swift/actions?query=workflow%3Arelease)
99
[![Coverage](https://codecov.io/gh/netreconlab/Parse-Swift/branch/main/graph/badge.svg)](https://codecov.io/gh/netreconlab/Parse-Swift/branches)
1010
[![Carthage](https://img.shields.io/badge/carthage-compatible-4BC51D.svg?style=flat)](https://github.com/carthage/carthage)
11+
[![Pod](https://img.shields.io/cocoapods/v/ParseSwiftOG.svg)](https://cocoapods.org/pods/ParseSwiftOG)
1112
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)][license-link]
1213

1314
[![Swift Versions](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fnetreconlab%2FParse-Swift%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/netreconlab/Parse-Swift)

0 commit comments

Comments
 (0)