-
Notifications
You must be signed in to change notification settings - Fork 18
58 lines (54 loc) · 2.21 KB
/
example-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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