Skip to content

Commit ebfce8d

Browse files
committed
enable CI (still need to do the sysimage rebuilding)
1 parent e451927 commit ebfce8d

File tree

4 files changed

+84
-0
lines changed

4 files changed

+84
-0
lines changed

.github/workflows/ci.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- 'main'
7+
- 'release-*'
8+
tags: '*'
9+
concurrency:
10+
# Skip intermediate builds: all builds except for builds on the `main` or `release-*` branches
11+
# Cancel intermediate builds: only pull request builds
12+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-') || github.run_number }}
13+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
14+
jobs:
15+
test:
16+
runs-on: ${{ matrix.os }}
17+
timeout-minutes: 60
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
julia-version:
22+
- 'nightly'
23+
os:
24+
- ubuntu-latest
25+
- windows-latest
26+
julia-arch:
27+
- x64
28+
- x86
29+
include:
30+
- os: macOS-latest
31+
julia-arch: aarch64
32+
julia-version: 'nightly'
33+
- os: macOS-13
34+
julia-arch: x64
35+
julia-version: 'nightly'
36+
steps:
37+
- uses: actions/checkout@v4
38+
- uses: julia-actions/setup-julia@v2
39+
with:
40+
version: ${{ matrix.julia-version }}
41+
arch: ${{ matrix.julia-arch }}
42+
- uses: julia-actions/cache@v2
43+
- uses: julia-actions/julia-buildpkg@v1
44+
- uses: julia-actions/julia-runtest@v1
45+
- uses: julia-actions/julia-processcoverage@v1
46+
- uses: codecov/codecov-action@v4
47+
with:
48+
file: lcov.info
49+
token: ${{ secrets.CODECOV_TOKEN }}
50+
docs:
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v4
54+
- uses: julia-actions/setup-julia@v2
55+
with:
56+
version: 'nightly'
57+
- name: Generate docs
58+
run: |
59+
julia --project --color=yes -e ''
60+
julia --project --color=yes -e 'using Pkg; Pkg.respect_sysimage_versions(false); Pkg.activate("docs"); Pkg.develop(PackageSpec(path = pwd()))'
61+
julia --project=docs --color=yes docs/make.jl pdf
62+
env:
63+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest.toml
2+
Manifest-v*.*.toml
3+
docs/build

docs/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

docs/make.jl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using LinearAlgebra
2+
using Documenter: DocMeta, makedocs, deploydocs
3+
4+
DocMeta.setdocmeta!(LinearAlgebra, :DocTestSetup, :(using LinearAlgebra); recursive=true)
5+
6+
makedocs(
7+
modules = [LinearAlgebra],
8+
sitename = "LinearAlgebra",
9+
pages = Any[
10+
"LinearAlgebra" => "index.md",
11+
];
12+
warnonly = [:missing_docs, :cross_references],
13+
)
14+
15+
deploydocs(repo = "github.com/KristofferC/LinearAlgebra.jl.git")

0 commit comments

Comments
 (0)