Skip to content
Merged
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
26 changes: 25 additions & 1 deletion .github/workflows/fork-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ env:
jobs:
build:
name: ${{ matrix.target }}
runs-on: [self-hosted, rust-heavy]
# Pinned to node-f (WI-4161): [self-hosted, bigmem, node-f] matches only
# nodef-gha-public-rust (24 GiB / 14 cores). On the small ci-k8s runners
# (11 GiB) the build ran out of memory (kache silent exit 1, cgroup
# oom_kill); other docker runners lack the build tools.
runs-on: [self-hosted, bigmem, node-f]
env:
# Memory-bound, not CPU-bound: 24 GiB allows about 5 parallel rustc
# jobs on the 14 cores without an OOM kill.
CARGO_BUILD_JOBS: 5
strategy:
fail-fast: false
matrix:
Expand All @@ -52,6 +60,22 @@ jobs:
version: "0.14.0"
use-cache: false

# A restarted node-f runner container loses packages installed by hand.
# When musl-gcc is missing and the job runs as root, install the same
# package list install-musl-build-tools.sh uses; a no-op otherwise.
- name: Install musl packages if missing
if: runner.environment == 'self-hosted'
run: |
set -euo pipefail
if command -v musl-gcc >/dev/null 2>&1; then
echo "musl-gcc present; nothing to install"
elif [[ "$(id -u)" -eq 0 ]]; then
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y ca-certificates curl musl-tools pkg-config libcap-dev g++ clang libc++-dev libc++abi-dev lld xz-utils perl make
else
echo "musl-gcc missing and not root; relying on the runner image" >&2
fi

# rust-heavy jobs have no sudo; its image bakes the packages the upstream
# script apt-installs (spot-github-runners image/bake.sh). Shadow `sudo`
# so the script's apt-get lines are skipped and everything else runs.
Expand Down
Loading