-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1001 from JuliaRobotics/24Q1/docs/ownci
Docs Ci/CD separate yml
- Loading branch information
Showing
3 changed files
with
53 additions
and
38 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: CI/CD Docs | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
docs: | ||
name: 'Build Docs' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- jlenv: 'docs/' | ||
makejl: 'docs/make.jl' | ||
# - jlenv: 'docs/pdf/' | ||
# makejl: 'docs/pdf/make.jl' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: '1.10' | ||
arch: x64 | ||
- name: 'Pkgs for Docs on ${{ github.head_ref }}' | ||
run: | | ||
export JULIA_PKG_SERVER="" | ||
[ '${{ github.ref }}' == 'refs/heads/master' ] && export CJL_DOCS_BRANCH="master" || export CJL_DOCS_BRANCH="${{ github.head_ref }}" | ||
export JULIA_PKG_PRECOMPILE_AUTO=0 | ||
julia -e 'println("Julia gets branch: ",ENV["CJL_DOCS_BRANCH"])' | ||
julia --project=${{ matrix.jlenv }} --check-bounds=yes -e 'using Pkg; Pkg.instantiate(); Pkg.add(PackageSpec(name="Caesar", rev=ENV["CJL_DOCS_BRANCH"]))' | ||
julia --project=${{ matrix.jlenv }} -e 'using Pkg; Pkg.add(PackageSpec(name="RoME", rev="master"))' | ||
julia --project=${{ matrix.jlenv }} -e 'using Pkg; Pkg.add(PackageSpec(name="RoMEPlotting", rev="master"))' | ||
julia --project=${{ matrix.jlenv }} -e 'using Pkg; Pkg.add(PackageSpec(name="KernelDensityEstimatePlotting", rev="master"))' | ||
julia --project=${{ matrix.jlenv }} -e 'using Pkg; Pkg.add(PackageSpec(name="IncrementalInference", rev="master"))' | ||
- name: 'Docs make.jl' | ||
run: | | ||
export JULIA_PKG_PRECOMPILE_AUTO=0 | ||
export DOCUMENTER_DEBUG="true" | ||
julia --project=${{ matrix.jlenv }} --color=yes ${{ matrix.makejl }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | ||
JULIA_PKG_SERVER: "" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,45 +126,13 @@ jobs: | |
git config --global user.email [email protected] | ||
- name: Run tests on Upstream Dev | ||
run: | | ||
export JULIA_PKG_PRECOMPILE_AUTO=0 | ||
julia --project=@. --check-bounds=yes -e 'using Pkg; Pkg.add(PackageSpec(name="RoME",rev="master"));' | ||
julia --project=@. --check-bounds=yes -e 'using Pkg; Pkg.add(PackageSpec(name="IncrementalInference",rev="master"));' | ||
julia --project=@. --check-bounds=yes -e 'using Pkg; Pkg.add(PackageSpec(name="ApproxManifoldProducts",rev="master"));' | ||
julia --project=@. --check-bounds=yes -e 'using Pkg; Pkg.add(PackageSpec(name="DistributedFactorGraphs",rev="master"));' | ||
unset JULIA_PKG_PRECOMPILE_AUTO | ||
julia --project=@. --check-bounds=yes -e 'using Pkg; Pkg.test("Caesar"; coverage=false)' | ||
shell: bash | ||
|
||
docs: | ||
name: 'Build Docs' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- jlenv: 'docs/' | ||
makejl: 'docs/make.jl' | ||
# - jlenv: 'docs/pdf/' | ||
# makejl: 'docs/pdf/make.jl' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: '1.10' | ||
- name: 'Pkgs for Docs on ${{ github.head_ref }}' | ||
run: | | ||
export JULIA_PKG_SERVER="" | ||
[ '${{ github.ref }}' == 'refs/heads/master' ] && export CJL_DOCS_BRANCH="master" || export CJL_DOCS_BRANCH="${{ github.head_ref }}" | ||
export JULIA_PKG_PRECOMPILE_AUTO=0 | ||
julia -e 'println("Julia gets branch: ",ENV["CJL_DOCS_BRANCH"])' | ||
julia --project=${{ matrix.jlenv }} --check-bounds=yes -e 'using Pkg; Pkg.instantiate(); Pkg.add(PackageSpec(name="Caesar", rev=ENV["CJL_DOCS_BRANCH"]))' | ||
julia --project=${{ matrix.jlenv }} -e 'using Pkg; Pkg.add(PackageSpec(name="RoME", rev="master"))' | ||
julia --project=${{ matrix.jlenv }} -e 'using Pkg; Pkg.add(PackageSpec(name="RoMEPlotting", rev="master"))' | ||
julia --project=${{ matrix.jlenv }} -e 'using Pkg; Pkg.add(PackageSpec(name="KernelDensityEstimatePlotting", rev="master"))' | ||
julia --project=${{ matrix.jlenv }} -e 'using Pkg; Pkg.add(PackageSpec(name="IncrementalInference", rev="master"))' | ||
- name: 'Docs make.jl' | ||
run: | | ||
export DOCUMENTER_DEBUG="true" | ||
export JULIA_PKG_PRECOMPILE_AUTO=0 | ||
julia --project=${{ matrix.jlenv }} --color=yes ${{ matrix.makejl }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | ||
JULIA_PKG_SERVER: "" | ||
|
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