Skip to content

Commit

Permalink
Skip plugin validation when building for release
Browse files Browse the repository at this point in the history
This is needed now that SwiftLint is installed as a plugin.
  • Loading branch information
conradev committed Sep 11, 2023
1 parent a36bba7 commit 47a6914
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .github/actions/archive/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ runs:
run: |
echo "${{ inputs.app-store-key }}" > AuthKey_${{ inputs.app-store-key-id }}.p8
xcodebuild archive \
xcodebuild clean archive \
-allowProvisioningUpdates \
-allowProvisioningDeviceRegistration \
-authenticationKeyID ${{ inputs.app-store-key-id }} \
-authenticationKeyIssuerID ${{ inputs.app-store-key-issuer-id }} \
-authenticationKeyPath "${PWD}/AuthKey_${{ inputs.app-store-key-id }}.p8" \
-onlyUsePackageVersionsFromResolvedFile \
-skipPackagePluginValidation \
-scheme '${{ inputs.scheme }}' \
-destination '${{ inputs.destination }}' \
-archivePath '${{ inputs.archive-path }}' \
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/build-for-testing/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:
run: |
echo "${{ inputs.app-store-key }}" > AuthKey_${{ inputs.app-store-key-id }}.p8
xcodebuild clean build-for-testing \
xcodebuild build-for-testing \
-allowProvisioningUpdates \
-allowProvisioningDeviceRegistration \
-authenticationKeyID ${{ inputs.app-store-key-id }} \
Expand Down
24 changes: 18 additions & 6 deletions .github/workflows/release-apple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ jobs:
matrix:
configuration:
- scheme: App
destination: generic/platform=iOS
build-destination: generic/platform=iOS
platform: iOS
method: ad-hoc
export-destination: export
artifact-file: Apple/Release/Wallet.ipa
- scheme: App (macOS)
destination: generic/platform=macOS
build-destination: generic/platform=macOS
platform: macOS
method: mac-application
method: developer-id
export-destination: upload
artifact-file: Apple/Wallet.app.aar
env:
DEVELOPER_DIR: /Applications/Xcode_15.0.app/Contents/Developer
Expand All @@ -45,20 +47,30 @@ jobs:
- name: Import Certificate
uses: ./.github/actions/import-cert
with:
certificate: ${{ secrets.DEVELOPER_CERT }}
password: ${{ secrets.DEVELOPER_CERT_PASSWORD }}
certificate: ${{ secrets.DEVELOPER_ID_CERT }}
password: ${{ secrets.DEVELOPER_ID_CERT_PASSWORD }}
- name: Build External Libraries
shell: bash
run: External/build-darwin.sh ${{ matrix.configuration['sdk-name'] }}
- name: Archive
uses: ./.github/actions/archive
with:
scheme: ${{ matrix.configuration['scheme'] }}
destination: ${{ matrix.configuration['destination'] }}
destination: ${{ matrix.configuration['build-destination'] }}
app-store-key: ${{ secrets.APPSTORE_KEY }}
app-store-key-id: ${{ secrets.APPSTORE_KEY_ID }}
app-store-key-issuer-id: ${{ secrets.APPSTORE_KEY_ISSUER_ID }}
archive-path: Wallet.xcarchive
- name: Export
uses: ./.github/actions/export
with:
method: ${{ matrix.configuration['method'] }}
destination: ${{ matrix.configuration['export-destination'] }}
app-store-key: ${{ secrets.APPSTORE_KEY }}
app-store-key-id: ${{ secrets.APPSTORE_KEY_ID }}
app-store-key-issuer-id: ${{ secrets.APPSTORE_KEY_ISSUER_ID }}
archive-path: Wallet.xcarchive
export-path: Release
- name: Notarize
if: ${{ matrix.configuration['platform'] == 'macOS' }}
uses: ./.github/actions/notarize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,26 +49,26 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser.git",
"state" : {
"revision" : "fee6933f37fde9a5e12a1e4aeaa93fe60116ff2a",
"version" : "1.2.2"
"revision" : "8f4d2753f0e4778c76d5f05ad16c74f707390531",
"version" : "1.2.3"
}
},
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"state" : {
"revision" : "27cd6190ce0628847a3f8050794d6e627ad79c08",
"version" : "509.0.0-swift-DEVELOPMENT-SNAPSHOT-2023-05-02-a"
"revision" : "59ed009d2c4a5a6b78f75a25679b6417ac040dcf",
"version" : "509.0.0-swift-DEVELOPMENT-SNAPSHOT-2023-07-04-a"
}
},
{
"identity" : "swiftlint",
"kind" : "remoteSourceControl",
"location" : "https://github.com/realm/SwiftLint.git",
"state" : {
"revision" : "34f5ffa7f706ed2dfe11bd300e5197e8878e3856",
"version" : "0.52.2"
"revision" : "9eaecbedce469a51bd8487effbd4ab46ec8384ae",
"version" : "0.52.4"
}
},
{
Expand Down

0 comments on commit 47a6914

Please sign in to comment.