Skip to content

Commit

Permalink
Use "pre" instead of "nightly" for GitHub CI (#475)
Browse files Browse the repository at this point in the history
* Use "pre" instead of "nightly" for GitHub CI

* Fix constructor

* Min diff
  • Loading branch information
gdalle authored Jun 27, 2024
1 parent 759bb41 commit f1c4302
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PkgTemplates"
uuid = "14b8a8f1-9102-5b29-a752-f990bacb7fe1"
authors = ["Chris de Graaf", "Invenia Technical Computing Corporation"]
version = "0.7.50"
version = "0.7.51"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
17 changes: 9 additions & 8 deletions src/plugins/ci.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ format_version(v::AbstractString) = string(v)

const ALLOWED_FAILURES = ["nightly"] # TODO: Update this list with new RCs.
const DEFAULT_CI_VERSIONS = map(format_version, [default_version(), VERSION, "nightly"])
const DEFAULT_CI_VERSIONS_NO_NIGHTLY = map(format_version, [default_version(), VERSION])
const DEFAULT_CI_VERSIONS_GITHUB = map(format_version, [default_version(), VERSION, "pre"])
const DEFAULT_CI_VERSIONS_NO_PRERELEASE = map(format_version, [default_version(), VERSION])
const EXTRA_VERSIONS_DOC = "- `extra_versions::Vector`: Extra Julia versions to test, as strings or `VersionNumber`s."

"""
Expand All @@ -22,7 +23,7 @@ const EXTRA_VERSIONS_DOC = "- `extra_versions::Vector`: Extra Julia versions to
x64=true,
x86=false,
coverage=true,
extra_versions=$DEFAULT_CI_VERSIONS,
extra_versions=$DEFAULT_CI_VERSIONS_GITHUB,
)
Integrates your packages with [GitHub Actions](https://github.com/features/actions).
Expand Down Expand Up @@ -53,7 +54,7 @@ $EXTRA_VERSIONS_DOC
x64::Bool = true
x86::Bool = false
coverage::Bool = true
extra_versions::Vector = DEFAULT_CI_VERSIONS
extra_versions::Vector = DEFAULT_CI_VERSIONS_GITHUB
end

source(p::GitHubActions) = p.file
Expand Down Expand Up @@ -153,7 +154,7 @@ function view(p::TravisCI, t::Template, pkg::AbstractString)
if p.arm64
p.osx && push!(excludes, Dict("E_OS" => "osx", "E_ARCH" => "arm64"))
p.windows && push!(excludes, Dict("E_OS" => "windows", "E_ARCH" => "arm64"))
"nightly" in versions && push!(excludes, Dict("E_JULIA" => "nightly", "E_ARCH" => "arm64"))
"pre" in versions && push!(excludes, Dict("E_JULIA" => "pre", "E_ARCH" => "arm64"))
end

return Dict(
Expand Down Expand Up @@ -283,7 +284,7 @@ end
GitLabCI(;
file="$(contractuser(default_file("gitlab-ci.yml")))",
coverage=true,
extra_versions=$DEFAULT_CI_VERSIONS_NO_NIGHTLY,
extra_versions=$DEFAULT_CI_VERSIONS_NO_PRERELEASE,
)
Integrates your packages with [GitLab CI](https://docs.gitlab.com/ce/ci).
Expand All @@ -304,7 +305,7 @@ See [`Documenter`](@ref) for more information.
file::String = default_file("gitlab-ci.yml")
coverage::Bool = true
# Nightly has no Docker image.
extra_versions::Vector = DEFAULT_CI_VERSIONS_NO_NIGHTLY
extra_versions::Vector = DEFAULT_CI_VERSIONS_NO_PRERELEASE
end

gitignore(p::GitLabCI) = p.coverage ? COVERAGE_GITIGNORE : String[]
Expand Down Expand Up @@ -344,7 +345,7 @@ end
amd64=true,
arm=false,
arm64=false,
extra_versions=$DEFAULT_CI_VERSIONS_NO_NIGHTLY,
extra_versions=$DEFAULT_CI_VERSIONS_NO_PRERELEASE,
)
Integrates your packages with [Drone CI](https://drone.io).
Expand All @@ -367,7 +368,7 @@ $EXTRA_VERSIONS_DOC
amd64::Bool = true
arm::Bool = false
arm64::Bool = false
extra_versions::Vector = DEFAULT_CI_VERSIONS_NO_NIGHTLY
extra_versions::Vector = DEFAULT_CI_VERSIONS_NO_PRERELEASE
end

source(p::DroneCI) = p.file
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/AllPlugins/.github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
version:
- '1.10'
- '1.6'
- 'nightly'
- 'pre'
os:
- ubuntu-latest
arch:
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/Basic/.github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
version:
- '1.10'
- '1.6'
- 'nightly'
- 'pre'
os:
- ubuntu-latest
arch:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
version:
- '1.10'
- '1.6'
- 'nightly'
- 'pre'
os:
- ubuntu-latest
arch:
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/DocumenterGitLabCI/.github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
version:
- '1.10'
- '1.6'
- 'nightly'
- 'pre'
os:
- ubuntu-latest
arch:
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/DocumenterTravis/.github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
version:
- '1.10'
- '1.6'
- 'nightly'
- 'pre'
os:
- ubuntu-latest
arch:
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/WackyOptions/.github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- '1.10'
- '1.2'
- '1.6'
- 'nightly'
- 'pre'
os:
arch:
- x64
Expand Down
2 changes: 1 addition & 1 deletion test/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ end
x64: true
x86: false
coverage: true
extra_versions: [\"1.6\", \"$(VERSION.major).$(VERSION.minor)\", \"nightly\"]
extra_versions: [\"1.6\", \"$(VERSION.major).$(VERSION.minor)\", \"pre\"]
License:
path: "$(joinpath(LICENSES_DIR, "MIT"))"
destination: "LICENSE"
Expand Down

2 comments on commit f1c4302

@gdalle
Copy link
Collaborator Author

@gdalle gdalle commented on f1c4302 Jun 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/109933

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.7.51 -m "<description of version>" f1c4302b576b51603b939cbd782a05cac446af5f
git push origin v0.7.51

Please sign in to comment.