Skip to content

Commit

Permalink
Run the manifest updater on the lowest supported version. [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Jan 22, 2020
1 parent 250ccd6 commit 859e000
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/update_manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get Julia compatibility
id: julia_compat
# NOTE: this requires a julia compat lower-bound with minor version!
run : |
version=$(grep '^julia = ' Project.toml | grep -o '".*"' | cut -d '"' -f2)
echo "::set-output name=version::$version"
- uses: julia-actions/setup-julia@latest
with:
version: ${{ steps.julia_compat.outputs.version }}
- name: Update packages
id: update
id: pkg_update
run: |
log=$(julia --project -e "using Pkg; Pkg.update()")
log=$(julia --project -e 'using Pkg; Pkg.update()')
log="${log//'%'/'%25'}"
log="${log//$'\n'/'%0A'}"
log="${log//$'\r'/'%0D'}"
echo "::set-output name=log::$log"
- name: Get status
id: status
id: pkg_status
run: |
log=$(julia --project -e "using Pkg; Pkg.status(diff=true)")
log=$(julia --project -e 'using Pkg; VERSION >= v"1.3" ? Pkg.status(diff=true) : Pkg.status()')
log="${log//'%'/'%25'}"
log="${log//$'\n'/'%0A'}"
log="${log//$'\r'/'%0D'}"
Expand All @@ -44,14 +52,14 @@ jobs:
This pull request updates the manifest for Julia v${{ steps.version.outputs.log }}:
```
${{ steps.status.outputs.log }}
${{ steps.pkg_status.outputs.log }}
```
<details><summary>Click here for the full update log.</summary>
<p>
```
${{ steps.update.outputs.log }}
${{ steps.pkg_update.outputs.log }}
```
</p>
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CuArrays = "3a865a2d-5b23-5a0f-bc46-62713ec82fae"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"

[compat]
julia = "1"
julia = "1.0"

[extras]
CUDAnative = "be33ccc6-a3ff-5ff2-a52e-74243cff1e17"
Expand Down

0 comments on commit 859e000

Please sign in to comment.