@@ -39,35 +39,33 @@ jobs:
3939 GLIDE_COMPAT : ${{ matrix.arch }}
4040 MOZ_BUILD_DATE : ${{ inputs.MOZ_BUILD_DATE }}
4141
42+ defaults :
43+ run :
44+ shell : nix develop --command bash -e {0}
45+
4246 strategy :
4347 fail-fast : false
4448 matrix :
4549 arch : [aarch64, x86_64]
4650
4751 steps :
48- - name : Debug
49- run : |
50- xcrun --show-sdk-version
51-
5252 - name : Checkout repository
5353 uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
5454 with :
5555 persist-credentials : false
5656
57+ - uses : ./.github/actions/setup-nix
58+
59+ - name : Debug
60+ run : |
61+ xcrun --show-sdk-version
62+
5763 - name : Configure git
5864 run : |
5965 git config --global \
6066 url."https://github.com/mozilla-firefox/firefox.git".insteadOf \
6167 "git@github.com:mozilla-firefox/firefox.git"
6268
63- - uses : pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
64-
65- - name : Setup Node.js
66- uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
67- with :
68- node-version : " 24"
69- cache : " pnpm"
70-
7169 - name : Run sccache-cache
7270 uses : mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
7371 with :
@@ -80,31 +78,12 @@ jobs:
8078 core.exportVariable('ACTIONS_CACHE_URL', process.env['ACTIONS_CACHE_URL'])
8179 core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env['ACTIONS_RUNTIME_TOKEN'])
8280
83- - name : Install system dependencies
81+ - name : Configure rust
8482 run : |
85- brew update
86- brew install cairo gnu-tar mercurial
87-
88- brew uninstall --ignore-dependencies python3.12 -f
89-
90- export PATH="$(python3 -m site --user-base)/bin":$PATH
91-
92- rm '/usr/local/bin/2to3-3.11' '/usr/local/bin/2to3-3.12' '/usr/local/bin/2to3' || true
93- rm '/usr/local/bin/idle3.11' '/usr/local/bin/idle3.12' '/usr/local/bin/idle3' || true
94- rm '/usr/local/bin/pydoc3.11' '/usr/local/bin/pydoc3.12' '/usr/local/bin/pydoc3' || true
95- rm '/usr/local/bin/python3.11' '/usr/local/bin/python3.12' '/usr/local/bin/python3' || true
96- rm '/usr/local/bin/python3.11-config' '/usr/local/bin/python3.12-config' '/usr/local/bin/python3-config' || true
97-
98- brew install watchman
99-
100- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.89
101- source $HOME/.cargo/env
102-
10383 if test "$GLIDE_COMPAT" = "aarch64"; then
10484 rustup target add aarch64-apple-darwin
10585 else
10686 rustup target add x86_64-apple-darwin
107- brew install nasm
10887 fi
10988
11089 - name : Install dependencies
11594 pnpm bootstrap
11695
11796 cd engine
118- export PATH="$(python3 -m site --user-base)/bin":$PATH
11997 ./mach --no-interactive bootstrap --application-choice browser --no-system-changes || true
12098 cd ..
12199
0 commit comments