This repository was archived by the owner on Mar 12, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
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 @@ -8,6 +8,7 @@ variables:
88
99
1010# Julia versions
11+
1112# the "primary" target, where we require thorough tests
1213# (this requires a recent GPU)
1314julia:1.3 :
You can’t perform that action at this time.
0 commit comments