Skip to content

Commit

Permalink
Build documentation, test different providers and number of threads
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Dec 25, 2020
1 parent 29c199d commit d63001e
Showing 1 changed file with 45 additions and 3 deletions.
48 changes: 45 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,53 @@
name: CI

on:
pull_request:
push:
branches:
- master
tags: '*'

jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} - provider ${{ matrix.provider }} - ${{ matrix.threads }} thread(s)
runs-on: ${{ matrix.os }}
env:
JULIA_FFTW_PROVIDER: ${{ matrix.provider }}
JULIA_NUM_THREADS: ${{ matrix.threads }}
strategy:
fail-fast: false
matrix:
provider:
- 'FFTW'
- 'MKL'
version:
- '1.3'
# - 'nightly'
- 'nightly'
os:
- ubuntu-latest
- macOS-latest
- windows-latest
threads:
- '1'
arch:
- x64
- x86
include:
- provider: 'FFTW'
threads: '2'
os: ubuntu-latest
# 32-bit Julia binaries are not available on macOS
exclude:
- os: macOS-latest
arch: x86

steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: actions/cache@v1
- uses: actions/cache@v2
env:
cache-name: cache-artifacts
with:
Expand All @@ -43,3 +63,25 @@ jobs:
- uses: codecov/codecov-action@v1
with:
file: lcov.info

Documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: 1
- name: Cache artifacts
uses: actions/cache@v2
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/docs/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: julia-actions/julia-docdeploy@releases/v1
env:
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 comments on commit d63001e

Please sign in to comment.