Merge remote-tracking branch 'origin/main' #12
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
name: Example app - Build | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
name: Build Example App and Upload to SueceLabs | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Bundle Update | |
run: gem install bundler:2.5.23 | |
- name: Pod version | |
run: pod --version | |
- name: Pod install | |
working-directory: ./example | |
run: pod install | |
- name: Pod fix | |
working-directory: ./example/Pods/Pods.xcodeproj | |
run: sed -i -e 's/10.0/12.0/g' project.pbxproj | |
- name: Inject keys | |
working-directory: ./example/BitsBytes | |
run: | | |
sed -i -e 's/#GIGYA_API_KEY#/${{ secrets.GIGYA_API_KEY }}/g' Info.plist | |
sed -i -e 's/#GOOGLE_CLIENT_ID#/${{ secrets.GOOGLE_CLIENT_ID }}/g' Info.plist | |
sed -i -e 's/#GOOGLE_CLIENT_ID_REVERSED#/${{ secrets.GOOGLE_CLIENT_ID_REVERSED }}/g' Info.plist | |
sed -i -e 's/#GOOGLE_SERVER_ID#/${{ secrets.GOOGLE_SERVER_ID }}/g' Info.plist | |
sed -i -e 's/#FACEBOOK_APPID#/${{ secrets.FACEBOOK_APPID }}/g' Info.plist | |
sed -i -e 's/#FACEBOOK_CLIENT_TOKEN#/${{ secrets.FACEBOOK_CLIENT_TOKEN }}/g' Info.plist | |
- name: Build | |
working-directory: ./example | |
run: | | |
xcodebuild \ | |
ARCHS=x86_64 \ | |
clean build \ | |
-workspace BitsBytes.xcworkspace \ | |
-scheme BitsBytes \ | |
-derivedDataPath './build' \ | |
-sdk iphonesimulator \ | |
-destination 'platform=iOS Simulator,name=iPhone 15,OS=18.0' \ | |
-configuration Release \ | |
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | |
shell: bash | |
- name: Compression | |
run: | | |
cd build/Build/Products/Debug-iphonesimulator | |
zip -r BitsBytes.zip BitsBytes.app | |
shell: bash | |
- name: Upload to SauceLabs | |
run: | | |
curl -u '${{ secrets.SUECELABS_USER }}:${{ secrets.SUECELABS_SECRET }}' --location --request POST 'https://api.eu-central-1.saucelabs.com/v1/storage/upload' --form payload=@'BitsBytes.zip' --form name='BitsBytes.zip' --form description='e2e test app' --silent | |