Skip to content

Commit

Permalink
chore: try setting directly
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Mar 7, 2024
1 parent f5f2e49 commit c88ac45
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/macos-build.yml
Expand Up @@ -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
Expand Down

0 comments on commit c88ac45

Please sign in to comment.