Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/nightly-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
VERSION: 150.0.1
RELEASE: 1
PROFILE: human-secure
# 16GB runners OOM the neqo/mls/icu rustc cluster at higher parallelism.
MOZ_BUILD_JOBS: 3

steps:
- name: Checkout
Expand All @@ -41,6 +43,16 @@ jobs:
/opt/hostedtoolcache/CodeQL /usr/local/share/boost "$AGENT_TOOLSDIRECTORY" || true
df -h /

- name: Add swap (absorb rustc memory spikes on 16GB runners)
run: |
sudo swapoff -a || true
sudo rm -f /mnt/swapfile /swapfile || true
sudo fallocate -l 14G /mnt/swapfile
sudo chmod 600 /mnt/swapfile
sudo mkswap /mnt/swapfile
sudo swapon /mnt/swapfile
free -h

- name: Cache Mozilla toolchain (clang-cl, cbindgen)
uses: actions/cache@v4
with:
Expand Down
9 changes: 5 additions & 4 deletions scripts/build-windows-cross.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,11 @@ export PATH="$MOZ_CLANG_BIN:$HOME/.cargo/bin:$PATH"
ulimit -n "$NOFILE"

./mach configure
# Cap parallelism at the core count: mach's memory heuristic over-parallelizes
# on 16GB CI runners and a burst of rustc processes gets the job SIGTERM'd
# (exit 143, ~10min in). -j$(nproc) is also correct on the big sovereign builder.
./mach build -j"$(nproc)"
# Cap parallelism: mach's memory heuristic over-parallelizes on 16GB CI runners
# and a burst of multi-GB rustc processes (neqo/mls/icu) gets OOM-killed (exit
# 143, ~10min in). MOZ_BUILD_JOBS lets CI dial it down (the workflow sets a low
# value + adds swap); defaults to nproc for the 32-core sovereign builder.
./mach build -j"${MOZ_BUILD_JOBS:-$(nproc)}"
./mach package

log "artifacts"
Expand Down
Loading