mirror of
https://github.com/julia-actions/julia-buildpkg.git
synced 2026-02-12 01:16:54 +08:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e85a72e789 | ||
|
|
8e4b7ee508 | ||
|
|
a2be14d86d | ||
|
|
4ac6b31e10 | ||
|
|
fdc6cd6ae7 | ||
|
|
e3eb439fad | ||
|
|
d36834d834 | ||
|
|
98b1bc2639 | ||
|
|
cec9c38577 |
2
.github/workflows/backup.yml
vendored
2
.github/workflows/backup.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Configure cache
|
- name: Configure cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
${{ env.GITHUB_WORKSPACE }}
|
${{ env.GITHUB_WORKSPACE }}
|
||||||
|
|||||||
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -40,7 +40,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Example.jl
|
- name: Checkout Example.jl
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v5
|
||||||
with:
|
with:
|
||||||
repository: julia-actions/Example.jl
|
repository: julia-actions/Example.jl
|
||||||
|
|
||||||
@@ -49,11 +49,11 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Checkout julia-buildpkg
|
- name: Checkout julia-buildpkg
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v5
|
||||||
with:
|
with:
|
||||||
path: ./.github/actions/julia-buildpkg
|
path: ./.github/actions/julia-buildpkg
|
||||||
|
|
||||||
- uses: julia-actions/setup-julia@v1
|
- uses: julia-actions/setup-julia@v2
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.version }}
|
version: ${{ matrix.version }}
|
||||||
arch: ${{ matrix.arch }}
|
arch: ${{ matrix.arch }}
|
||||||
@@ -68,9 +68,9 @@ jobs:
|
|||||||
|
|
||||||
- uses: julia-actions/julia-processcoverage@v1
|
- uses: julia-actions/julia-processcoverage@v1
|
||||||
|
|
||||||
- uses: codecov/codecov-action@v3
|
- uses: codecov/codecov-action@v5
|
||||||
with:
|
with:
|
||||||
file: lcov.info
|
files: lcov.info
|
||||||
|
|
||||||
- name: Verify that test output file exists
|
- name: Verify that test output file exists
|
||||||
run: test -f "$HOME/julia-buildpkg"
|
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:
|
And example workflow that uses this action might look like this:
|
||||||
|
|
||||||
```
|
```yaml
|
||||||
name: Run tests
|
name: Run tests
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
@@ -26,8 +26,8 @@ jobs:
|
|||||||
julia-arch: x86
|
julia-arch: x86
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v5
|
||||||
- uses: julia-actions/setup-julia@v1
|
- uses: julia-actions/setup-julia@v2
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.julia-version }}
|
version: ${{ matrix.julia-version }}
|
||||||
- uses: julia-actions/julia-buildpkg@v1
|
- uses: julia-actions/julia-buildpkg@v1
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
- run: |
|
- run: |
|
||||||
if "${{ inputs.ignore-no-cache }}" == "false" && !isdir(DEPOT_PATH[1])
|
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
|
end
|
||||||
import Pkg
|
import Pkg
|
||||||
|
|
||||||
@@ -46,7 +46,12 @@ runs:
|
|||||||
|
|
||||||
|
|
||||||
if VERSION >= v"1.5-"
|
if VERSION >= v"1.5-"
|
||||||
|
if VERSION >= v"1.8-"
|
||||||
|
# Install the default registries
|
||||||
|
Pkg.Registry.add()
|
||||||
|
else
|
||||||
Pkg.Registry.add("General")
|
Pkg.Registry.add("General")
|
||||||
|
end
|
||||||
|
|
||||||
# If provided add local registries
|
# If provided add local registries
|
||||||
if !isempty("${{ inputs.localregistry }}")
|
if !isempty("${{ inputs.localregistry }}")
|
||||||
|
|||||||
Reference in New Issue
Block a user