Add initial IFRT Julia bindings #555
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Documentation | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/Documenter.yaml' | |
- 'docs/**' | |
- 'lib/**' | |
- 'src/**' | |
push: | |
branches: | |
- main | |
tags: '*' | |
paths: | |
- '.github/workflows/Documenter.yaml' | |
- 'docs/**' | |
- 'lib/**' | |
- 'src/**' | |
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: | |
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@v4 | |
- uses: julia-actions/setup-julia@v2 | |
with: | |
version: '1' | |
- uses: julia-actions/cache@v2 | |
- name: Instantiate docs environment | |
run: | | |
julia --color=yes --project=docs -e ' | |
using Pkg | |
Pkg.instantiate()' | |
env: | |
JULIA_PKG_SERVER_REGISTRY_PREFERENCE: eager | |
- name: Run doctests | |
run: | | |
julia --color=yes --project=docs -e ' | |
using Documenter: DocMeta, doctest | |
using Reactant | |
DocMeta.setdocmeta!(Reactant, :DocTestSetup, :(using Reactant); recursive=true) | |
doctest(Reactant)' | |
- name: Build documentation | |
run: julia --color=yes --project=docs docs/make.jl | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} |