diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 75a979fb8..d8c374afc 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -41,6 +41,9 @@ jobs: build-android: runs-on: ubuntu-latest + strategy: + matrix: + bundler: [metro, repack] steps: - uses: actions/checkout@v4 @@ -71,7 +74,7 @@ jobs: NightlyDeploy \ --template=default \ --platform=ios --platform=android \ - --bundler=metro \ + --bundler=${{ matrix.bundler }} \ --remote-cache-provider=github-actions cd NightlyDeploy @@ -86,6 +89,9 @@ jobs: build-ios: runs-on: macos-latest + strategy: + matrix: + bundler: [metro, repack] steps: - uses: actions/checkout@v4 @@ -109,7 +115,7 @@ jobs: NightlyDeploy \ --template=default \ --platform=ios --platform=android \ - --bundler=metro \ + --bundler=${{ matrix.bundler }} \ --remote-cache-provider=github-actions cd NightlyDeploy @@ -122,88 +128,3 @@ jobs: cd ../NightlyDeploy pnpm rnef build:ios --verbose \ --destination=simulator - - build-android-repack: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Setup - uses: ./.github/actions/setup-node - - - name: Install Java - uses: actions/setup-java@v4 - with: - java-version: 17 - distribution: adopt - cache: gradle - - - name: Build framework - run: pnpm build - - - name: Publish framework to Verdaccio - run: | - pnpm verdaccio:init & - npx wait-on@8.0.1 http://localhost:4873 - pnpm verdaccio:publish - - - name: Deploy template - run: | - cd .. - NPM_CONFIG_REGISTRY=http://localhost:4873 pnpm create @rnef/app \ - --registry http://localhost:4873 \ - NightlyDeploy \ - --template=default \ - --platform=ios --platform=android \ - --bundler=repack \ - --remote-cache-provider=github-actions - - cd NightlyDeploy - NPM_CONFIG_REGISTRY=http://localhost:4873 \ - NPM_CONFIG_NODE_LINKER=hoisted \ - pnpm install - - - name: Build Androidtemplate - run: | - cd ../NightlyDeploy - pnpm rnef build:android - - - build-ios-repack: - runs-on: macos-latest - steps: - - uses: actions/checkout@v4 - - - name: Setup - uses: ./.github/actions/setup-node - - - name: Build framework - run: pnpm build - - - name: Publish framework to Verdaccio - run: | - pnpm verdaccio:init & - npx wait-on@8.0.1 http://localhost:4873 - pnpm verdaccio:publish - - - name: Deploy template - run: | - cd .. - NPM_CONFIG_REGISTRY=http://localhost:4873 pnpm create @rnef/app \ - --registry http://localhost:4873 \ - NightlyDeploy \ - --template=default \ - --platform=ios --platform=android \ - --bundler=repack \ - --remote-cache-provider=github-actions - - cd NightlyDeploy - NPM_CONFIG_REGISTRY=http://localhost:4873 \ - NPM_CONFIG_NODE_LINKER=hoisted \ - pnpm install - - - name: Build iOS template - run: | - cd ../NightlyDeploy - pnpm rnef build:ios --verbose \ - --destination=simulator \ No newline at end of file