Add a retry around Pkg.build (#23)

* Add a retry around Pkg.build

* Update action.yml
This commit is contained in:
Octogonapus
2023-09-22 05:41:04 -04:00
committed by GitHub
parent 72ddd0fcdc
commit 00f9fd6b26

View File

@@ -23,7 +23,7 @@ runs:
- run: | - run: |
import Pkg import Pkg
VERSION >= v"1.5-" && Pkg.Registry.add("General") VERSION >= v"1.5-" && Pkg.Registry.add("General")
VERSION >= v"1.1.0-rc1" ? Pkg.build(verbose=true) : Pkg.build() VERSION >= v"1.1.0-rc1" ? retry(Pkg.build)(verbose=true) : retry(Pkg.build)()
shell: julia --color=yes --project=${{ inputs.project }} {0} shell: julia --color=yes --project=${{ inputs.project }} {0}
env: env:
JULIA_PKG_PRECOMPILE_AUTO: "${{ inputs.precompile }}" JULIA_PKG_PRECOMPILE_AUTO: "${{ inputs.precompile }}"