Skip to content

Commit

Permalink
[CocoaPods] Yer a wizard (#52).
Browse files Browse the repository at this point in the history
  • Loading branch information
oscbyspro committed Aug 21, 2023
1 parent 5aa14ac commit c67f10a
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 15 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/run-lint-on-cocoapods-specifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,32 @@ name: Run lint on CocoaPods specifications

on:
workflow_dispatch:
push:
tags:
- 'CocoaPods-v[0-9]+.[0-9]+.[0-9]+'
- 'CocoaPods-v[0-9]+.[0-9]+.[0-9]+-*'

jobs:
lint:
macos:
strategy:
matrix:
element:
- xcode: '14.3.1'

runs-on: macOS-latest
- xcode: '14.3'
machine: macos-13

runs-on: ${{ matrix.element.machine }}

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Select Xcode ${{ matrix.element.xcode }}
run: sudo xcode-select --switch /Applications/Xcode_${{ matrix.element.xcode }}.app
- name: Lint Numberick-NBKCoreKit.podspec
run: pod lib lint --allow-warnings --fail-fast Numberick-NBKCoreKit.podspec
- name: Lint Numberick-NBKDoubleWidthKit.podspec
run: pod lib lint --allow-warnings --fail-fast Numberick-NBKDoubleWidthKit.podspec
- name: Lint Numberick.podspec
run: pod lib lint --allow-warnings --fail-fast Numberick.podspec
run: |
DEPENDENCIES=''
DEPENDENCIES+=Numberick-NBKCoreKit.podspec,
DEPENDENCIES+=Numberick-NBKDoubleWidthKit.podspec,
pod lib lint Numberick.podspec \
--allow-warnings \
--fail-fast \
--include-podspecs="\{$DEPENDENCIES\}"
4 changes: 2 additions & 2 deletions Numberick-NBKCoreKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#*=============================================================================*

Pod::Spec.new do |spec|
spec.version = "0.10.0"
spec.version = "0.10.0-alpha"
spec.module_name = "NBKCoreKit"
spec.name = "Numberick-#{spec.module_name}"
spec.summary = "A new protocol hierarchy that refines Swift's standard library."
Expand All @@ -24,7 +24,7 @@ Pod::Spec.new do |spec|
spec.readme = "https://raw.githubusercontent.com/oscbyspro/Numberick/v#{spec.version}/README.md"
spec.documentation_url = "https://oscbyspro.github.io/Numberick/documentation/numberick/"

spec.source = { :git => "https://github.com/oscbyspro/Numberick.git", :tag => "v#{spec.version}" }
spec.source = { :git => "https://github.com/oscbyspro/Numberick.git", :tag => "CocoaPods-v#{spec.version}" }
spec.source_files = "Sources/#{spec.module_name}/**/*.swift"

#=-------------------------------------------------------------------------=
Expand Down
4 changes: 2 additions & 2 deletions Numberick-NBKDoubleWidthKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#*=============================================================================*

Pod::Spec.new do |spec|
spec.version = "0.10.0"
spec.version = "0.10.0-alpha"
spec.module_name = "NBKDoubleWidthKit"
spec.name = "Numberick-#{spec.module_name}"
spec.summary = "A composable, large, fixed-width, two's complement, binary integer."
Expand All @@ -24,7 +24,7 @@ Pod::Spec.new do |spec|
spec.readme = "https://raw.githubusercontent.com/oscbyspro/Numberick/v#{spec.version}/README.md"
spec.documentation_url = "https://oscbyspro.github.io/Numberick/documentation/numberick/"

spec.source = { :git => "https://github.com/oscbyspro/Numberick.git", :tag => "v#{spec.version}" }
spec.source = { :git => "https://github.com/oscbyspro/Numberick.git", :tag => "CocoaPods-v#{spec.version}" }
spec.source_files = "Sources/#{spec.module_name}/**/*.swift"

#=-------------------------------------------------------------------------=
Expand Down
13 changes: 11 additions & 2 deletions Numberick.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#*=============================================================================*

Pod::Spec.new do |spec|
spec.version = "0.10.0"
spec.version = "0.10.0-alpha"
spec.name = "Numberick"
spec.module_name = "Numberick"
spec.summary = "✨ An arithmagick overhaul in Swift."
Expand All @@ -24,7 +24,7 @@ Pod::Spec.new do |spec|
spec.readme = "https://raw.githubusercontent.com/oscbyspro/Numberick/v#{spec.version}/README.md"
spec.documentation_url = "https://oscbyspro.github.io/Numberick/documentation/numberick/"

spec.source = { :git => "https://github.com/oscbyspro/Numberick.git", :tag => "v#{spec.version}" }
spec.source = { :git => "https://github.com/oscbyspro/Numberick.git", :tag => "CocoaPods-v#{spec.version}" }
spec.source_files = "Sources/#{spec.module_name}/**/*.swift"

#=-------------------------------------------------------------------------=
Expand All @@ -34,6 +34,15 @@ Pod::Spec.new do |spec|
spec.swift_version = "5.7"
spec.platforms = { :ios => "14.0", :osx => "11.0", :tvos => "14.0", :watchos => "7.0" }

#=-------------------------------------------------------------------------=
# MARK: Tests
#=-------------------------------------------------------------------------=

spec.test_spec "Tests" do |test_spec|
test_spec.source_files = "Tests/*Tests/**/*.swift"
test_spec.platforms = { :ios => "14.0", :osx => "11.0", :tvos => "14.0" }
end

#=-------------------------------------------------------------------------=
# MARK: Dependencies
#=-------------------------------------------------------------------------=
Expand Down

0 comments on commit c67f10a

Please sign in to comment.