Skip to content

Commit

Permalink
build: load build-tools & xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
VerteDinde committed Feb 5, 2024
1 parent add4d5c commit 03ad2a7
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/mac-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ jobs:
runs-on: macos-13-xlarge
needs: checkout
steps:
- name: Load Build Tools
run: |
npm i -g @electron/build-tools
e init --root=$PWD --out=Default testing
- name: Checkout Electron
uses: actions/checkout@v4
with:
Expand All @@ -165,6 +169,9 @@ jobs:
run: |
cd src/electron
node script/yarn install
- name: Load Xcode
run: |
e load-xcode
- name: Get Depot Tools
run: |
git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools.git
Expand Down Expand Up @@ -296,10 +303,8 @@ jobs:
- name: Install build-tools & Setup RBE
run: |
echo "NUMBER_OF_NINJA_PROCESSES=200" >> $GITHUB_ENV
git clone https://github.com/electron/build-tools.git
cd build-tools
cd ~/.electron_build_tools
npx yarn --ignore-engines
mkdir third_party
# Pull down credential helper and print status
node -e "require('./src/utils/reclient.js').downloadAndPrepare({})"
HELPER=$(node -p "require('./src/utils/reclient.js').helperPath")
Expand All @@ -319,6 +324,6 @@ jobs:
ulimit -n 10000
sudo launchctl limit maxfiles 65536 200000
cd src
NINJA_SUMMARIZE_BUILD=1 autoninja -C out/Default electron -j $NUMBER_OF_NINJA_PROCESSES
NINJA_SUMMARIZE_BUILD=1 e build -j $NUMBER_OF_NINJA_PROCESSES
cp out/Default/.ninja_log out/electron_ninja_log
node electron/script/check-symlinks.js

0 comments on commit 03ad2a7

Please sign in to comment.