Cache artifacts in Travis, AppVeyor, GitHubActions, and Cirrus (#173)
This commit is contained in:
parent
88774305b8
commit
ab075ca47d
|
@ -8,6 +8,8 @@ platform:
|
|||
{{#PLATFORMS}}
|
||||
- {{{.}}}
|
||||
{{/PLATFORMS}}
|
||||
cache:
|
||||
- '%USERPROFILE%\.julia\artifacts'
|
||||
{{#HAS_ALLOW_FAILURES}}
|
||||
matrix:
|
||||
allow_failures:
|
||||
|
|
|
@ -2,6 +2,8 @@ freebsd_instance:
|
|||
image: {{{IMAGE}}}
|
||||
task:
|
||||
name: FreeBSD
|
||||
artifacts_cache:
|
||||
folder: ~/.julia/artifacts
|
||||
env:
|
||||
{{#VERSIONS}}
|
||||
JULIA_VERSION: {{{.}}}
|
||||
|
|
|
@ -36,6 +36,16 @@ jobs:
|
|||
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: julia-actions/julia-buildpkg@latest
|
||||
- uses: julia-actions/julia-runtest@latest
|
||||
<<#HAS_CODECOV>>
|
||||
|
|
|
@ -14,6 +14,9 @@ arch:
|
|||
{{#ARCH}}
|
||||
- {{{.}}}
|
||||
{{/ARCH}}
|
||||
cache:
|
||||
directories:
|
||||
- ~/.julia/artifacts
|
||||
jobs:
|
||||
fast_finish: true
|
||||
{{#HAS_ALLOW_FAILURES}}
|
||||
|
|
|
@ -6,6 +6,8 @@ environment:
|
|||
- julia_version: nightly
|
||||
platform:
|
||||
- x64
|
||||
cache:
|
||||
- '%USERPROFILE%\.julia\artifacts'
|
||||
matrix:
|
||||
allow_failures:
|
||||
- julia_version: nightly
|
||||
|
|
|
@ -2,6 +2,8 @@ freebsd_instance:
|
|||
image: freebsd-12-0-release-amd64
|
||||
task:
|
||||
name: FreeBSD
|
||||
artifacts_cache:
|
||||
folder: ~/.julia/artifacts
|
||||
env:
|
||||
JULIA_VERSION: 1.0
|
||||
JULIA_VERSION: 1.4
|
||||
|
|
|
@ -24,6 +24,16 @@ jobs:
|
|||
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: julia-actions/julia-buildpkg@latest
|
||||
- uses: julia-actions/julia-runtest@latest
|
||||
- uses: julia-actions/julia-uploadcodecov@latest
|
||||
|
|
|
@ -12,6 +12,9 @@ os:
|
|||
- windows
|
||||
arch:
|
||||
- x64
|
||||
cache:
|
||||
directories:
|
||||
- ~/.julia/artifacts
|
||||
jobs:
|
||||
fast_finish: true
|
||||
allow_failures:
|
||||
|
|
|
@ -24,6 +24,16 @@ jobs:
|
|||
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: julia-actions/julia-buildpkg@latest
|
||||
- uses: julia-actions/julia-runtest@latest
|
||||
docs:
|
||||
|
|
|
@ -12,6 +12,9 @@ os:
|
|||
- windows
|
||||
arch:
|
||||
- x64
|
||||
cache:
|
||||
directories:
|
||||
- ~/.julia/artifacts
|
||||
jobs:
|
||||
fast_finish: true
|
||||
allow_failures:
|
||||
|
|
|
@ -6,6 +6,8 @@ environment:
|
|||
platform:
|
||||
- x64
|
||||
- x86
|
||||
cache:
|
||||
- '%USERPROFILE%\.julia\artifacts'
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
|
|
|
@ -2,6 +2,8 @@ freebsd_instance:
|
|||
image: freebsd-123
|
||||
task:
|
||||
name: FreeBSD
|
||||
artifacts_cache:
|
||||
folder: ~/.julia/artifacts
|
||||
env:
|
||||
JULIA_VERSION: 1.1
|
||||
JULIA_VERSION: 1.2
|
||||
|
|
|
@ -28,5 +28,15 @@ jobs:
|
|||
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: julia-actions/julia-buildpkg@latest
|
||||
- uses: julia-actions/julia-runtest@latest
|
||||
|
|
|
@ -12,6 +12,9 @@ arch:
|
|||
- x64
|
||||
- x86
|
||||
- arm64
|
||||
cache:
|
||||
directories:
|
||||
- ~/.julia/artifacts
|
||||
jobs:
|
||||
fast_finish: true
|
||||
exclude:
|
||||
|
|
Loading…
Reference in New Issue