Skip to content

Commit 618df72

Browse files
committed
Modernize CI
1 parent 96320be commit 618df72

File tree

1 file changed

+15
-42
lines changed

1 file changed

+15
-42
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
name: CI
22
on:
3-
pull_request:
4-
branches:
5-
- main
63
push:
7-
branches:
8-
- main
9-
tags: '*'
4+
branches: [main, master]
5+
tags: ["*"]
6+
pull_request:
107
jobs:
118
test:
129
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -15,53 +12,29 @@ jobs:
1512
fail-fast: false
1613
matrix:
1714
version:
18-
- '1.6' # LTS version
1915
- '1' # automatically expands to the latest stable 1.x release of Julia
20-
- 'nightly'
16+
- 'min'
17+
- 'pre'
2118
os:
2219
- ubuntu-latest
20+
- windows-latest
2321
arch:
2422
- x64
2523
include:
26-
- os: windows-latest
27-
version: '1'
28-
arch: x86
24+
- os: macOS-latest
25+
arch: aarch64
26+
version: 1
2927
steps:
30-
- uses: actions/checkout@v2
31-
- uses: julia-actions/setup-julia@v1
28+
- uses: actions/checkout@v4
29+
- uses: julia-actions/setup-julia@v2
3230
with:
3331
version: ${{ matrix.version }}
3432
arch: ${{ matrix.arch }}
35-
- uses: actions/cache@v1
36-
env:
37-
cache-name: cache-artifacts
38-
with:
39-
path: ~/.julia/artifacts
40-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
41-
restore-keys: |
42-
${{ runner.os }}-test-${{ env.cache-name }}-
43-
${{ runner.os }}-test-
44-
${{ runner.os }}-
33+
- uses: julia-actions/cache@v2
4534
- uses: julia-actions/julia-buildpkg@v1
4635
- uses: julia-actions/julia-runtest@v1
4736
- uses: julia-actions/julia-processcoverage@v1
48-
- uses: codecov/codecov-action@v1
37+
- uses: codecov/codecov-action@v5
4938
with:
50-
file: lcov.info
51-
# docs:
52-
# name: Documentation
53-
# runs-on: ubuntu-latest
54-
# steps:
55-
# - uses: actions/checkout@v2
56-
# - uses: julia-actions/setup-julia@v1
57-
# with:
58-
# version: '1'
59-
# - run: |
60-
# julia --project=docs -e '
61-
# using Pkg
62-
# Pkg.develop(PackageSpec(path=pwd()))
63-
# Pkg.instantiate()'
64-
# - run: julia --project=docs docs/make.jl
65-
# env:
66-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67-
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
39+
files: lcov.info
40+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)