Skip to content

Commit ad689d8

Browse files
committed
ci: upload failing mlir
1 parent 4ae4f55 commit ad689d8

File tree

2 files changed

+35
-20
lines changed

2 files changed

+35
-20
lines changed

.github/workflows/CI.yml

+29-20
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@ name: CI
33
on:
44
pull_request:
55
paths:
6-
- '.github/workflows/CI.yml'
7-
- 'ext/**'
8-
- 'lib/**'
9-
- 'src/**'
10-
- 'test/**'
11-
- 'Project.toml'
6+
- ".github/workflows/CI.yml"
7+
- "ext/**"
8+
- "lib/**"
9+
- "src/**"
10+
- "test/**"
11+
- "Project.toml"
1212
push:
1313
branches:
1414
- main
1515
- release-*
16-
tags: '*'
16+
tags: "*"
1717
paths:
18-
- '.github/workflows/CI.yml'
19-
- 'ext/**'
20-
- 'lib/**'
21-
- 'src/**'
22-
- 'test/**'
23-
- 'Project.toml'
18+
- ".github/workflows/CI.yml"
19+
- "ext/**"
20+
- "lib/**"
21+
- "src/**"
22+
- "test/**"
23+
- "Project.toml"
2424

2525
concurrency:
2626
# Skip intermediate builds: always.
@@ -37,8 +37,8 @@ jobs:
3737
fail-fast: false
3838
matrix:
3939
version:
40-
- '1.10'
41-
- '1.11'
40+
- "1.10"
41+
- "1.11"
4242
# - 'nightly'
4343
os:
4444
- ubuntu-24.04
@@ -60,17 +60,17 @@ jobs:
6060
- false
6161
include:
6262
- os: ubuntu-24.04
63-
version: '1.10'
63+
version: "1.10"
6464
assertions: true
6565
test_group: core
6666
runtime: "PJRT"
6767
- os: ubuntu-24.04
68-
version: '1.10'
68+
version: "1.10"
6969
assertions: true
7070
test_group: neural_networks
7171
runtime: "PJRT"
7272
- os: ubuntu-24.04
73-
version: '1.10'
73+
version: "1.10"
7474
assertions: true
7575
test_group: integration
7676
runtime: "PJRT"
@@ -96,9 +96,9 @@ jobs:
9696
- uses: actions/checkout@v4
9797
if: ${{ matrix.assertions }}
9898
with:
99-
repository: 'JuliaLang/julia'
99+
repository: "JuliaLang/julia"
100100
ref: release-${{ matrix.version }}
101-
path: 'julia'
101+
path: "julia"
102102
- name: Compile Julia
103103
if: ${{ matrix.assertions }}
104104
run: |
@@ -141,6 +141,15 @@ jobs:
141141
REACTANT_TEST_GROUP: ${{ matrix.test_group }}
142142
XLA_FLAGS: "--xla_force_host_platform_device_count=12"
143143
JULIA_DEBUG: "Reactant,Reactant_jll"
144+
- name: Upload MLIR modules
145+
uses: actions/upload-artifact@v4
146+
timeout-minutes: 10
147+
if: ${{ always() }}
148+
with:
149+
name: "simulation-mlir-${{ matrix.version }} - ${{ matrix.test_group }} - ${{ matrix.os }} - ${{ matrix.runtime }} - assertions=${{ matrix.assertions }} - ${{ github.event_name }}"
150+
path: "**/*.mlir"
151+
retention-days: 90
152+
overwrite: false
144153
- uses: julia-actions/julia-processcoverage@v1
145154
- uses: codecov/codecov-action@v5
146155
with:

test/runtests.jl

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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+
ENV["TMPDIR"] = mkpath(joinpath(@__DIR__, "..", "tmp"))
7+
end
8+
39
# parse some command-line arguments
410
function extract_flag!(args, flag, default=nothing; typ=typeof(default))
511
for f in args

0 commit comments

Comments
 (0)