mirror of
https://github.com/julia-actions/julia-buildpkg.git
synced 2026-02-12 09:26:54 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f813042500 | ||
|
|
139ec78da3 | ||
|
|
6d50efe063 |
@@ -26,10 +26,10 @@ jobs:
|
||||
julia-arch: x86
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1.0.0
|
||||
- uses: julia-actions/setup-julia@latest
|
||||
- uses: actions/checkout@v2
|
||||
- uses: julia-actions/setup-julia@v1
|
||||
with:
|
||||
version: ${{ matrix.julia-version }}
|
||||
- uses: julia-actions/julia-buildpkg@master
|
||||
- uses: julia-actions/julia-runtest@master
|
||||
- uses: julia-actions/julia-buildpkg@v1
|
||||
- uses: julia-actions/julia-runtest@v1
|
||||
```
|
||||
|
||||
@@ -10,6 +10,9 @@ inputs:
|
||||
project:
|
||||
description: 'Value passed to the --project flag. The default value is the repository root: "@."'
|
||||
default: '@.'
|
||||
precompile:
|
||||
description: 'Whether to allow auto-precompilation (via the `JULIA_PKG_PRECOMPILE_AUTO` env var). Options: yes | no. Default value: no.'
|
||||
default: 'no'
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
@@ -33,3 +36,5 @@ runs:
|
||||
|
||||
- run: julia --color=yes --project=${{ inputs.project }} -e 'using Pkg; if VERSION >= v"1.1.0-rc1"; Pkg.build(verbose=true); else Pkg.build(); end'
|
||||
shell: bash
|
||||
env:
|
||||
JULIA_PKG_PRECOMPILE_AUTO: "${{ inputs.precompile }}"
|
||||
|
||||
@@ -1,13 +1,24 @@
|
||||
using Pkg
|
||||
|
||||
function general_registry_location()
|
||||
function tarball_general_registry_location()
|
||||
reg_dir = joinpath(DEPOT_PATH[1], "registries")
|
||||
general_registry_tarball = joinpath(reg_dir, "General.tar.gz")
|
||||
registry_toml_file = joinpath(reg_dir, "General.toml")
|
||||
return general_registry_tarball, registry_toml_file
|
||||
end
|
||||
|
||||
function cloned_general_registry_location()
|
||||
general_registry_dir = joinpath(DEPOT_PATH[1], "registries", "General")
|
||||
registry_toml_file = joinpath(general_registry_dir, "Registry.toml")
|
||||
return general_registry_dir, registry_toml_file
|
||||
end
|
||||
|
||||
function general_registry_exists()
|
||||
general_registry_dir, registry_toml_file = general_registry_location()
|
||||
general_registry_tarball, registry_toml_file = tarball_general_registry_location()
|
||||
if isfile(general_registry_tarball) && isfile(registry_toml_file)
|
||||
return true
|
||||
end
|
||||
general_registry_dir, registry_toml_file = cloned_general_registry_location()
|
||||
if !isdir(general_registry_dir)
|
||||
return false
|
||||
elseif !isfile(registry_toml_file)
|
||||
|
||||
Reference in New Issue
Block a user