Skip to content

Commit

Permalink
Add job build in ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Wei18 committed Feb 5, 2024
1 parent 4d20a25 commit 8382219
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/DeployCocoaPods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
run: |
set -eo pipefail
pod lib lint --allow-warnings
pod trunk push --allow-warnings
38 changes: 31 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,39 @@ on:
- develop

jobs:
xcode:
runs-on: macos-11

build:
strategy:
matrix:
xcode: ["12.5.1", "13.2.1"]
fail-fast: false
name: Xcode ${{ matrix.xcode }}
matrix:
xcode:
# - "12.5.1"
- "13.2.1"
os:
- macos-11
# - macos-latest

runs-on: ${{ matrix.os }}
env:
DEVELOPER_DIR: "/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer"
steps:
- uses: actions/checkout@v2
- run: xcodebuild clean build test -workspace ActionSheetPicker-3.0.xcworkspace -scheme CoreActionSheetPicker -sdk iphonesimulator -destination "name=iPhone 11 Pro" | xcpretty -c
- uses: actions/checkout@v4

- name: "Build SwiftPackage"
run: |
# Starting with Xcode 11, xcodebuild supports SwiftPM packages out of the box.
# ref: https://stackoverflow.com/a/62246008/9801139
xcodebuild clean build \
-scheme CoreActionSheetPicker \
-sdk iphonesimulator \
-destination "name=iPhone 11 Pro"
- name: "Build CocoaPods"
run: |
gem install cocoapods
pod lib lint --allow-warnings
- name: "Build Carthage"
run: |
brew install carthage
carthage build --no-skip-current
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
Example Projects/Carthage-example/Carthage/Checkouts

### Xcode ###
Expand Down

0 comments on commit 8382219

Please sign in to comment.