Skip to content

Commit

Permalink
Create example-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sagishm authored Dec 10, 2024
1 parent ea495b1 commit cc4ca1f
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/example-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Example app - Build

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
name: using macos
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Bundle Update
run: gem install bundler:1.17.2
- name: Set Default Scheme
working-directory: ./example
run: pod install
- 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 16,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

0 comments on commit cc4ca1f

Please sign in to comment.