Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Update workflow to trigger on 'main' and 'develop' branches #20

Merged
merged 9 commits into from
Aug 25, 2024
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
167 changes: 84 additions & 83 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name: main
on:
push:
branches:
- main
- develop
paths:
- .github/workflows/**
Expand Down Expand Up @@ -315,86 +316,86 @@ jobs:
--cache-builds
needs: SPM

# cocoapods:
# name: "Pods: ${{ matrix.platform }}, ${{ matrix.configuration }}"
# runs-on: ${{ matrix.runsOn }}
# env:
# DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
# strategy:
# fail-fast: true
# matrix:
# include:
# - xcode: "Xcode_15.4"
# runsOn: macOS-14
# platform: "macos"
# configuration: "Release"
# name: "Pods: macOS, Release"
# - xcode: "Xcode_15.4"
# runsOn: macOS-14
# platform: "macos"
# configuration: "Debug"
# name: "Pods: macOS, Debug"
# - xcode: "Xcode_15.4"
# runsOn: macOS-14
# platform: "ios"
# configuration: "Release"
# name: "Pods: iOS, Release"
# - xcode: "Xcode_15.4"
# runsOn: macOS-14
# platform: "ios"
# configuration: "Debug"
# name: "Pods: iOS, Debug"
# - xcode: "Xcode_15.4"
# runsOn: macOS-14
# platform: "tvos"
# configuration: "Release"
# name: "Pods: tvOS, Release"
# - xcode: "Xcode_15.4"
# runsOn: macOS-14
# platform: "tvos"
# configuration: "Debug"
# name: "Pods: tvOS, Debug"
# - xcode: "Xcode_15.4"
# runsOn: macOS-14
# platform: "watchos"
# configuration: "Release"
# name: "Pods: watchOS, Release"
# - xcode: "Xcode_15.4"
# runsOn: macOS-14
# platform: "watchos"
# configuration: "Debug"
# name: "Pods: watchOS, Debug"
# - xcode: "Xcode_15.4"
# runsOn: macOS-14
# platform: "visionos"
# configuration: "Release"
# name: "Pods: visionOS, Release"
# - xcode: "Xcode_15.4"
# runsOn: macOS-14
# platform: "visionos"
# configuration: "Debug"
# name: "Pods: visionOS, Debug"
# steps:
# - name: Update CocoaPods
# if: ${{ matrix.platform == 'visionos' }}
# run: gem install cocoapods
# - name: Checkout
# uses: actions/checkout@v4
# - name: Pod lib lint
# run: |
# pod lib lint --verbose \
# --configuration=${{ matrix.configuration }} \
# --platforms=${{ matrix.platform }} \
# TLDExtractSwift.podspec
# - name: Pod lib lint - Use Static Frameworks
# run: |
# pod lib lint --verbose --use-static-frameworks \
# --configuration=${{ matrix.configuration }} \
# --platforms=${{ matrix.platform }} \
# TLDExtractSwift.podspec
# # - name: Pod Push
# # if: github.ref == 'refs/heads/main'
# # run: |
# # pod repo update
# # pod trunk push TLDExtractSwift.podspec --allow-warnings
# needs: carthage
cocoapods:
name: "Pods: ${{ matrix.platform }}, ${{ matrix.configuration }}"
runs-on: ${{ matrix.runsOn }}
env:
DEVELOPER_DIR: "/Applications/${{ matrix.xcode }}.app/Contents/Developer"
strategy:
fail-fast: true
matrix:
include:
- xcode: "Xcode_15.4"
runsOn: macOS-14
platform: "macos"
configuration: "Release"
name: "Pods: macOS, Release"
- xcode: "Xcode_15.4"
runsOn: macOS-14
platform: "macos"
configuration: "Debug"
name: "Pods: macOS, Debug"
- xcode: "Xcode_15.4"
runsOn: macOS-14
platform: "ios"
configuration: "Release"
name: "Pods: iOS, Release"
- xcode: "Xcode_15.4"
runsOn: macOS-14
platform: "ios"
configuration: "Debug"
name: "Pods: iOS, Debug"
- xcode: "Xcode_15.4"
runsOn: macOS-14
platform: "tvos"
configuration: "Release"
name: "Pods: tvOS, Release"
- xcode: "Xcode_15.4"
runsOn: macOS-14
platform: "tvos"
configuration: "Debug"
name: "Pods: tvOS, Debug"
- xcode: "Xcode_15.4"
runsOn: macOS-14
platform: "watchos"
configuration: "Release"
name: "Pods: watchOS, Release"
- xcode: "Xcode_15.4"
runsOn: macOS-14
platform: "watchos"
configuration: "Debug"
name: "Pods: watchOS, Debug"
- xcode: "Xcode_15.4"
runsOn: macOS-14
platform: "visionos"
configuration: "Release"
name: "Pods: visionOS, Release"
- xcode: "Xcode_15.4"
runsOn: macOS-14
platform: "visionos"
configuration: "Debug"
name: "Pods: visionOS, Debug"
steps:
- name: Update CocoaPods
if: ${{ matrix.platform == 'visionos' }}
run: gem install cocoapods
- name: Checkout
uses: actions/checkout@v4
- name: Pod lib lint
run: |
pod lib lint --verbose \
--configuration=${{ matrix.configuration }} \
--platforms=${{ matrix.platform }} \
TLDExtractSwift.podspec
- name: Pod lib lint - Use Static Frameworks
run: |
pod lib lint --verbose --use-static-frameworks \
--configuration=${{ matrix.configuration }} \
--platforms=${{ matrix.platform }} \
TLDExtractSwift.podspec
# - name: Pod Push
# if: github.ref == 'refs/heads/main'
# run: |
# pod repo update
# pod trunk push TLDExtractSwift.podspec --allow-warnings
needs: carthage
3 changes: 1 addition & 2 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# github "gumob/PunycodeSwift" ~> 3.0
github "gumob/PunycodeSwift" "release/v3.0.0"
github "gumob/PunycodeSwift" ~> 3.0
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "gumob/PunycodeSwift" "8e7de65d79e7a4bb74a474422bf07f6de57c8fec"
github "gumob/PunycodeSwift" "2a15d8db8d34bfdd81f96b62acb4ac34157f9089"
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ gem "travis"
gem "fastlane"
gem "slather"
gem "xcpretty"

plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ GEM
xcodeproj (>= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
fastlane-plugin-versioning (0.6.0)
ffi (1.17.0-aarch64-linux-gnu)
ffi (1.17.0-aarch64-linux-musl)
ffi (1.17.0-arm-linux-gnu)
Expand Down Expand Up @@ -349,6 +350,7 @@ DEPENDENCIES
cocoapods-clean
cocoapods-deintegrate
fastlane
fastlane-plugin-versioning
slather
travis
xcpretty
Expand Down
3 changes: 1 addition & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ let package = Package(
targets: ["TLDExtractSwift"])
],
dependencies: [
// .package(url: "https://github.com/gumob/PunycodeSwift.git", .from: "3.0.0"),
.package(url: "https://github.com/gumob/PunycodeSwift.git", .branch("release/v3.0.0"))
.package(url: "https://github.com/gumob/PunycodeSwift.git", .upToNextMajor(from: "3.0.0")),
gumob marked this conversation as resolved.
Show resolved Hide resolved
],
targets: [
.target(
Expand Down
Loading