remove android tools from ios profile #1354
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [master, beta, ci2] | |
| pull_request: | |
| branches: [master, beta] | |
| workflow_dispatch: | |
| jobs: | |
| cancel_previous: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: styfle/cancel-workflow-action@0.12.1 | |
| with: | |
| workflow_id: ${{ github.event.workflow.id }} | |
| build-and-test: | |
| needs: cancel_previous | |
| runs-on: 'ubuntu-latest' | |
| env: | |
| DEVBOX_CONFIG: devbox/profiles/devbox.build.json | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Yarn cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/yarn | |
| .yarn/cache | |
| key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| yarn-${{ runner.os }}- | |
| - name: disk check | |
| run: df -H | |
| - name: Free Disk Space (Ubuntu) | |
| uses: jlumbroso/free-disk-space@v1.3.1 | |
| - name: disk check | |
| run: df -H | |
| - name: devbox installer | |
| uses: jetify-com/devbox-install-action@v0.14.0 | |
| with: | |
| enable-cache: 'true' | |
| - name: devbox install (build profile) | |
| run: devbox install | |
| - name: disk check | |
| run: df -H | |
| - name: build | |
| run: devbox run build | |
| run-e2e-ios: | |
| if: true | |
| runs-on: ['macos-15' ] | |
| env: | |
| YARN_ENABLE_HARDENED_MODE: 0 | |
| XCODE_VERSION: '26.1.1' | |
| DEVBOX_CONFIG: devbox/profiles/devbox.ios.json | |
| strategy: | |
| matrix: | |
| include: | |
| - name: ios-min | |
| ios-device: "iPhone 14" | |
| ios-runtime: "18.5" | |
| - name: ios-latest | |
| ios-device: "iPhone 17" | |
| ios-runtime: "26.1" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Yarn cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/yarn | |
| .yarn/cache | |
| key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| yarn-${{ runner.os }}- | |
| - name: Aggressive disk cleanup (macOS) | |
| run: | | |
| sudo rm -rf /usr/share/dotnet | |
| sudo rm -rf /opt/ghc | |
| sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
| sudo rm -rf /Applications/Android\ Studio.app | |
| sudo rm -rf /usr/local/share/miniconda | |
| sudo rm -rf "$HOME/Library/Android" | |
| sudo rm -rf "$HOME/.gradle" | |
| sudo rm -rf "$HOME/Library/Developer/CoreSimulator/Devices" | |
| sudo rm -rf "$HOME/Library/Developer/Xcode/DerivedData" | |
| df -H | |
| - name: disk check | |
| run: df -H | |
| - name: Free Disk Space | |
| run: | | |
| sudo rm -rf /usr/share/dotnet | |
| sudo rm -rf /opt/ghc | |
| sudo rm -rf "/usr/local/share/boost" | |
| sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
| - name: disk check | |
| run: df -H | |
| - uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '26.1.1' | |
| - name: disk check | |
| run: df -H | |
| - name: CocoaPods cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/Library/Caches/CocoaPods | |
| key: cocoapods-${{ runner.os }}-${{ env.XCODE_VERSION }}-${{ hashFiles('examples/E2E/ios/Podfile.lock') }} | |
| restore-keys: | | |
| cocoapods-${{ runner.os }}-${{ env.XCODE_VERSION }}- | |
| cocoapods-${{ runner.os }}- | |
| - name: DerivedData cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/Library/Developer/Xcode/DerivedData | |
| key: derived-${{ runner.os }}-${{ env.XCODE_VERSION }}-${{ hashFiles('examples/E2E/ios/Podfile.lock') }} | |
| restore-keys: | | |
| derived-${{ runner.os }}-${{ env.XCODE_VERSION }}- | |
| derived-${{ runner.os }}- | |
| - name: devbox installer | |
| uses: jetify-com/devbox-install-action@v0.14.0 | |
| with: | |
| enable-cache: 'true' | |
| # --omit-nix-env is important to use the macos system c toolchain instead of the nix toolchain | |
| - name: devbox install (iOS profile) | |
| run: devbox install | |
| - name: disk check | |
| run: df -H | |
| - name: iOS E2E Tests | |
| env: | |
| DETOX_IOS_DEVICE: ${{ matrix.ios-device }} | |
| run: devbox shell --omit-nix-env -- devbox run test-ios | |
| run-e2e-android: | |
| if: true | |
| continue-on-error: true | |
| runs-on: 'ubuntu-22.04' | |
| env: | |
| DEVBOX_CONFIG: devbox/profiles/devbox.android.json | |
| strategy: | |
| matrix: | |
| include: | |
| - name: android-min | |
| avd-name: pixel_API21_x86_64 | |
| start-script: start-android-minsdk | |
| skip-secondary: true | |
| devbox-config: devbox/profiles/devbox.android.min.json | |
| - name: android-latest | |
| avd-name: medium_phone_API33_x86_64 | |
| start-script: start-android-latest | |
| skip-primary: true | |
| devbox-config: devbox/profiles/devbox.android.json | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set AVD selection | |
| run: | | |
| echo "AVD_SKIP_PRIMARY=${{ matrix.skip-primary || 'false' }}" >> "$GITHUB_ENV" | |
| echo "AVD_SKIP_SECONDARY=${{ matrix.skip-secondary || 'false' }}" >> "$GITHUB_ENV" | |
| echo "DEVBOX_CONFIG=${{ matrix.devbox-config }}" >> "$GITHUB_ENV" | |
| - name: Yarn cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/yarn | |
| .yarn/cache | |
| key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| yarn-${{ runner.os }}- | |
| - name: Free Disk Space (Ubuntu) | |
| uses: jlumbroso/free-disk-space@v1.3.1 | |
| - name: disk check | |
| run: df -H | |
| - name: devbox installer | |
| uses: jetify-com/devbox-install-action@v0.14.0 | |
| with: | |
| enable-cache: 'true' | |
| - name: devbox install (Android profile) | |
| run: devbox install | |
| - name: Gradle cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }} | |
| restore-keys: | | |
| gradle-${{ runner.os }}- | |
| - name: disk check | |
| run: df -H | |
| - name: Android E2E Tests | |
| env: | |
| DETOX_AVD: ${{ matrix.avd-name }} | |
| run: devbox run test-android | |
| - name: disk check | |
| run: df -H |