Skip to content

Commit

Permalink
fix: switch to mas config
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Mar 7, 2024
1 parent ecf7c52 commit 99f85a8
Showing 1 changed file with 34 additions and 13 deletions.
47 changes: 34 additions & 13 deletions .github/workflows/macos-build.yml
Expand Up @@ -145,7 +145,7 @@ jobs:
strategy:
fail-fast: false
matrix:
build-type: [darwin, mas]
build-type: [mas]
env:
BUILD_TYPE: ${{ matrix.build-type }}
steps:
Expand Down Expand Up @@ -308,19 +308,40 @@ jobs:
echo 'RBE_service='`node -e "console.log(require('./src/utils/reclient.js').serviceAddress)"` >> $GITHUB_ENV
echo 'RBE_experimental_credentials_helper='`node -e "console.log(require('./src/utils/reclient.js').helperPath({}))"` >> $GITHUB_ENV
echo 'RBE_experimental_credentials_helper_args=print' >> $GITHUB_ENV
- name: Default GN gen
run: |
cd src/electron
# TODO(codebytere): remove this once we figure out why .git/packed-refs is initially missing
git pack-refs
cd ..
- name: Create MAS Config
if: ${{ matrix.build-type }} == 'mas'
run: |
echo "
{
\"root\": \"/Users/runner/work/electron/electron/\",
\"remotes\": {
\"electron\": {
\"origin\": \"https://github.com/electron/electron.git\"
}
},
\"gen\": {
\"args\": [
\"import(\\\"//electron/build/args/testing.gn\\\")\",
\"use_remoteexec = true\",
\"target_cpu = \\\"arm64\\\"\",
\"is_mas_build = true\"
],
\"out\": \"Testing\"
},
\"env\": {
\"CHROMIUM_BUILDTOOLS_PATH\": \"/Users/runner/work/electron/electron/src/buildtools\",
\"GIT_CACHE_PATH\": \"/Users/runner/work/electron/electron/.git-cache\"
},
\"\$schema\": \"file:///home/builduser/.electron_build_tools/evm-config.schema.json\",
\"configValidationLevel\": \"strict\",
\"reclient\": \"remote_exec\",
\"goma\": \"none\",
\"preserveXcode\": 5
}
" >$HOME/.electron_build_tools/configs/evm.mas.json
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
echo "MAS_BUILD=true" >> $GITHUB_ENV
e use mas
- name: Build Electron
run: |
ulimit -n 10000
Expand Down

0 comments on commit 99f85a8

Please sign in to comment.