File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed
Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 steps :
1111 - uses : actions/checkout@v2
12+ - name : Get Julia compatibility
13+ id : julia_compat
14+ # NOTE: this requires a julia compat lower-bound with minor version!
15+ run : |
16+ version=$(grep '^julia = ' Project.toml | grep -o '".*"' | cut -d '"' -f2)
17+ echo "::set-output name=version::$version"
1218 - uses : julia-actions/setup-julia@latest
19+ with :
20+ version : ${{ steps.julia_compat.outputs.version }}
1321 - name : Update packages
14- id : update
22+ id : pkg_update
1523 run : |
16- log=$(julia --project -e " using Pkg; Pkg.update()" )
24+ log=$(julia --project -e ' using Pkg; Pkg.update()' )
1725 log="${log//'%'/'%25'}"
1826 log="${log//$'\n'/'%0A'}"
1927 log="${log//$'\r'/'%0D'}"
2028 echo "::set-output name=log::$log"
2129 - name : Get status
22- id : status
30+ id : pkg_status
2331 run : |
24- log=$(julia --project -e " using Pkg; Pkg.status(diff=true)" )
32+ log=$(julia --project -e ' using Pkg; VERSION >= v"1.3" ? Pkg.status(diff=true) : Pkg.status()' )
2533 log="${log//'%'/'%25'}"
2634 log="${log//$'\n'/'%0A'}"
2735 log="${log//$'\r'/'%0D'}"
@@ -44,14 +52,14 @@ jobs:
4452 This pull request updates the manifest for Julia v${{ steps.version.outputs.log }}:
4553
4654 ```
47- ${{ steps.status .outputs.log }}
55+ ${{ steps.pkg_status .outputs.log }}
4856 ```
4957
5058 <details><summary>Click here for the full update log.</summary>
5159 <p>
5260
5361 ```
54- ${{ steps.update .outputs.log }}
62+ ${{ steps.pkg_update .outputs.log }}
5563 ```
5664
5765 </p>
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ CuArrays = "3a865a2d-5b23-5a0f-bc46-62713ec82fae"
1010Printf = " de0858da-6303-5e67-8744-51eddeeeb8d7"
1111
1212[compat ]
13- julia = " 1"
13+ julia = " 1.0 "
1414
1515[extras ]
1616CUDAnative = " be33ccc6-a3ff-5ff2-a52e-74243cff1e17"
You can’t perform that action at this time.
0 commit comments