Skip to content

add external examples #15

add external examples

add external examples #15

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
types: [review_requested,reopened,synchronize]
push:
branches:
- 'main'
tags: '*'
check_run:
types: [rerequested]
schedule:
- cron: '0 8 * * 1' # Run at 8:00 AM UTC every Monday
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
examples:
name: Examples
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1.11'
- uses: julia-actions/cache@v1
- uses: actions/cache@v3
id: examples
with:
path: |
docs/src/examples
docs/src/autogenerated
key: ${{ github.sha }}
- name: Build examples
run: |
julia -e 'using Pkg; Pkg.add("Weave"); Pkg.precompile()'
make examples-setup
make examples
docs:
name: Documentation
runs-on: ubuntu-latest
needs: examples
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: '1.11'
- uses: actions/cache@v3
id: examples
with:
path: |
docs/src/examples
docs/src/autogenerated
key: ${{ github.sha }}
- uses: julia-actions/cache@v1
- name: Build documentation
run: |
make docs-setup
make docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}