Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 14 additions & 26 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
name: CI
on:
pull_request:
paths:
- '.github/workflows/CI.yml'
- 'ext/**'
- 'lib/**'
- 'src/**'
- 'test/**'
- 'Project.toml'
push:
branches:
- main
- release-*
paths:
- '.github/workflows/CI.yml'
- 'ext/**'
- 'lib/**'
- 'src/**'
- 'test/**'
- 'Project.toml'
tags: '*'

concurrency:
Expand Down Expand Up @@ -230,29 +244,3 @@ jobs:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false # or true if you want CI to fail when Codecov fails
docs:
timeout-minutes: 20
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- uses: julia-actions/cache@v2
- run: |
julia --color=yes --project=docs -e '
using Pkg
Pkg.instantiate()'
env:
JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager
- run: |
julia --color=yes --project=docs -e '
using Documenter: DocMeta, doctest
using Enzyme
DocMeta.setdocmeta!(Enzyme, :DocTestSetup, :(using Enzyme); recursive=true)
doctest(Enzyme)'
- run: julia --color=yes --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
66 changes: 66 additions & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Documentation

on:
pull_request:
paths:
- '.github/workflows/Documentation.yml'
- 'docs/**'
- 'examples/**'
- 'lib/**'
- 'src/**'
- 'Project.toml'
push:
branches:
- main
- release-*
paths:
- '.github/workflows/Documentation.yml'
- 'docs/**'
- 'examples/**'
- 'lib/**'
- 'src/**'
- 'Project.toml'
tags: '*'

concurrency:
# Same group concurrency as the `PreviewCleanup.yml` workflow, because they both
# git-push to the same branch, so we want to avoid clashes. NOTE: this is
# different from the concurrency group below, which is to cancel successive
# jobs from within the PR.
group: docs-pushing

jobs:
docs:
timeout-minutes: 20
name: Documentation
runs-on: ubuntu-latest
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
steps:
- uses: actions/checkout@v5
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- uses: julia-actions/cache@v2
- name: Instantiate docs environment
shell: julia --color=yes --project=docs {0}
run: |
using Pkg
Pkg.instantiate()
env:
JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager
- name: Run doctests
shell: julia --color=yes --project=docs {0}
run: |
using Documenter: DocMeta, doctest
using Enzyme
DocMeta.setdocmeta!(Enzyme, :DocTestSetup, :(using Enzyme); recursive=true)
doctest(Enzyme)
- name: Build the docs
run: julia --color=yes --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
5 changes: 5 additions & 0 deletions .github/workflows/PreviewCleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
pull_request:
types: [closed]

concurrency:
# Same group concurrency as the `Documentation.yml` workflow, because they both
# git-push to the same branch, so we want to avoid clashes.
group: docs-pushing

jobs:
doc-preview-cleanup:
runs-on: ubuntu-latest
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/benchmark_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ name: Benchmark a pull request

on:
pull_request:
paths:
- '.github/workflows/benchmark_pr.yml'
- 'benchmark/**'
- 'ext/**'
- 'lib/**'
- 'src/**'
- 'test/**'
- 'Project.toml'

permissions:
pull-requests: write
Expand Down
Loading