diff --git a/.github/workflows/macos-build.yml b/.github/workflows/macos-build.yml index 51b5431af018d..79589eba29baa 100644 --- a/.github/workflows/macos-build.yml +++ b/.github/workflows/macos-build.yml @@ -310,20 +310,17 @@ jobs: echo 'RBE_experimental_credentials_helper_args=print' >> $GITHUB_ENV - name: Default GN gen run: | - if [[ "${{ matrix.build-type }}" == "darwin" ]]; then - GN_EXTRA_ARGS='target_cpu = "arm64"' - else - GN_EXTRA_ARGS='is_mas_build = true target_cpu = "arm64"' - echo "MAS_BUILD=true" >> $GITHUB_ENV - fi - - echo "GN_EXTRA_ARGS is ${GN_EXTRA_ARGS}!" - cd src/electron # TODO(codebytere): remove this once we figure out why .git/packed-refs is initially missing git pack-refs cd .. - gn gen out/Default --args="import(\"$GN_CONFIG\") use_remoteexec=true ${GN_EXTRA_ARGS} ${GN_BUILDFLAG_ARGS}" + + if [[ "${{ matrix.build-type }}" == "darwin" ]]; then + gn gen out/Default --args="import(\"$GN_CONFIG\") use_remoteexec=true target_cpu = "arm64" ${GN_BUILDFLAG_ARGS}" + else + gn gen out/Default --args="import(\"$GN_CONFIG\") use_remoteexec=true is_mas_build = true target_cpu = "arm64" ${GN_BUILDFLAG_ARGS}" + echo "MAS_BUILD=true" >> $GITHUB_ENV + fi - name: Build Electron run: | ulimit -n 10000