Skip to content

Commit ca6e2be

Browse files
committed
[CI] Set TMPDIR for the entire job
While `DUMP_MLIR_DIR` is more specific, it doesn't work if Reactant itself can't be precompiled and we want to exfiltrate a module dumped at that time.
1 parent af50c65 commit ca6e2be

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

.github/workflows/CI-localjll.yml

+5
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,13 @@ jobs:
3636
exclude:
3737
- os: macOS-latest
3838
version: '1.10'
39+
env:
40+
TMPDIR: ${{ github.workspace }}/tmp
3941
steps:
4042
- uses: actions/checkout@v4
43+
- name: Create TMPDIR
44+
run: |
45+
mkdir -p ${{ env.TMPDIR }}
4146
- uses: julia-actions/setup-julia@v2
4247
with:
4348
version: ${{ matrix.version }}

.github/workflows/CI.yml

+5
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,13 @@ jobs:
8686
# libReactant: packaged
8787
# version: '1.10'
8888
# test_group: integration
89+
env:
90+
TMPDIR: ${{ github.workspace }}/tmp
8991
steps:
9092
- uses: actions/checkout@v4
93+
- name: Create TMPDIR
94+
run: |
95+
mkdir -p ${{ env.TMPDIR }}
9196
- uses: julia-actions/setup-julia@v2
9297
if: ${{ ! matrix.assertions }}
9398
with:

.github/workflows/downgrade.yml

+5
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,13 @@ jobs:
4141
runtime:
4242
- PJRT
4343
- IFRT
44+
env:
45+
TMPDIR: ${{ github.workspace }}/tmp
4446
steps:
4547
- uses: actions/checkout@v4
48+
- name: Create TMPDIR
49+
run: |
50+
mkdir -p ${{ env.TMPDIR }}
4651
- uses: julia-actions/setup-julia@v2
4752
with:
4853
version: "1.10"

test/runtests.jl

-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
using Reactant, SafeTestsets, Test
22

3-
# If we are in GitHub Actions, make `TMPDIR` be a local directory from which we
4-
# can upload artifacts at the end.
5-
if get(ENV, "GITHUB_ACTIONS", "false") == "true"
6-
Reactant.MLIR.IR.DUMP_MLIR_DIR[] = mkpath(joinpath(@__DIR__, "..", "mlir_modules"))
7-
end
8-
93
# parse some command-line arguments
104
function extract_flag!(args, flag, default=nothing; typ=typeof(default))
115
for f in args

0 commit comments

Comments
 (0)