From 168c7111f43d847b86c434a73015b23e1eec576d Mon Sep 17 00:00:00 2001 From: Evan Wilde Date: Thu, 12 Nov 2026 13:40:02 -0800 Subject: [PATCH] Set FreeBSD VM memory and CPU Several FreeBSD CI runs are running out of memory. 2 gigabytes per core is fairly normal usage for toolchain builds. The GitHub hosted runners have 4 cores and 16 gigabytes of memory available. The FreeBSD-VM defaults to N cpus but only 6 gigabytes, which is not enough. Restricting the core count to 4 and memory usage to 8 gigabytes to avoid this. --- .github/workflows/swift_package_test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/swift_package_test.yml b/.github/workflows/swift_package_test.yml index 92ebb3cd..635c0b8f 100644 --- a/.github/workflows/swift_package_test.yml +++ b/.github/workflows/swift_package_test.yml @@ -1056,6 +1056,8 @@ jobs: envs: 'SWIFT_WEB_URL BUILD_FLAGS FREEBSD_ENV_VARS GITHUB_TOKEN' release: "${{ matrix.os_version }}" arch: "${{ matrix.arch }}" + memory: 8192 + cpu: 4 sync: rsync copyback: false usesh: true