@@ -23,19 +23,34 @@ runs:
23
23
run : |
24
24
REPONAME="${{ github.event.repository.name }}"
25
25
PACKAGENAME=${REPONAME%.jl}
26
- echo "::set-output name= packagename:: $PACKAGENAME"
26
+ echo "packagename= $PACKAGENAME" >> $GITHUB_OUTPUT
27
27
if [[ '${{ inputs.test_script }}' == '' ]]; then
28
28
TESTSCRIPT="using ${PACKAGENAME}"
29
29
else
30
30
TESTSCRIPT=${{ inputs.test_script }}
31
31
fi
32
- echo "::set-output name= testscript:: $TESTSCRIPT"
32
+ echo "testscript= $TESTSCRIPT" >> $GITHUB_OUTPUT
33
33
shell : bash
34
34
35
35
- name : Install SnoopCompile tools
36
36
run : julia --project -e 'using Pkg; Pkg.add(["SnoopCompileCore", "SnoopCompile"])'
37
37
shell : bash
38
38
- name : Load package on branch
39
39
id : invs
40
- run : julia --project -e 'using SnoopCompileCore; invalidations = @snoopr begin ${{ steps.info.outputs.testscript }} end; using SnoopCompile; inv_owned = length(filtermod(${{ steps.info.outputs.packagename }}, invalidation_trees(invalidations))); inv_total = length(uinvalidated(invalidations)); inv_deps = inv_total - inv_owned; @show inv_total, inv_deps; println("::set-output name=total::$(inv_total)"); println("::set-output name=deps::$(inv_deps)")'
41
- shell : bash
40
+ run : |
41
+ using SnoopCompileCore
42
+ invalidations = @snoopr begin ${{ steps.info.outputs.testscript }} end
43
+
44
+ using SnoopCompile
45
+ inv_owned = length(filtermod(${{ steps.info.outputs.packagename }}, invalidation_trees(invalidations)))
46
+ inv_total = length(uinvalidated(invalidations))
47
+ inv_deps = inv_total - inv_owned
48
+
49
+ @show inv_total, inv_deps
50
+
51
+ # Set outputs
52
+ open(ENV["GITHUB_OUTPUT"], "a") do io
53
+ println(io, "total=$(inv_total)")
54
+ println(io, "deps=$(inv_deps)")'
55
+ end
56
+ shell : julia --color=yes --project=. {0}
0 commit comments