Skip to content

Commit f72066b

Browse files
committed
fix CI setup
1 parent 0f74c78 commit f72066b

File tree

2 files changed

+79
-55
lines changed

2 files changed

+79
-55
lines changed

.github/workflows/CI.yml

+26-55
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
name: CI
2+
23
on:
34
schedule:
45
- cron: '0 6 * * *' # Daily at 6 AM UTC (2 AM EST)
56
pull_request:
67
push:
78
branches:
89
- main
9-
tags: '*'
10+
tags:
11+
- '*'
1012
workflow_dispatch:
13+
1114
jobs:
1215
test:
1316
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -16,19 +19,30 @@ jobs:
1619
strategy:
1720
fail-fast: false
1821
matrix:
19-
version:
20-
- '1.10'
21-
- 'nightly'
22-
os:
23-
- ubuntu-latest
24-
- macOS-latest
25-
# FIXME - windows-latest
26-
arch:
27-
- x64
2822
include:
29-
- version: 'nightly'
23+
- version: '1' # current stable
24+
os: ubuntu-latest
25+
arch: x64
26+
allow_failure: false
27+
- version: '1.11-nightly' # next release
28+
os: ubuntu-latest
29+
arch: x64
3030
allow_failure: true
31-
- version: '^1.10.0-0'
31+
- version: 'nightly' # dev channel
32+
os: ubuntu-latest
33+
arch: x64
34+
allow_failure: true
35+
- version: '1.10.0' # minimum supported version
36+
os: ubuntu-latest
37+
arch: x64
38+
allow_failure: false
39+
- version: '1' # x64 macOS
40+
os: macos-latest
41+
arch: x64
42+
allow_failure: false
43+
- version: '1' # x64 windows
44+
os: windows-latest
45+
arch: x64
3246
allow_failure: false
3347
steps:
3448
- uses: actions/checkout@v4
@@ -52,46 +66,3 @@ jobs:
5266
- uses: codecov/codecov-action@v1
5367
with:
5468
file: lcov.info
55-
56-
build_terminology_latex:
57-
name: Build Terminology LaTeX
58-
runs-on: ubuntu-latest
59-
steps:
60-
- name: Set up Git repository
61-
uses: actions/checkout@v4
62-
- name: Compile LaTeX document
63-
uses: xu-cheng/texlive-action/full@v1
64-
with:
65-
run: |
66-
cd docs/terminology
67-
latexmk -pdf -shell-escape terminology.tex
68-
- name: Upload Artifact
69-
uses: actions/upload-artifact@v4
70-
with:
71-
name: terminology
72-
path: docs/terminology/terminology.pdf
73-
74-
docs:
75-
name: Documentation
76-
runs-on: ubuntu-latest
77-
needs: build_terminology_latex
78-
steps:
79-
- uses: actions/checkout@v4
80-
- uses: julia-actions/setup-julia@v1
81-
with:
82-
version: '^1.10.0-0'
83-
- name: Download Terminology
84-
uses: actions/download-artifact@v4
85-
with:
86-
name: terminology
87-
path: docs/src/
88-
- name: Build Docs
89-
run: |
90-
julia --project=docs -e '
91-
using Pkg
92-
Pkg.develop(PackageSpec(path=pwd()))
93-
Pkg.instantiate()
94-
include("docs/make.jl")'
95-
env:
96-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/Docs.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Docs
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
tags:
9+
- '*'
10+
workflow_dispatch:
11+
12+
jobs:
13+
build_terminology_latex:
14+
name: Build Terminology LaTeX
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Set up Git repository
18+
uses: actions/checkout@v4
19+
- name: Compile LaTeX document
20+
uses: xu-cheng/texlive-action/full@v1
21+
with:
22+
run: |
23+
cd docs/terminology
24+
latexmk -pdf -shell-escape terminology.tex
25+
- name: Upload Artifact
26+
uses: actions/upload-artifact@v4
27+
with:
28+
name: terminology
29+
path: docs/terminology/terminology.pdf
30+
docs:
31+
name: Documenter build
32+
runs-on: ubuntu-latest
33+
needs: build_terminology_latex
34+
steps:
35+
- uses: actions/checkout@v4
36+
- uses: julia-actions/setup-julia@v1
37+
with:
38+
version: '^1.10.0-0'
39+
- name: Download Terminology
40+
uses: actions/download-artifact@v4
41+
with:
42+
name: terminology
43+
path: docs/src/
44+
- name: Build Docs
45+
run: |
46+
julia --project=docs -e '
47+
using Pkg
48+
Pkg.develop(PackageSpec(path=pwd()))
49+
Pkg.instantiate()
50+
include("docs/make.jl")'
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)