Cache artifacts in Travis, AppVeyor, GitHubActions, and Cirrus (#173)

This commit is contained in:
Chris de Graaf 2020-05-27 15:05:47 -05:00 committed by GitHub
parent 88774305b8
commit ab075ca47d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 64 additions and 0 deletions

View File

@ -8,6 +8,8 @@ platform:
{{#PLATFORMS}}
- {{{.}}}
{{/PLATFORMS}}
cache:
- '%USERPROFILE%\.julia\artifacts'
{{#HAS_ALLOW_FAILURES}}
matrix:
allow_failures:

View File

@ -2,6 +2,8 @@ freebsd_instance:
image: {{{IMAGE}}}
task:
name: FreeBSD
artifacts_cache:
folder: ~/.julia/artifacts
env:
{{#VERSIONS}}
JULIA_VERSION: {{{.}}}

View File

@ -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>>

View File

@ -14,6 +14,9 @@ arch:
{{#ARCH}}
- {{{.}}}
{{/ARCH}}
cache:
directories:
- ~/.julia/artifacts
jobs:
fast_finish: true
{{#HAS_ALLOW_FAILURES}}

View File

@ -6,6 +6,8 @@ environment:
- julia_version: nightly
platform:
- x64
cache:
- '%USERPROFILE%\.julia\artifacts'
matrix:
allow_failures:
- julia_version: nightly

View File

@ -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

View File

@ -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

View File

@ -12,6 +12,9 @@ os:
- windows
arch:
- x64
cache:
directories:
- ~/.julia/artifacts
jobs:
fast_finish: true
allow_failures:

View File

@ -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:

View File

@ -12,6 +12,9 @@ os:
- windows
arch:
- x64
cache:
directories:
- ~/.julia/artifacts
jobs:
fast_finish: true
allow_failures:

View File

@ -6,6 +6,8 @@ environment:
platform:
- x64
- x86
cache:
- '%USERPROFILE%\.julia\artifacts'
branches:
only:
- master

View File

@ -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

View File

@ -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

View File

@ -12,6 +12,9 @@ arch:
- x64
- x86
- arm64
cache:
directories:
- ~/.julia/artifacts
jobs:
fast_finish: true
exclude: