diff --git a/.github/workflows/example-build.yml b/.github/workflows/example-build.yml new file mode 100644 index 00000000..c53d2481 --- /dev/null +++ b/.github/workflows/example-build.yml @@ -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 +