Commit e3d0388 1 parent 18b90f6 commit e3d0388 Copy full SHA for e3d0388
File tree 1 file changed +11
-12
lines changed
1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -22,32 +22,31 @@ jobs:
22
22
julia-version : ["1.10", "1"]
23
23
os : [ubuntu-latest, windows-latest, macOS-latest]
24
24
25
+ outputs :
26
+ output_dir : ${{ steps.set_output_dir.outputs.output_dir }}
27
+
25
28
steps :
26
29
- uses : actions/checkout@v4
27
30
28
- - name :
29
- if : ${{ matrix.os == 'windows-latest' }}
31
+ - name : Set output directory
32
+ id : set_output_dir
33
+ shell : bash
30
34
run : |
31
35
mkdir -p $HOME/output
32
- echo "output_dir=$(echo $HOME/output)" >> $env:GITHUB_ENV
33
-
34
- - name :
35
- if : ${{ matrix.os != 'windows-latest' }}
36
- run : |
37
- mkdir -p $HOME/output
38
- echo "output_dir=$(echo $HOME/output)" >> $GITHUB_ENV
36
+ echo "output_dir=$HOME/output" >> "$GITHUB_OUTPUT"
39
37
40
38
- uses : julia-actions/setup-julia@v2
41
39
with :
42
40
version : ${{ matrix.julia-version }}
43
-
41
+
44
42
- uses : julia-actions/julia-buildpkg@v1
43
+
45
44
- uses : julia-actions/julia-runtest@v1
46
45
env :
47
- TEST_OUTPUT_DIR : ${{ env .output_dir }}
46
+ TEST_OUTPUT_DIR : ${{ steps.set_output_dir.outputs .output_dir }}
48
47
49
48
- uses : actions/upload-artifact@v4
50
49
if : failure()
51
50
with :
52
51
name : hanoi_${{ matrix.os }}_${{ matrix.julia_version }}.pdf
53
- path : ${{ env .output_dir }}/hanoi.pdf
52
+ path : ${{ steps.set_output_dir.outputs .output_dir }}/hanoi.pdf
You can’t perform that action at this time.
0 commit comments