|
1 | 1 | name: CI
|
| 2 | + |
2 | 3 | on:
|
3 | 4 | push:
|
4 |
| - branches: |
5 |
| - - master |
| 5 | + branches: "master" |
6 | 6 | tags: ['*']
|
7 | 7 | pull_request:
|
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/') }} |
| 8 | + |
13 | 9 | jobs:
|
14 | 10 | test:
|
15 |
| - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} |
| 11 | + name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.julia-arch }} |
16 | 12 | runs-on: ${{ matrix.os }}
|
17 | 13 | strategy:
|
18 | 14 | fail-fast: false
|
19 | 15 | matrix:
|
20 |
| - version: |
21 |
| - - '1.8' |
22 |
| - - 'nightly' |
| 16 | + julia-version: |
| 17 | + - "1.6" |
| 18 | + - "1" |
23 | 19 | os:
|
24 | 20 | - ubuntu-latest
|
25 |
| - arch: |
| 21 | + - macos-latest |
| 22 | + - windows-latest |
| 23 | + julia-arch: |
26 | 24 | - x64
|
27 | 25 | - x86
|
| 26 | + include: |
| 27 | + - os: ubuntu-latest |
| 28 | + prefix: xvfb-run |
| 29 | + # 32-bit Julia binaries are not available on macOS |
| 30 | + exclude: |
| 31 | + - os: macOS-latest |
| 32 | + julia-arch: x86 |
| 33 | + |
28 | 34 | steps:
|
29 |
| - - uses: actions/checkout@v2 |
| 35 | + - uses: actions/checkout@v3 |
30 | 36 | - uses: julia-actions/setup-julia@v1
|
31 | 37 | with:
|
32 |
| - version: ${{ matrix.version }} |
33 |
| - arch: ${{ matrix.arch }} |
34 |
| - - uses: julia-actions/cache@v1 |
35 |
| - - uses: julia-actions/julia-buildpkg@v1 |
36 |
| - - uses: julia-actions/julia-runtest@v1 |
37 |
| - - uses: julia-actions/julia-processcoverage@v1 |
38 |
| - - uses: codecov/codecov-action@v2 |
39 |
| - with: |
40 |
| - files: lcov.info |
41 |
| - docs: |
42 |
| - name: Documentation |
43 |
| - runs-on: ubuntu-latest |
44 |
| - permissions: |
45 |
| - contents: write |
46 |
| - statuses: write |
47 |
| - steps: |
48 |
| - - uses: actions/checkout@v2 |
49 |
| - - uses: julia-actions/setup-julia@v1 |
50 |
| - with: |
51 |
| - version: '1' |
52 |
| - - uses: julia-actions/julia-buildpkg@v1 |
53 |
| - - uses: julia-actions/julia-docdeploy@v1 |
| 38 | + version: ${{ matrix.julia-version }} |
| 39 | + arch: ${{ matrix.julia-arch }} |
| 40 | + - name: Cache artifacts |
| 41 | + uses: actions/cache@v3 |
54 | 42 | env:
|
55 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
56 |
| - - run: | |
57 |
| - julia --project=docs -e ' |
58 |
| - using Documenter: DocMeta, doctest |
59 |
| - using GtkMarkdownTextView |
60 |
| - DocMeta.setdocmeta!(GtkMarkdownTextView, :DocTestSetup, :(using GtkMarkdownTextView); recursive=true) |
61 |
| - doctest(GtkMarkdownTextView)' |
| 43 | + cache-name: cache-artifacts |
| 44 | + with: |
| 45 | + path: ~/.julia/artifacts |
| 46 | + key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} |
| 47 | + restore-keys: | |
| 48 | + ${{ runner.os }}-test-${{ env.cache-name }}- |
| 49 | + ${{ runner.os }}-test- |
| 50 | + ${{ runner.os }}- |
| 51 | + - uses: julia-actions/julia-buildpkg@latest |
0 commit comments