Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

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 447d2ba commit fc487fd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 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
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ variables:


# Julia versions

# the "primary" target, where we require thorough tests
# (this requires a recent GPU)
julia:1.3:
Expand Down

0 comments on commit fc487fd

Please sign in to comment.