Compare commits

...

3 Commits
v1.2 ... v1.3.1

Author SHA1 Message Date
Ian Butterworth
f813042500 Detect if the registry is already installed via tarball (#25) 2022-12-19 01:16:36 +01:00
Ian Butterworth
139ec78da3 Disable autoprecompile by default (#26) 2022-12-17 18:35:44 +01:00
Rik Huijzer
6d50efe063 Suggest using releases instead of master (#18) 2022-02-11 14:40:27 +01:00
3 changed files with 22 additions and 6 deletions

View File

@@ -26,10 +26,10 @@ jobs:
julia-arch: x86 julia-arch: x86
steps: steps:
- uses: actions/checkout@v1.0.0 - uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest - uses: julia-actions/setup-julia@v1
with: with:
version: ${{ matrix.julia-version }} version: ${{ matrix.julia-version }}
- uses: julia-actions/julia-buildpkg@master - uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@master - uses: julia-actions/julia-runtest@v1
``` ```

View File

@@ -10,6 +10,9 @@ inputs:
project: project:
description: 'Value passed to the --project flag. The default value is the repository root: "@."' description: 'Value passed to the --project flag. The default value is the repository root: "@."'
default: '@.' 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: runs:
using: 'composite' 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' - 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 shell: bash
env:
JULIA_PKG_PRECOMPILE_AUTO: "${{ inputs.precompile }}"

View File

@@ -1,13 +1,24 @@
using Pkg 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") general_registry_dir = joinpath(DEPOT_PATH[1], "registries", "General")
registry_toml_file = joinpath(general_registry_dir, "Registry.toml") registry_toml_file = joinpath(general_registry_dir, "Registry.toml")
return general_registry_dir, registry_toml_file return general_registry_dir, registry_toml_file
end end
function general_registry_exists() 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) if !isdir(general_registry_dir)
return false return false
elseif !isfile(registry_toml_file) elseif !isfile(registry_toml_file)