mirror of
https://github.com/julia-actions/julia-buildpkg.git
synced 2026-02-12 09:26:54 +08:00
Compare commits
16 Commits
v1.5
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
acb68814d0 | ||
|
|
8e4b7ee508 | ||
|
|
a2be14d86d | ||
|
|
4ac6b31e10 | ||
|
|
fdc6cd6ae7 | ||
|
|
e3eb439fad | ||
|
|
d36834d834 | ||
|
|
98b1bc2639 | ||
|
|
cec9c38577 | ||
|
|
90dd6f23eb | ||
|
|
d4b940ea5e | ||
|
|
7c82bcb737 | ||
|
|
015ebdb7f3 | ||
|
|
b949419b86 | ||
|
|
c00cff0b17 | ||
|
|
3d96aa283a |
12
.github/dependabot.yml
vendored
Normal file
12
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
# To get started with Dependabot version updates, you'll need to specify which
|
||||
# package ecosystems to update and where the package manifests are located.
|
||||
# Please see the documentation for all configuration options:
|
||||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
# Keep dependencies for GitHub Actions up-to-date
|
||||
- package-ecosystem: 'github-actions'
|
||||
directory: '/'
|
||||
schedule:
|
||||
interval: 'daily'
|
||||
4
.github/workflows/backup.yml
vendored
4
.github/workflows/backup.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Configure cache
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
${{ env.GITHUB_WORKSPACE }}
|
||||
@@ -20,7 +20,7 @@ jobs:
|
||||
key: ${{ runner.os }}
|
||||
|
||||
- name: Install the correct Python version
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
|
||||
23
.github/workflows/ci.yml
vendored
23
.github/workflows/ci.yml
vendored
@@ -40,7 +40,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout Example.jl
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
repository: julia-actions/Example.jl
|
||||
|
||||
@@ -49,27 +49,18 @@ jobs:
|
||||
shell: bash
|
||||
|
||||
- name: Checkout julia-buildpkg
|
||||
uses: actions/checkout@v2
|
||||
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 }}
|
||||
|
||||
- uses: actions/cache@v1
|
||||
env:
|
||||
cache-name: cache-artifacts
|
||||
with:
|
||||
path: ~/.julia/artifacts
|
||||
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-test-${{ env.cache-name }}-
|
||||
${{ runner.os }}-test-
|
||||
${{ runner.os }}-
|
||||
|
||||
- uses: ./.github/actions/julia-buildpkg
|
||||
with:
|
||||
ignore-no-cache: true
|
||||
env:
|
||||
JULIA_PKG_SERVER: ${{ matrix.pkg-server }}
|
||||
|
||||
@@ -77,9 +68,9 @@ jobs:
|
||||
|
||||
- uses: julia-actions/julia-processcoverage@v1
|
||||
|
||||
- uses: codecov/codecov-action@v1
|
||||
- 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"
|
||||
|
||||
@@ -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
|
||||
|
||||
11
action.yml
11
action.yml
@@ -21,6 +21,9 @@ inputs:
|
||||
description: 'Determine if Pkg uses the cli git executable (Julia >= 1.7). Might be necessary for more complicated SSH setups.
|
||||
Options: true | false. Default : false'
|
||||
default: 'false'
|
||||
ignore-no-cache:
|
||||
description: 'Whether to ignore if there appears to be no depot caching. Silences an action notice recommending `julia-actions/cache`.'
|
||||
default: 'false'
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
@@ -29,6 +32,9 @@ runs:
|
||||
run: echo "JULIA_PKG_SERVER_REGISTRY_PREFERENCE=${JULIA_PKG_SERVER_REGISTRY_PREFERENCE:-eager}" >> ${GITHUB_ENV}
|
||||
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` ")
|
||||
end
|
||||
import Pkg
|
||||
|
||||
# Determine if Pkg uses git-cli executable instead of LibGit2
|
||||
@@ -40,7 +46,12 @@ runs:
|
||||
|
||||
|
||||
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("${{ inputs.localregistry }}")
|
||||
|
||||
Reference in New Issue
Block a user