Remove carthage checks as dependency for release checks. #113
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '[0-9]+\.[0-9]+\.[0-9]+' | |
- '[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+' | |
pull_request: | |
types: [labeled] | |
branches: | |
- master | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_16.0.app/Contents/Developer | |
name: Verification | Release | |
jobs: | |
carthage: | |
if: ${{ github.event_name == 'push' || ( github.event_name == 'pull_request' && github.event.label.name == 'ci:verify' ) }} | |
name: Carthage Verification | |
runs-on: macos-15 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Recover cached dependencies | |
uses: actions/cache@v4 | |
id: dependency-cache | |
with: | |
path: ~/Library/Caches/org.carthage.CarthageKit | |
key: 4-carthage-verification-${{ runner.os }}-${{ hashFiles('Cartfile.resolved') }} | |
- name: Carthage verification | |
run: | | |
./script/carthage checkout | |
./script/carthage build --cache-builds --no-skip-current | |
swiftpm-macos: | |
if: ${{ github.event_name == 'push' || ( github.event_name == 'pull_request' && github.event.label.name == 'ci:verify' ) }} | |
name: SwiftPM macOS Verification | |
runs-on: macos-15 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pull dependencies | |
run: | | |
swift package resolve | |
- name: Test via SwiftPM | |
run: | | |
swift --version | |
swift build | |
cocoapods: | |
if: ${{ github.event_name == 'push' || ( github.event_name == 'pull_request' && github.event.label.name == 'ci:verify' ) }} | |
name: CocoaPods Verification | |
runs-on: macos-15 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: CocoaPods verification | |
run: | | |
pod repo update | |
pod lib lint --use-libraries | |
release-github: | |
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }} | |
name: GitHub Release | |
runs-on: macos-15 | |
needs: [swiftpm-macos, cocoapods] | |
steps: | |
- name: git checkout | |
uses: actions/checkout@v4 | |
- name: create release | |
uses: softprops/action-gh-release@v2 | |
release-cocoapods: | |
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }} | |
name: CocoaPods Release | |
runs-on: macos-15 | |
needs: [swiftpm-macos, cocoapods] | |
steps: | |
- name: git checkout | |
uses: actions/checkout@v4 | |
- name: pod trunk push | |
env: | |
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} | |
run: pod trunk push |