Skip to content

Commit

Permalink
rework carthage and fastlane
Browse files Browse the repository at this point in the history
  • Loading branch information
lixin9311 committed Sep 22, 2022
1 parent a95709d commit 1450d7f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/2.nightly_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,20 @@ jobs:
bundle install
npm install --global create-dmg
# We will make it compatible with the latest version of Xcode
# - name: Select Xcode version
# run: sudo xcode-select -s '/Applications/Xcode_13.4.1.app/Contents/Developer'
- name: Select Xcode version
run: sudo xcode-select -s '/Applications/Xcode_13.4.1.app/Contents/Developer'

- name: Set build number
shell: bash
run: |
fastlane run increment_build_number build_number:${{ github.run_number }}
- name: Fastlane match
- name: Fastlane Nightly
shell: bash
run: |
fastlane run setup_ci
fastlane match developer_id --readonly
run: fastlane nightly
env:
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}

# pre-build the PlayTools
- name: Carthage bootstrap
shell: bash
run: |
carthage update --use-xcframeworks
env:
FASTLANE: 1

- name: Fastlane Nightly
shell: bash
run: fastlane nightly --verbose
env:
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 120 # x86 is slooooooow

- name: Exract API_KEY
Expand Down
6 changes: 6 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ end


lane :release do
setup_ci if ENV['CI']
match(type: "developer_id", readonly: true)
carthage(use_xcframeworks: true)
build_mac_app(
configuration: "Release",
scheme: "PlayCover",
Expand All @@ -39,6 +42,9 @@ lane :release do
end

lane :nightly do
setup_ci if ENV['CI']
match(type: "developer_id", readonly: true)
carthage(use_xcframeworks: true)
build_mac_app(
configuration: "Nightly",
scheme: "PlayCover",
Expand Down

0 comments on commit 1450d7f

Please sign in to comment.