Skip to content

Commit c88f560

Browse files
authored
take CI.yml from SpeedyWeather.jl
1 parent cd6cd1a commit c88f560

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/CI.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,20 @@
11
name: CI
22
on:
3+
pull_request:
4+
branches:
5+
- main
36
push:
47
branches:
58
- main
6-
tags: ['*']
7-
pull_request:
8-
workflow_dispatch:
9-
concurrency:
10-
# Skip intermediate builds: always.
11-
# Cancel intermediate builds: only if it is a pull request build.
12-
group: ${{ github.workflow }}-${{ github.ref }}
13-
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
149
jobs:
1510
test:
16-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
1711
runs-on: ${{ matrix.os }}
18-
timeout-minutes: 60
19-
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
20-
actions: write
21-
contents: read
2212
strategy:
23-
fail-fast: false
2413
matrix:
2514
version:
26-
- '1.10'
2715
- '1.8'
28-
- 'nightly'
16+
- '1.9'
17+
- '1.10'
2918
os:
3019
- ubuntu-latest
3120
arch:
@@ -36,6 +25,17 @@ jobs:
3625
with:
3726
version: ${{ matrix.version }}
3827
arch: ${{ matrix.arch }}
39-
- uses: julia-actions/cache@v1
28+
- uses: actions/cache@v3
29+
env:
30+
cache-name: cache-artifacts
31+
with:
32+
path: ~/.julia/artifacts
33+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
34+
restore-keys: |
35+
${{ runner.os }}-test-${{ env.cache-name }}-
36+
${{ runner.os }}-test-
37+
${{ runner.os }}-
4038
- uses: julia-actions/julia-buildpkg@v1
4139
- uses: julia-actions/julia-runtest@v1
40+
env:
41+
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)