Add nightly Julia to GitHubActions plugin (#124)
This commit is contained in:
parent
761dfe534d
commit
a57bd160c3
@ -22,7 +22,7 @@ const EXTRA_VERSIONS_DOC = "- `extra_versions::Vector`: Extra Julia versions to
|
|||||||
x64=true,
|
x64=true,
|
||||||
x86=false,
|
x86=false,
|
||||||
coverage=true,
|
coverage=true,
|
||||||
extra_versions=$DEFAULT_CI_VERSIONS_NO_NIGHTLY,
|
extra_versions=$DEFAULT_CI_VERSIONS,
|
||||||
)
|
)
|
||||||
|
|
||||||
Integrates your packages with [GitHub Actions](https://github.com/features/actions).
|
Integrates your packages with [GitHub Actions](https://github.com/features/actions).
|
||||||
@ -43,9 +43,6 @@ $EXTRA_VERSIONS_DOC
|
|||||||
!!! note
|
!!! note
|
||||||
If using coverage plugins, don't forget to manually add your API tokens as secrets,
|
If using coverage plugins, don't forget to manually add your API tokens as secrets,
|
||||||
as described [here](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets#creating-encrypted-secrets).
|
as described [here](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets#creating-encrypted-secrets).
|
||||||
|
|
||||||
!!! note
|
|
||||||
Nightly Julia is not supported.
|
|
||||||
"""
|
"""
|
||||||
@with_kw_noshow struct GitHubActions <: BasicPlugin
|
@with_kw_noshow struct GitHubActions <: BasicPlugin
|
||||||
file::String = default_file("github", "workflows", "ci.yml")
|
file::String = default_file("github", "workflows", "ci.yml")
|
||||||
@ -56,7 +53,7 @@ $EXTRA_VERSIONS_DOC
|
|||||||
x64::Bool = true
|
x64::Bool = true
|
||||||
x86::Bool = false
|
x86::Bool = false
|
||||||
coverage::Bool = true
|
coverage::Bool = true
|
||||||
extra_versions::Vector = DEFAULT_CI_VERSIONS_NO_NIGHTLY
|
extra_versions::Vector = DEFAULT_CI_VERSIONS
|
||||||
end
|
end
|
||||||
|
|
||||||
source(p::GitHubActions) = p.file
|
source(p::GitHubActions) = p.file
|
||||||
@ -64,7 +61,7 @@ destination(p::GitHubActions) = joinpath(".github", "workflows", p.destination)
|
|||||||
|
|
||||||
tags(::GitHubActions) = "<<", ">>"
|
tags(::GitHubActions) = "<<", ">>"
|
||||||
|
|
||||||
badges(p::GitHubActions) = Badge(
|
badges(::GitHubActions) = Badge(
|
||||||
"Build Status",
|
"Build Status",
|
||||||
"https://github.com/{{{USER}}}/{{{PKG}}}.jl/workflows/CI/badge.svg",
|
"https://github.com/{{{USER}}}/{{{PKG}}}.jl/workflows/CI/badge.svg",
|
||||||
"https://github.com/{{{USER}}}/{{{PKG}}}.jl/actions",
|
"https://github.com/{{{USER}}}/{{{PKG}}}.jl/actions",
|
||||||
|
@ -31,8 +31,8 @@ jobs:
|
|||||||
<</E_VERSION>>
|
<</E_VERSION>>
|
||||||
<</EXCLUDES>>
|
<</EXCLUDES>>
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: julia-actions/setup-julia@latest
|
- uses: julia-actions/setup-julia@v1
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
arch: ${{ matrix.arch }}
|
arch: ${{ matrix.arch }}
|
||||||
@ -53,8 +53,8 @@ jobs:
|
|||||||
name: Documentation
|
name: Documentation
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: julia-actions/setup-julia@latest
|
- uses: julia-actions/setup-julia@v1
|
||||||
with:
|
with:
|
||||||
version: '1.0'
|
version: '1.0'
|
||||||
- run: julia --project=docs -e '
|
- run: julia --project=docs -e '
|
||||||
|
@ -11,6 +11,7 @@ jobs:
|
|||||||
version:
|
version:
|
||||||
- '1.0'
|
- '1.0'
|
||||||
- '1.3'
|
- '1.3'
|
||||||
|
- 'nightly'
|
||||||
os:
|
os:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
- macOS-latest
|
- macOS-latest
|
||||||
@ -18,8 +19,8 @@ jobs:
|
|||||||
arch:
|
arch:
|
||||||
- x64
|
- x64
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: julia-actions/setup-julia@latest
|
- uses: julia-actions/setup-julia@v1
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
arch: ${{ matrix.arch }}
|
arch: ${{ matrix.arch }}
|
||||||
|
@ -11,6 +11,7 @@ jobs:
|
|||||||
version:
|
version:
|
||||||
- '1.0'
|
- '1.0'
|
||||||
- '1.3'
|
- '1.3'
|
||||||
|
- 'nightly'
|
||||||
os:
|
os:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
- macOS-latest
|
- macOS-latest
|
||||||
@ -18,8 +19,8 @@ jobs:
|
|||||||
arch:
|
arch:
|
||||||
- x64
|
- x64
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: julia-actions/setup-julia@latest
|
- uses: julia-actions/setup-julia@v1
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
arch: ${{ matrix.arch }}
|
arch: ${{ matrix.arch }}
|
||||||
@ -29,8 +30,8 @@ jobs:
|
|||||||
name: Documentation
|
name: Documentation
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: julia-actions/setup-julia@latest
|
- uses: julia-actions/setup-julia@v1
|
||||||
with:
|
with:
|
||||||
version: '1.0'
|
version: '1.0'
|
||||||
- run: julia --project=docs -e '
|
- run: julia --project=docs -e '
|
||||||
|
@ -12,6 +12,7 @@ jobs:
|
|||||||
- '1.0'
|
- '1.0'
|
||||||
- '1.2'
|
- '1.2'
|
||||||
- '1.3'
|
- '1.3'
|
||||||
|
- 'nightly'
|
||||||
os:
|
os:
|
||||||
- macOS-latest
|
- macOS-latest
|
||||||
- windows-latest
|
- windows-latest
|
||||||
@ -22,8 +23,8 @@ jobs:
|
|||||||
- os: macOS-latest
|
- os: macOS-latest
|
||||||
arch: x86
|
arch: x86
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: julia-actions/setup-julia@latest
|
- uses: julia-actions/setup-julia@v1
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
arch: ${{ matrix.arch }}
|
arch: ${{ matrix.arch }}
|
||||||
|
Loading…
Reference in New Issue
Block a user