Skip to content

Commit 69de552

Browse files
committed
Fix CI: Set TMPDIR in test step instead of job-level env
1 parent 9ce2e93 commit 69de552

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ jobs:
1313
test:
1414
name: Test Suite
1515
runs-on: ${{ matrix.os }}
16-
env:
17-
TMPDIR: ${{ runner.temp }} # Use GitHub's temp directory for FastGA temporary files
1816
strategy:
1917
matrix:
2018
os: [ubuntu-latest, macos-latest]
@@ -69,6 +67,8 @@ jobs:
6967
7068
- name: Run tests
7169
run: |
70+
# Set TMPDIR to GitHub's temp directory to avoid disk space issues
71+
export TMPDIR="${{ runner.temp }}"
7272
# Set PATH to include FastGA binaries (needed for FastGA's system() calls)
7373
# MUST use absolute paths because FastGA runs from different working directories
7474
FASTGA_DEBUG=$(find target/debug/build -name "FastGA" -type f | head -1)
@@ -77,6 +77,7 @@ jobs:
7777
FASTGA_RELEASE_ABS=$(cd $(dirname $FASTGA_RELEASE) && pwd)
7878
export PATH="$FASTGA_DEBUG_ABS:$FASTGA_RELEASE_ABS:$PATH"
7979
echo "PATH for tests: $PATH"
80+
echo "TMPDIR for tests: $TMPDIR"
8081
# FastGA has race conditions with parallel test execution on Linux
8182
# Run tests sequentially and skip problematic tests on CI
8283
# (end-to-end tests have FastGA race conditions, golden tests need ONEview)
@@ -98,8 +99,6 @@ jobs:
9899
build:
99100
name: Build Check
100101
runs-on: ${{ matrix.os }}
101-
env:
102-
TMPDIR: ${{ runner.temp }} # Use GitHub's temp directory for FastGA temporary files
103102
strategy:
104103
matrix:
105104
os: [ubuntu-latest, macos-latest]

0 commit comments

Comments
 (0)