Skip to content

Commit 12a0e27

Browse files
authored
Improve CI (#52)
* Improve CI * Simplify name
1 parent 031f7f4 commit 12a0e27

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/CI.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
name: CI
2+
23
on:
3-
- push
4-
- pull_request
4+
push:
5+
branches: [master]
6+
pull_request:
7+
8+
concurrency:
9+
# Skip intermediate builds: always.
10+
# Cancel intermediate builds: only if it is a pull request build.
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
13+
514
jobs:
615
test:
7-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
16+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
817
runs-on: ${{ matrix.os }}
918
continue-on-error: ${{ matrix.version == 'nightly' }}
1019
strategy:
@@ -25,16 +34,7 @@ jobs:
2534
with:
2635
version: ${{ matrix.version }}
2736
arch: ${{ matrix.arch }}
28-
- uses: actions/cache@v1
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 }}-
37+
- uses: julia-actions/cache@v1
3838
- uses: julia-actions/julia-buildpkg@v1
3939
- uses: julia-actions/julia-runtest@v1
4040
- uses: julia-actions/julia-processcoverage@v1

0 commit comments

Comments
 (0)