Skip to content

Commit

Permalink
build and test on other operating systems
Browse files Browse the repository at this point in the history
  • Loading branch information
tlnagy committed Jan 11, 2024
1 parent 313d0cd commit 4e43fea
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,19 @@ permissions:

jobs:
docs:
name: Build demo site
runs-on: ubuntu-latest
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
arch:
- x64
steps:
- uses: actions/checkout@v3

Expand All @@ -26,9 +37,12 @@ jobs:
uses: actions/cache/restore@v3
with:
path: data/
key: ${{ runner.os }}-dataset
key: ${{ matrix.os }}-dataset

- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- run: |
Expand Down
13 changes: 9 additions & 4 deletions site/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ makedocs(

postprocess_cb()

deploydocs(
repo = "github.com/tlnagy/Nagy_2023_SwellMigration.git",
versions=nothing
)
# only deploy if we're on the ubuntu Github worker
if haskey(ENV, "CI") && Sys.islinux()
deploydocs(
repo = "github.com/tlnagy/Nagy_2023_SwellMigration.git",
versions=nothing
)
else
@info "Skipping deployment"
end

0 comments on commit 4e43fea

Please sign in to comment.