Skip to content

Commit 45ad618

Browse files
committed
Lower max RSS on macOS
Also limit to max 2 jobs
1 parent da99ca9 commit 45ad618

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/Test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,16 @@ jobs:
125125
echo '[pocl_jll]' >> test/LocalPreferences.toml
126126
echo 'libpocl_path="${{ github.workspace }}/target/lib/libpocl.so"' >> test/LocalPreferences.toml
127127
128+
- name: "Set test arguments and other environment variables"
129+
shell: bash
130+
run: |
131+
if [[ ${{ runner.os }} == "macOS" ]]; then
132+
JULIA_TEST_MAXRSS_MB=1800
133+
echo "JULIA_TEST_MAXRSS_MB=${JULIA_TEST_MAXRSS_MB}" | tee -a "${GITHUB_ENV}"
134+
JULIA_CPU_THREADS=2
135+
echo "JULIA_CPU_THREADS=${JULIA_CPU_THREADS}" | tee -a "${GITHUB_ENV}"
136+
fi
137+
128138
- name: Setup OpenCL.jl
129139
run: |
130140
echo '[OpenCL]' >> test/LocalPreferences.toml

0 commit comments

Comments
 (0)