Skip to content

Commit 297ecb9

Browse files
authored
Create ci.yml
1 parent 0b9f443 commit 297ecb9

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/ci.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- release-*
7+
pull_request:
8+
types: [opened, synchronize, reopened]
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/') }}
14+
# needed to allow julia-actions/cache to delete old caches that it has created
15+
permissions:
16+
actions: write
17+
contents: read
18+
jobs:
19+
test:
20+
name: Julia ${{ matrix.machine.version }} - ${{ matrix.machine.os }}-${{ matrix.machine.arch }}
21+
runs-on: ${{ matrix.machine.os }}
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
machine:
26+
- version: 'nightly'
27+
os: ubuntu-latest
28+
arch: x64
29+
- version: '1'
30+
os: ubuntu-latest
31+
arch: x64
32+
- version: '1'
33+
os: windows-latest
34+
arch: x64
35+
- version: '1.6'
36+
os: ubuntu-latest
37+
arch: x64
38+
- version: '1'
39+
os: ubuntu-latest
40+
arch: x86
41+
steps:
42+
- uses: actions/checkout@v4
43+
- uses: julia-actions/setup-julia@v2
44+
with:
45+
version: ${{ matrix.machine.version }}
46+
arch: ${{ matrix.machine.arch }}
47+
- uses: julia-actions/cache@v1
48+
- uses: julia-actions/julia-buildpkg@v1
49+
- uses: julia-actions/julia-runtest@v1
50+
- uses: julia-actions/julia-processcoverage@v1
51+
- uses: codecov/codecov-action@v4
52+
with:
53+
file: lcov.info
54+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)