Support setting the Julia project (#15)

This commit is contained in:
Curtis Vogt
2021-07-08 06:01:30 -05:00
committed by GitHub
parent 1b0a69ab74
commit f995fa4149

View File

@@ -6,6 +6,11 @@ branding:
icon: 'box' icon: 'box'
color: 'gray-dark' color: 'gray-dark'
inputs:
project:
description: 'Value passed to the --project flag. The default value is the repository root: "@."'
default: '@.'
runs: runs:
using: 'composite' using: 'composite'
steps: steps:
@@ -26,5 +31,5 @@ runs:
# packages via `Pkg.test`. # packages via `Pkg.test`.
JULIA_PKG_SERVER: "" JULIA_PKG_SERVER: ""
- run: julia --color=yes --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