Compare commits

..

9 Commits

Author SHA1 Message Date
dependabot[bot]
acb68814d0 Bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-21 04:11:45 +00:00
Curtis Vogt
8e4b7ee508 Update README example to use actions/checkout@v5 (#62) 2025-08-15 18:25:17 +01:00
dependabot[bot]
a2be14d86d Bump actions/checkout from 4 to 5 (#61)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-12 15:15:03 +02:00
dependabot[bot]
4ac6b31e10 Bump codecov/codecov-action from 3 to 5 (#57)
* Bump codecov/codecov-action from 3 to 5

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v3...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Apply suggestions from code review

Co-authored-by: Mosè Giordano <765740+giordano@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
Co-authored-by: Mosè Giordano <765740+giordano@users.noreply.github.com>
2025-01-10 08:58:09 -06:00
Max Horn
fdc6cd6ae7 README.md: update actions being used (#58) 2024-11-22 06:41:29 -05:00
Venkateshprasad
e3eb439fad fix: install the default registries for version > 1.8 (#55) 2024-11-04 07:17:59 -05:00
dependabot[bot]
d36834d834 Bump julia-actions/setup-julia from 1 to 2 (#53)
Bumps [julia-actions/setup-julia](https://github.com/julia-actions/setup-julia) from 1 to 2.
- [Release notes](https://github.com/julia-actions/setup-julia/releases)
- [Commits](https://github.com/julia-actions/setup-julia/compare/v1...v2)

---
updated-dependencies:
- dependency-name: julia-actions/setup-julia
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-02 00:29:53 -04:00
inky
98b1bc2639 Remove link trailing dot (#51) 2024-01-19 20:59:06 -05:00
dependabot[bot]
cec9c38577 Bump actions/cache from 3 to 4 (#50)
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-18 11:23:02 -05:00
4 changed files with 26 additions and 49 deletions

View File

@@ -12,7 +12,7 @@ jobs:
steps:
- name: Configure cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
${{ env.GITHUB_WORKSPACE }}

View File

@@ -4,6 +4,7 @@ on:
push:
branches:
- "main"
- "master"
paths-ignore:
- "README.md"
- "LICENSE"
@@ -16,11 +17,10 @@ jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: ${{ github.event_name == 'pull_request' }}
fail-fast: false
matrix:
version:
- "1.0"
- "1.6" # Long-term support (LTS) release of Julia
- "1" # automatically expands to the latest stable 1.x release of Julia
- nightly
os:
@@ -33,19 +33,14 @@ jobs:
pkg-server:
- ""
- "pkg.julialang.org"
# 32-bit Julia binaries are not available on macOS
exclude:
# 32-bit Julia binaries are not available on macOS
- os: macOS-latest
arch: x86
# Only Julia 1.7+ can use the package server
- version: "1.0"
pkg-server: "pkg.julialang.org"
- version: "1.6"
pkg-server: "pkg.julialang.org"
steps:
- name: Checkout Example.jl
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: julia-actions/Example.jl
@@ -54,11 +49,11 @@ jobs:
shell: bash
- name: Checkout julia-buildpkg
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
path: ./.github/actions/julia-buildpkg
- uses: julia-actions/setup-julia@v1
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
@@ -66,27 +61,16 @@ jobs:
- uses: ./.github/actions/julia-buildpkg
with:
ignore-no-cache: true
localregistry: |
https://github.com/JuliaRegistries/General.git
env:
JULIA_PKG_SERVER: ${{ matrix.pkg-server }}
# When using the Pkg server the `Pkg.Registry.add("General")` will add the General registry
# via Pkg servers. Using `localregistry` to clone the General registry via HTTPS should be
# skipped.
- name: Test skipping registry cloning of duplicate repos
if: ${{ matrix.pkg-server == 'pkg.julialang.org' }}
shell: bash
run: |
! test -d $HOME/.julia/registries/General
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v5
with:
file: lcov.info
files: lcov.info
- name: Verify that test output file exists
run: test -f "$HOME/julia-buildpkg"

View File

@@ -8,7 +8,7 @@ Julia needs to be installed before this action can run. This can easily be achie
And example workflow that uses this action might look like this:
```
```yaml
name: Run tests
on: [push, pull_request]
@@ -26,8 +26,8 @@ jobs:
julia-arch: x86
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: actions/checkout@v5
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
- uses: julia-actions/julia-buildpkg@v1
@@ -68,4 +68,4 @@ If the registry contains private packages, or is itself private, the ssh protoco
...
```
For Julia 1.7 and above, the `git_cli` option can be used to set the `JULIA_PKG_USE_CLI_GIT` [environment flag](https://docs.julialang.org/en/v1/manual/environment-variables/), for additional control of the SSH configuration used by `Pkg` to add/dev packages.
For Julia 1.7 and above, the `git_cli` option can be used to set the `JULIA_PKG_USE_CLI_GIT` [environment flag](https://docs.julialang.org/en/v1/manual/environment-variables/), for additional control of the SSH configuration used by `Pkg` to add/dev packages.

View File

@@ -33,7 +33,7 @@ runs:
shell: bash
- run: |
if "${{ inputs.ignore-no-cache }}" == "false" && !isdir(DEPOT_PATH[1])
println("::notice title=[julia-buildpkg] Caching of the julia depot was not detected ::Consider using `julia-actions/cache` to speed up runs https://github.com/julia-actions/cache. To ignore, set input `ignore-no-cache: true` ")
println("::notice title=[julia-buildpkg] Caching of the julia depot was not detected ::Consider using `julia-actions/cache` to speed up runs https://github.com/julia-actions/cache To ignore, set input `ignore-no-cache: true` ")
end
import Pkg
@@ -41,31 +41,25 @@ runs:
VERSION >= v"1.7-" && (ENV["JULIA_PKG_USE_CLI_GIT"] = ${{ inputs.git_cli }})
if VERSION < v"1.7-" && ${{ inputs.git_cli }} == true
printstyled("::notice::JULIA_PKG_USE_CLI_GIT requires Julia >= 1.7. Using default LibGit2 git-interface instead! \n"; color = :yellow)
printstyled("::notice::JULIA_PKG_USE_CLI_GIT requires Julia >= 1.7. Using default LibGit2 git-interface instead! \n"; color = :yellow)
end
if VERSION >= v"1.5-"
function reachable_registries()
return if VERSION >= v"1.7-"
Pkg.Registry.reachable_registries()
else
[(; name=r.name, repo=r.url) for r in Pkg.Types.collect_registries()]
end
end
if !any(r -> r.name == "General", reachable_registries())
if VERSION >= v"1.5-"
if VERSION >= v"1.8-"
# Install the default registries
Pkg.Registry.add()
else
Pkg.Registry.add("General")
end
# If provided add local registries
if !isempty(ENV["LOCAL_REGISTRY"])
local_repos = split(ENV["LOCAL_REGISTRY"], "\n"; keepempty=false) .|> string
for repo_url in local_repos
# https://github.com/JuliaLang/Pkg.jl/issues/3753
if !any(r -> r.repo == repo_url, reachable_registries())
Pkg.Registry.add(Pkg.RegistrySpec(; url = repo_url))
end
end
if !isempty("${{ inputs.localregistry }}")
local_repos = split("${{ inputs.localregistry }}", "\n") .|> string
for repo_url in local_repos
isempty(repo_url) && continue
Pkg.Registry.add(Pkg.RegistrySpec(; url = repo_url))
end
end
end
@@ -74,4 +68,3 @@ runs:
env:
JULIA_PKG_PRECOMPILE_AUTO: "${{ inputs.precompile }}"
GITHUB_TOKEN: ${{ github.token }}
LOCAL_REGISTRY: ${{ inputs.localregistry }}