Start to use GitHub Action (#432)
This commit is contained in:
parent
7c558a893a
commit
df80d2e431
11 changed files with 185 additions and 60 deletions
47
.github/workflows/deploying.yml
vendored
Normal file
47
.github/workflows/deploying.yml
vendored
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: macos-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
channel: ['beta', 'release']
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Install packages
|
||||||
|
run: |
|
||||||
|
brew install libtool automake cmake carthage go@1.14 swiftlint swiftformat
|
||||||
|
gem install bundler
|
||||||
|
- name: Prepare dependencies
|
||||||
|
run: |
|
||||||
|
export PATH="/usr/local/opt/go@1.14/bin:$PATH"
|
||||||
|
bundle install
|
||||||
|
bundle exec pod install
|
||||||
|
./wcarthage bootstrap --platform iOS
|
||||||
|
./gopenpgp_build.sh
|
||||||
|
- name: Test
|
||||||
|
run: bundle exec fastlane test
|
||||||
|
- name: Deploy
|
||||||
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
|
run: bundle exec fastlane ${{ matrix.channel }}
|
||||||
|
env:
|
||||||
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||||
|
APP_IDENTIFIER: ${{ secrets.APP_IDENTIFIER }}
|
||||||
|
DESTINATION_EMAIL: ${{ secrets.DESTINATION_EMAIL }}
|
||||||
|
EMAIL_FROM_NAME: ${{ secrets.EMAIL_FROM_NAME }}
|
||||||
|
EMAIL_REPLY_TO: ${{ secrets.EMAIL_REPLY_TO }}
|
||||||
|
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }}
|
||||||
|
FASTLANE_USER: ${{ secrets.FASTLANE_USER }}
|
||||||
|
ITC_TEAM_ID: ${{ secrets.ITC_TEAM_ID }}
|
||||||
|
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
|
||||||
|
MATCH_KEYCHAIN_NAME: ${{ secrets.MATCH_KEYCHAIN_NAME }}
|
||||||
|
MATCH_KEYCHAIN_PASSWORD: ${{ secrets.MATCH_KEYCHAIN_PASSWORD }}
|
||||||
|
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
|
||||||
|
MY_API_KEY: ${{ secrets.MY_API_KEY }}
|
||||||
|
MY_POSTMASTER: ${{ secrets.MY_POSTMASTER }}
|
||||||
|
TEAM_ID: ${{ secrets.TEAM_ID }}
|
||||||
24
.github/workflows/linting.yml
vendored
Normal file
24
.github/workflows/linting.yml
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
name: Linting
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
swiftformat:
|
||||||
|
runs-on: macos-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Installing packages
|
||||||
|
run: brew update && brew install swiftformat
|
||||||
|
- name: swiftformat
|
||||||
|
run: |
|
||||||
|
swiftformat --lint .
|
||||||
|
|
||||||
|
swiftlint:
|
||||||
|
runs-on: macos-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Installing packages
|
||||||
|
run: brew update && brew upgrade swiftlint
|
||||||
|
- name: swiftlint
|
||||||
|
run: |
|
||||||
|
swiftlint --strict
|
||||||
22
.github/workflows/testing.yml
vendored
Normal file
22
.github/workflows/testing.yml
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
name: Testing
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
testing:
|
||||||
|
runs-on: macos-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Installing packages
|
||||||
|
run: |
|
||||||
|
brew install libtool automake cmake carthage go@1.14 swiftlint swiftformat
|
||||||
|
gem install bundler
|
||||||
|
- name: Preparing dependencies
|
||||||
|
run: |
|
||||||
|
export PATH="/usr/local/opt/go@1.14/bin:$PATH"
|
||||||
|
bundle install
|
||||||
|
bundle exec pod install
|
||||||
|
./wcarthage bootstrap --platform iOS
|
||||||
|
./gopenpgp_build.sh
|
||||||
|
- name: Testing
|
||||||
|
run: bundle exec fastlane test
|
||||||
55
.travis.yml
55
.travis.yml
|
|
@ -1,55 +0,0 @@
|
||||||
language: objective-c
|
|
||||||
osx_image: xcode12
|
|
||||||
addons:
|
|
||||||
homebrew:
|
|
||||||
packages:
|
|
||||||
- go@1.14
|
|
||||||
- gnupg2
|
|
||||||
- pass
|
|
||||||
update: true
|
|
||||||
ssh_known_hosts: github.com
|
|
||||||
before_install:
|
|
||||||
- echo -e "machine github.com\n login $GITHUB_ACCESS_TOKEN" >> ~/.netrc
|
|
||||||
- touch .ci-env
|
|
||||||
install:
|
|
||||||
- gem install bundler
|
|
||||||
- bundle install
|
|
||||||
before_script:
|
|
||||||
- pod install
|
|
||||||
- git diff --quiet "$TRAVIS_COMMIT_RANGE" -- ; GIT_DIFF_EXIT_CODE=$?
|
|
||||||
- |
|
|
||||||
if [ "$GIT_DIFF_EXIT_CODE" -gt 1 ] ; then
|
|
||||||
git remote set-branches --add origin master
|
|
||||||
git fetch
|
|
||||||
TRAVIS_COMMIT_RANGE=origin/master...
|
|
||||||
fi
|
|
||||||
- echo $TRAVIS_COMMIT_RANGE
|
|
||||||
- |
|
|
||||||
if [ ! $(git diff --name-only "$TRAVIS_COMMIT_RANGE" | grep "Cartfile.resolved") ] && [ -d "Carthage/Build" ]; then
|
|
||||||
echo "Use cached carthage dependencies."
|
|
||||||
ls -ld Carthage/Build/iOS/*framework
|
|
||||||
else
|
|
||||||
echo "Bootstrap carthage dependencies."
|
|
||||||
travis_wait 80 ./wcarthage bootstrap --platform iOS
|
|
||||||
fi
|
|
||||||
- |
|
|
||||||
export PATH="/usr/local/opt/go@1.14/bin:$PATH"
|
|
||||||
if [ ! $(git diff --name-only "$TRAVIS_COMMIT_RANGE" | grep -E "gopenpgp_build.sh") ] && [ -d "go/dist/Crypto.framework" ]; then
|
|
||||||
echo "Use cached go dependencies."
|
|
||||||
ls -ld go/dist/*framework
|
|
||||||
else
|
|
||||||
echo "Build go dependencies."
|
|
||||||
./gopenpgp_build.sh
|
|
||||||
fi
|
|
||||||
script:
|
|
||||||
- if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_EVENT_TYPE" = "push" ]; then bundle exec fastlane test && bundle exec fastlane "$CHANNEL"; else bundle exec fastlane test; fi
|
|
||||||
cache:
|
|
||||||
directories:
|
|
||||||
- Carthage
|
|
||||||
- go/dist
|
|
||||||
env:
|
|
||||||
jobs:
|
|
||||||
- CHANNEL=beta
|
|
||||||
- CHANNEL=release
|
|
||||||
global:
|
|
||||||
- secure: NsbIgKZAO1Rhr/QUFsvs5LjOGf4vFIWqCJNr+zhw9DKnOd+G8m1z9wsfNyUhg+v1eUONVMxI/FTeAobnn20kxetw1dMQn4/rL4+IB4UsmODuwcFF7JCUAzEB2Wv82O91nVwT48zEmNyOG2VkgfqOgHeASStQyDPFzJuyXFy+RzoBNKK3X7Uxk19UQI80UmXvW9bmQuY8O37g/qwFj4mnluNvPIvGHry0LPMlbh6fRPsHwXlDmD2FSLoW3GI3PLN1pWsIXLURUr3bioLBJ3E0tzZsFA4AM0xs9Y7Td9f87zo4pRTAH5p2EieSq5IfNS2RDQh5aftrLFBZPUui/86yc9hoceLuOVQKkByBavMBVzfIAiAoJZdBX9cTNDh+zzFs+WZKfP4jYnN1xrFPBmHOG5kVRiA++UbepferDjr80A5aXU3FLjOeuKKrkLvAphGRMwsbx9omYHjAa2eaf2oaLeKLENkl/C/6CeG4D1F/PLsdsjilfHEQKroDRWgxU2Se+bKYucmpBXa8fjWHUyr4pfcgc6qB/R62TxYBI94QSbWAEwE6eEzUlmBoids1l5KTWqnMqXYHlxNXNao2RxV2aqwq5OuWqg1hYBxXVBUKGvzXYONnsxfgcc7NLuTPfeR/h1v7CYcs6VG+z2rYJNY5pBTHrYzeNG0RbDNq3ofMl+M=
|
|
||||||
1
Gemfile
1
Gemfile
|
|
@ -1,5 +1,6 @@
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
|
gem "cocoapods"
|
||||||
gem "fastlane"
|
gem "fastlane"
|
||||||
gem "xcodeproj"
|
gem "xcodeproj"
|
||||||
gem "rest-client"
|
gem "rest-client"
|
||||||
|
|
|
||||||
64
Gemfile.lock
64
Gemfile.lock
|
|
@ -2,8 +2,16 @@ GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
CFPropertyList (3.0.2)
|
CFPropertyList (3.0.2)
|
||||||
|
activesupport (4.2.11.3)
|
||||||
|
i18n (~> 0.7)
|
||||||
|
minitest (~> 5.1)
|
||||||
|
thread_safe (~> 0.3, >= 0.3.4)
|
||||||
|
tzinfo (~> 1.1)
|
||||||
addressable (2.7.0)
|
addressable (2.7.0)
|
||||||
public_suffix (>= 2.0.2, < 5.0)
|
public_suffix (>= 2.0.2, < 5.0)
|
||||||
|
algoliasearch (1.27.5)
|
||||||
|
httpclient (~> 2.8, >= 2.8.3)
|
||||||
|
json (>= 1.5.1)
|
||||||
atomos (0.1.3)
|
atomos (0.1.3)
|
||||||
aws-eventstream (1.1.0)
|
aws-eventstream (1.1.0)
|
||||||
aws-partitions (1.345.0)
|
aws-partitions (1.345.0)
|
||||||
|
|
@ -23,10 +31,48 @@ GEM
|
||||||
aws-eventstream (~> 1, >= 1.0.2)
|
aws-eventstream (~> 1, >= 1.0.2)
|
||||||
babosa (1.0.3)
|
babosa (1.0.3)
|
||||||
claide (1.0.3)
|
claide (1.0.3)
|
||||||
|
cocoapods (1.9.3)
|
||||||
|
activesupport (>= 4.0.2, < 5)
|
||||||
|
claide (>= 1.0.2, < 2.0)
|
||||||
|
cocoapods-core (= 1.9.3)
|
||||||
|
cocoapods-deintegrate (>= 1.0.3, < 2.0)
|
||||||
|
cocoapods-downloader (>= 1.2.2, < 2.0)
|
||||||
|
cocoapods-plugins (>= 1.0.0, < 2.0)
|
||||||
|
cocoapods-search (>= 1.0.0, < 2.0)
|
||||||
|
cocoapods-stats (>= 1.0.0, < 2.0)
|
||||||
|
cocoapods-trunk (>= 1.4.0, < 2.0)
|
||||||
|
cocoapods-try (>= 1.1.0, < 2.0)
|
||||||
|
colored2 (~> 3.1)
|
||||||
|
escape (~> 0.0.4)
|
||||||
|
fourflusher (>= 2.3.0, < 3.0)
|
||||||
|
gh_inspector (~> 1.0)
|
||||||
|
molinillo (~> 0.6.6)
|
||||||
|
nap (~> 1.0)
|
||||||
|
ruby-macho (~> 1.4)
|
||||||
|
xcodeproj (>= 1.14.0, < 2.0)
|
||||||
|
cocoapods-core (1.9.3)
|
||||||
|
activesupport (>= 4.0.2, < 6)
|
||||||
|
algoliasearch (~> 1.0)
|
||||||
|
concurrent-ruby (~> 1.1)
|
||||||
|
fuzzy_match (~> 2.0.4)
|
||||||
|
nap (~> 1.0)
|
||||||
|
netrc (~> 0.11)
|
||||||
|
typhoeus (~> 1.0)
|
||||||
|
cocoapods-deintegrate (1.0.4)
|
||||||
|
cocoapods-downloader (1.4.0)
|
||||||
|
cocoapods-plugins (1.0.0)
|
||||||
|
nap
|
||||||
|
cocoapods-search (1.0.0)
|
||||||
|
cocoapods-stats (1.1.0)
|
||||||
|
cocoapods-trunk (1.5.0)
|
||||||
|
nap (>= 0.8, < 2.0)
|
||||||
|
netrc (~> 0.11)
|
||||||
|
cocoapods-try (1.2.0)
|
||||||
colored (1.2)
|
colored (1.2)
|
||||||
colored2 (3.1.2)
|
colored2 (3.1.2)
|
||||||
commander-fastlane (4.4.6)
|
commander-fastlane (4.4.6)
|
||||||
highline (~> 1.7.2)
|
highline (~> 1.7.2)
|
||||||
|
concurrent-ruby (1.1.7)
|
||||||
declarative (0.0.20)
|
declarative (0.0.20)
|
||||||
declarative-option (0.1.0)
|
declarative-option (0.1.0)
|
||||||
digest-crc (0.6.1)
|
digest-crc (0.6.1)
|
||||||
|
|
@ -35,6 +81,9 @@ GEM
|
||||||
unf (>= 0.0.5, < 1.0.0)
|
unf (>= 0.0.5, < 1.0.0)
|
||||||
dotenv (2.7.6)
|
dotenv (2.7.6)
|
||||||
emoji_regex (3.0.0)
|
emoji_regex (3.0.0)
|
||||||
|
escape (0.0.4)
|
||||||
|
ethon (0.12.0)
|
||||||
|
ffi (>= 1.3.0)
|
||||||
excon (0.75.0)
|
excon (0.75.0)
|
||||||
faraday (1.0.1)
|
faraday (1.0.1)
|
||||||
multipart-post (>= 1.2, < 3)
|
multipart-post (>= 1.2, < 3)
|
||||||
|
|
@ -80,6 +129,9 @@ GEM
|
||||||
xcodeproj (>= 1.13.0, < 2.0.0)
|
xcodeproj (>= 1.13.0, < 2.0.0)
|
||||||
xcpretty (~> 0.3.0)
|
xcpretty (~> 0.3.0)
|
||||||
xcpretty-travis-formatter (>= 0.0.3)
|
xcpretty-travis-formatter (>= 0.0.3)
|
||||||
|
ffi (1.13.1)
|
||||||
|
fourflusher (2.3.1)
|
||||||
|
fuzzy_match (2.0.4)
|
||||||
gh_inspector (1.1.3)
|
gh_inspector (1.1.3)
|
||||||
google-api-client (0.38.0)
|
google-api-client (0.38.0)
|
||||||
addressable (~> 2.5, >= 2.5.1)
|
addressable (~> 2.5, >= 2.5.1)
|
||||||
|
|
@ -114,6 +166,8 @@ GEM
|
||||||
http-cookie (1.0.3)
|
http-cookie (1.0.3)
|
||||||
domain_name (~> 0.5)
|
domain_name (~> 0.5)
|
||||||
httpclient (2.8.3)
|
httpclient (2.8.3)
|
||||||
|
i18n (0.9.5)
|
||||||
|
concurrent-ruby (~> 1.0)
|
||||||
jmespath (1.4.0)
|
jmespath (1.4.0)
|
||||||
json (2.3.1)
|
json (2.3.1)
|
||||||
jwt (2.2.1)
|
jwt (2.2.1)
|
||||||
|
|
@ -123,9 +177,12 @@ GEM
|
||||||
mime-types-data (3.2020.0512)
|
mime-types-data (3.2020.0512)
|
||||||
mini_magick (4.10.1)
|
mini_magick (4.10.1)
|
||||||
mini_mime (1.0.2)
|
mini_mime (1.0.2)
|
||||||
|
minitest (5.14.2)
|
||||||
|
molinillo (0.6.6)
|
||||||
multi_json (1.15.0)
|
multi_json (1.15.0)
|
||||||
multipart-post (2.0.0)
|
multipart-post (2.0.0)
|
||||||
nanaimo (0.3.0)
|
nanaimo (0.3.0)
|
||||||
|
nap (1.1.0)
|
||||||
naturally (2.2.0)
|
naturally (2.2.0)
|
||||||
netrc (0.11.0)
|
netrc (0.11.0)
|
||||||
os (1.1.0)
|
os (1.1.0)
|
||||||
|
|
@ -143,6 +200,7 @@ GEM
|
||||||
netrc (~> 0.8)
|
netrc (~> 0.8)
|
||||||
retriable (3.1.2)
|
retriable (3.1.2)
|
||||||
rouge (2.0.7)
|
rouge (2.0.7)
|
||||||
|
ruby-macho (1.4.0)
|
||||||
rubyzip (2.3.0)
|
rubyzip (2.3.0)
|
||||||
security (0.1.3)
|
security (0.1.3)
|
||||||
signet (0.14.0)
|
signet (0.14.0)
|
||||||
|
|
@ -157,10 +215,15 @@ GEM
|
||||||
terminal-notifier (2.0.0)
|
terminal-notifier (2.0.0)
|
||||||
terminal-table (1.8.0)
|
terminal-table (1.8.0)
|
||||||
unicode-display_width (~> 1.1, >= 1.1.1)
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
||||||
|
thread_safe (0.3.6)
|
||||||
tty-cursor (0.7.1)
|
tty-cursor (0.7.1)
|
||||||
tty-screen (0.8.1)
|
tty-screen (0.8.1)
|
||||||
tty-spinner (0.9.3)
|
tty-spinner (0.9.3)
|
||||||
tty-cursor (~> 0.7)
|
tty-cursor (~> 0.7)
|
||||||
|
typhoeus (1.4.0)
|
||||||
|
ethon (>= 0.9.0)
|
||||||
|
tzinfo (1.2.8)
|
||||||
|
thread_safe (~> 0.1)
|
||||||
uber (0.1.0)
|
uber (0.1.0)
|
||||||
unf (0.1.4)
|
unf (0.1.4)
|
||||||
unf_ext
|
unf_ext
|
||||||
|
|
@ -182,6 +245,7 @@ PLATFORMS
|
||||||
ruby
|
ruby
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
|
cocoapods
|
||||||
fastlane
|
fastlane
|
||||||
rest-client
|
rest-client
|
||||||
xcodeproj
|
xcodeproj
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
# Pass
|
# Pass
|
||||||
[](https://github.com/mssun/passforios/releases)
|
[](https://github.com/mssun/passforios/releases)
|
||||||
[](https://gitter.im/passforios/passforios)
|
[](https://gitter.im/passforios/passforios)
|
||||||
[](https://travis-ci.org/mssun/passforios)
|
[](https://github.com/mssun/passforios/actions)
|
||||||
[](https://www.paypal.me/mssun)
|
[](https://www.paypal.me/mssun)
|
||||||
|
|
||||||
Pass is an iOS client compatible with [ZX2C4's Pass command line application](http://www.passwordstore.org/).
|
Pass is an iOS client compatible with [ZX2C4's Pass command line application](http://www.passwordstore.org/).
|
||||||
|
|
|
||||||
|
|
@ -169,8 +169,8 @@ platform :ios do
|
||||||
subject: "A new build of Pass for iOS has been uploaded",
|
subject: "A new build of Pass for iOS has been uploaded",
|
||||||
success: true,
|
success: true,
|
||||||
app_link: "https://github.com/mssun/passforios",
|
app_link: "https://github.com/mssun/passforios",
|
||||||
ci_build_link: "https://travis-ci.org/mssun/passforios",
|
ci_build_link: "https://github.com/mssun/passforios/actions",
|
||||||
message: "A new build has been uploaded by Travis CI.",
|
message: "A new build has been uploaded by GitHub Action.",
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
SWIFTFORMAT_VERSION="0.47.*"
|
SWIFTFORMAT_VERSION="0.47.*"
|
||||||
|
|
||||||
if [[ -f "${SRCROOT}/.ci-env" ]]; then
|
if [[ "${CI}" == "true" ]]; then
|
||||||
echo "Running in a Continuous Integration environment. Formatting is skipped."
|
echo "Running in a Continuous Integration environment. Formatting is skipped."
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
SWIFTLINT_VERSION="0.42.*"
|
SWIFTLINT_VERSION="0.42.*"
|
||||||
|
|
||||||
if [[ -f "${SRCROOT}/.ci-env" ]]; then
|
if [[ "${CI}" == "true" ]]; then
|
||||||
echo "Running in a Continuous Integration environment. Linting is skipped."
|
echo "Running in a Continuous Integration environment. Linting is skipped."
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
22
wcarthage
22
wcarthage
|
|
@ -6,6 +6,28 @@ set -euo pipefail
|
||||||
xcconfig=$(mktemp /tmp/static.xcconfig.XXXXXX)
|
xcconfig=$(mktemp /tmp/static.xcconfig.XXXXXX)
|
||||||
trap 'rm -f "$xcconfig"' INT TERM HUP EXIT
|
trap 'rm -f "$xcconfig"' INT TERM HUP EXIT
|
||||||
|
|
||||||
|
# For Xcode 12 make sure EXCLUDED_ARCHS is set to arm architectures otherwise
|
||||||
|
# the build will fail on lipo due to duplicate architectures.
|
||||||
|
# Xcode 12 Beta 3:
|
||||||
|
echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200__BUILD_12A8169g = arm64 arm64e armv7 armv7s armv6 armv8' >> $xcconfig
|
||||||
|
# Xcode 12 beta 4
|
||||||
|
echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200__BUILD_12A8179i = arm64 arm64e armv7 armv7s armv6 armv8' >> $xcconfig
|
||||||
|
# Xcode 12 beta 5
|
||||||
|
echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200__BUILD_12A8189h = arm64 arm64e armv7 armv7s armv6 armv8' >> $xcconfig
|
||||||
|
# Xcode 12 beta 6
|
||||||
|
echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200__BUILD_12A8189n = arm64 arm64e armv7 armv7s armv6 armv8' >> $xcconfig
|
||||||
|
# Xcode 12 GM
|
||||||
|
echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200__BUILD_12A7209 = arm64 arm64e armv7 armv7s armv6 armv8' >> $xcconfig
|
||||||
|
# Xcode 12.1 (12A7300)
|
||||||
|
echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200__BUILD_12A7300 = arm64 arm64e armv7 armv7s armv6 armv8' >> $xcconfig
|
||||||
|
# Xcode 12.1 (12A7403)
|
||||||
|
echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200__BUILD_12A7403 = arm64 arm64e armv7 armv7s armv6 armv8' >> $xcconfig
|
||||||
|
|
||||||
|
echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200 = $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200__BUILD_$(XCODE_PRODUCT_BUILD_VERSION))' >> $xcconfig
|
||||||
|
echo 'EXCLUDED_ARCHS = $(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT)__XCODE_$(XCODE_VERSION_MAJOR))' >> $xcconfig
|
||||||
|
|
||||||
|
export XCODE_XCCONFIG_FILE="$xcconfig"
|
||||||
|
|
||||||
# For Xcode 12 make sure EXCLUDED_ARCHS is set to arm architectures otherwise
|
# For Xcode 12 make sure EXCLUDED_ARCHS is set to arm architectures otherwise
|
||||||
# the build will fail on lipo due to duplicate architectures.
|
# the build will fail on lipo due to duplicate architectures.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue