|
1 | | -name: Documentation |
2 | | - |
3 | | -on: |
4 | | - push: |
5 | | - branches: |
6 | | - - master |
7 | | - - v10 |
8 | | - - 'as/su-v4' |
9 | | - tags: '*' |
10 | | - pull_request: |
11 | | - |
12 | | -concurrency: |
13 | | - # Skip intermediate builds: always, but for the master branch. |
14 | | - # Cancel intermediate builds: always, but for the master branch. |
15 | | - group: ${{ github.workflow }}-${{ github.ref }} |
16 | | - cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.refs != 'refs/tags/*'}} |
17 | | - |
18 | | -jobs: |
19 | | - build: |
20 | | - runs-on: ubuntu-latest |
21 | | - steps: |
22 | | - - uses: actions/checkout@v6 |
23 | | - - uses: julia-actions/setup-julia@latest |
24 | | - with: |
25 | | - version: 'lts' |
26 | | - - run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev |
27 | | - - name: Install dependencies |
28 | | - run: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=docs/ -e 'using Pkg; Pkg.develop([PackageSpec(path=pwd()), PackageSpec(path=joinpath(pwd(), "lib", "ModelingToolkitBase")), PackageSpec(path=joinpath(pwd(), "lib", "SciCompDSL"))]); Pkg.instantiate()' |
29 | | - - name: Build and deploy |
30 | | - env: |
31 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token |
32 | | - DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key |
33 | | - JULIA_DEBUG: "Documenter" |
34 | | - run: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=docs/ --code-coverage=user docs/make.jl |
35 | | - - uses: julia-actions/julia-processcoverage@v1 |
36 | | - - uses: codecov/codecov-action@v6 |
37 | | - with: |
38 | | - files: lcov.info |
39 | | - token: ${{ secrets.CODECOV_TOKEN }} |
40 | | - fail_ci_if_error: true |
| 1 | +name: Documentation |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master |
| 7 | + - v10 |
| 8 | + - 'as/su-v4' |
| 9 | + tags: '*' |
| 10 | + pull_request: |
| 11 | + |
| 12 | +concurrency: |
| 13 | + # Skip intermediate builds: always, but for the master branch. |
| 14 | + # Cancel intermediate builds: always, but for the master branch. |
| 15 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 16 | + cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.refs != 'refs/tags/*'}} |
| 17 | + |
| 18 | +jobs: |
| 19 | + build: |
| 20 | + runs-on: ubuntu-latest |
| 21 | + steps: |
| 22 | + - uses: actions/checkout@v6 |
| 23 | + - uses: julia-actions/setup-julia@latest |
| 24 | + with: |
| 25 | + version: 'lts' |
| 26 | + - run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev |
| 27 | + - name: Install dependencies |
| 28 | + run: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=docs/ -e 'using Pkg; Pkg.develop([PackageSpec(path=pwd()), PackageSpec(path=joinpath(pwd(), "lib", "ModelingToolkitBase")), PackageSpec(path=joinpath(pwd(), "lib", "SciCompDSL"))]); Pkg.instantiate()' |
| 29 | + - name: Build and deploy |
| 30 | + env: |
| 31 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token |
| 32 | + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key |
| 33 | + JULIA_DEBUG: "Documenter" |
| 34 | + run: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=docs/ --code-coverage=user docs/make.jl |
| 35 | + - uses: julia-actions/julia-processcoverage@v1 |
| 36 | + - uses: codecov/codecov-action@v6 |
| 37 | + with: |
| 38 | + files: lcov.info |
| 39 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 40 | + fail_ci_if_error: true |
0 commit comments