-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
112 additions
and
38 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,62 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: '*' | ||
pull_request: | ||
|
||
jobs: | ||
run_tests: | ||
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: | ||
- '1.6' | ||
- '1.7' | ||
- '1.8' | ||
- 'nightly' | ||
os: | ||
- ubuntu-latest | ||
- macOS-latest | ||
- windows-latest | ||
arch: | ||
- x64 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.version }} | ||
arch: ${{ matrix.arch }} | ||
- uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-artifacts | ||
with: | ||
path: ~/.julia/artifacts | ||
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} | ||
restore-keys: | | ||
${{ runner.os }}-test-${{ env.cache-name }}- | ||
${{ runner.os }}-test- | ||
${{ runner.os }}- | ||
- uses: julia-actions/julia-buildpkg@latest | ||
- uses: julia-actions/julia-runtest@latest | ||
build_docs: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: julia-actions/setup-julia@latest | ||
with: | ||
version: '1.6' | ||
- name: Install dependencies 1 | ||
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 | ||
- name: Install dependencies 2 | ||
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' | ||
- name: Build and deploy | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key | ||
run: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' | ||
julia --project=docs/ docs/make.jl |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
build/ | ||
site/ | ||
Manifest.toml | ||
.vscode | ||
build/ |
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,7 @@ | ||
name = "docs" | ||
uuid = "62e1ee44-cd95-4c49-9bc9-2700b14f8531" | ||
authors = ["tduretz <[email protected]>"] | ||
version = "0.1.0" | ||
|
||
[deps] | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" |
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 |
---|---|---|
@@ -1,12 +1,40 @@ | ||
push!(LOAD_PATH,"../src/") | ||
using SeismicQ | ||
using Documenter | ||
makedocs( | ||
sitename = "SeismicQ.jl", | ||
modules = [SeismicQ], | ||
pages=[ | ||
"Home" => "index.md" | ||
]) | ||
deploydocs(; | ||
repo="github.com/tduretz/SeismicQ.jl", | ||
) | ||
using Documenter, SeismicQ | ||
push!(LOAD_PATH, "../src/") | ||
|
||
@info "Making documentation..." | ||
makedocs(; | ||
sitename="SeismicQ.jl", | ||
authors="Cleedi Team", | ||
modules=[SeismicQ], | ||
format=Documenter.HTML(; prettyurls=get(ENV, "CI", nothing) == "true"), # easier local build | ||
pages=[ | ||
"Home" => "index.md", | ||
# "User Guide" => Any[ | ||
# "GeoUnit" => "man/geounit.md", | ||
# "Nondimensionalization" => "man/nondimensionalize.md", | ||
# "Material Parameters" => "man/materialparameters.md", | ||
# "Density" => "man/density.md", | ||
# "Creep laws" => "man/creeplaws.md", | ||
# "Custom rheology" => "man/customrheology.md", | ||
# "Elasticity" => "man/elasticity.md", | ||
# "Plasticity" => "man/plasticity.md", | ||
# "Heat Capacity" => "man/heatcapacity.md", | ||
# "Conductivity" => "man/conductivity.md", | ||
# "Latent heat" => "man/latentheat.md", | ||
# "Radioactive heat" => "man/radioactiveheating.md", | ||
# "Shear heating" => "man/shearheating.md", | ||
# "Gravity" => "man/gravity.md", | ||
# "Partial Melting" => "man/melting.md", | ||
# "TAS classification" => "man/TASclassification.md", | ||
# "Zircon Ages" => "man/zirconages.md", | ||
# "Phase Diagrams" => "man/phasediagrams.md", | ||
# "Seismic Velocity" => "man/seismicvelocity.md", | ||
# "1D Strength Envelope" => "man/strengthenvelope.md" | ||
# ], | ||
# "Plotting" => "man/plotting.md", | ||
# "List of functions" => "man/listfunctions.md", | ||
# "Contributing" => "man/contributing.md", | ||
], | ||
) | ||
|
||
deploydocs(; repo="github.com/tduretz/SeismicQ.jl.git", devbranch="main") |