Skip to content

Commit

Permalink
enable CI (still need to do the sysimage rebuilding)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Nov 14, 2024
1 parent e451927 commit afc5fac
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: CI
on:
pull_request:
push:
branches:
- 'main'
- 'release-*'
tags: '*'
concurrency:
# Skip intermediate builds: all builds except for builds on the `main` or `release-*` branches
# Cancel intermediate builds: only pull request builds
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-') || github.run_number }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
julia-version:
- 'nightly'
os:
- ubuntu-latest
- windows-latest
julia-arch:
- x64
- x86
include:
- os: macOS-latest
julia-arch: aarch64
julia-version: 'nightly'
- os: macOS-13
julia-arch: x64
julia-version: 'nightly'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v4
with:
file: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: 'nightly'
- name: Generate docs
run: |
julia --project --color=yes -e ''
julia --project --color=yes -e 'using Pkg; Pkg.respect_sysimage_versions(false); Pkg.activate("docs"); Pkg.develop(PackageSpec(path = pwd()))'
julia --project=docs --color=yes docs/make.jl pdf
env:
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest.toml
Manifest-v*.*.toml
docs/build
3 changes: 3 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
16 changes: 16 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using LinearAlgebra
using Documenter: DocMeta, makedocs, deploydocs

DocMeta.setdocmeta!(LinearAlgebra, :DocTestSetup, :(using LinearAlgebra); recursive=true)

makedocs(
modules = [LinearAlgebra],
sitename = "LinearAlgebra",
size_threshold = 600 * 2^10, # 600 KiB
pages = Any[
"LinearAlgebra" => "index.md",
];
warnonly = [:missing_docs, :cross_references],
)

deploydocs(repo = "github.com/KristofferC/LinearAlgebra.jl.git")

0 comments on commit afc5fac

Please sign in to comment.