CI #60
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
name: CI | |
on: | |
push: | |
branches: [main] | |
tags: ['*'] | |
pull_request: | |
schedule: | |
- cron: '0 0 1 * *' | |
jobs: | |
test: | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: Julia 1.7 / Linux 64bit | |
version: '1.7' | |
os: ubuntu-latest | |
arch: x64 | |
- name: Julia 1.7 / Linux 32bit | |
version: '1.7' | |
os: ubuntu-latest | |
arch: x86 | |
- name: Julia Stable / Linux 64bit | |
version: '1' | |
os: ubuntu-latest | |
arch: x64 | |
- name: Julia Stable / Linux 32bit | |
version: '1' | |
os: ubuntu-latest | |
arch: x86 | |
- name: Julia Stable / MacOS 64bit | |
version: '1' | |
os: macos-latest | |
arch: x64 | |
- name: Julia Stable / Windows 64bit | |
version: '1' | |
os: windows-latest | |
arch: x64 | |
- name: Julia Stable / Windows 32bit | |
version: '1' | |
os: windows-latest | |
arch: x86 | |
- name: Julia Nightly / Linux 64bit | |
version: nightly | |
os: ubuntu-latest | |
arch: x64 | |
- name: Julia Nightly / Linux 32bit | |
version: nightly | |
os: ubuntu-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 | |
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@v1 | |
- uses: julia-actions/julia-runtest@v1 | |
- uses: julia-actions/julia-processcoverage@v1 | |
- uses: codecov/codecov-action@v2 | |
with: | |
file: lcov.info | |
docs: | |
name: Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: julia-actions/setup-julia@v1 | |
- uses: julia-actions/julia-buildpkg@v1 | |
- uses: julia-actions/julia-docdeploy@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |