|
| 1 | +name: CI |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches: |
| 5 | + - master |
| 6 | + tags: '*' |
| 7 | + pull_request: |
| 8 | +jobs: |
| 9 | + test: |
| 10 | + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} |
| 11 | + runs-on: ${{ matrix.os }} |
| 12 | + strategy: |
| 13 | + matrix: |
| 14 | + version: |
| 15 | + - '1.0' |
| 16 | + - '1.1' |
| 17 | + - '1.2' |
| 18 | + - '1.3' |
| 19 | + - 'nightly' |
| 20 | + os: |
| 21 | + - ubuntu-latest |
| 22 | + - macOS-latest |
| 23 | + - windows-latest |
| 24 | + arch: |
| 25 | + - x86 |
| 26 | + - x64 |
| 27 | + exclude: |
| 28 | + # Remove some configurations from the build matrix to reduce CI time. |
| 29 | + # See https://github.com/marketplace/actions/setup-julia-environment |
| 30 | + # MacOS not available on x86 |
| 31 | + - {os: 'macOS-latest', arch: 'x86'} |
| 32 | + # Don't test on all versions |
| 33 | + - {os: 'macOS-latest', version: '1.1'} |
| 34 | + - {os: 'macOS-latest', version: '1.2'} |
| 35 | + - {os: 'windows-latest', version: '1.1'} |
| 36 | + - {os: 'windows-latest', version: '1.2'} |
| 37 | + steps: |
| 38 | + - uses: actions/checkout@v1 |
| 39 | + - uses: julia-actions/setup-julia@latest |
| 40 | + with: |
| 41 | + version: ${{ matrix.version }} |
| 42 | + arch: ${{ matrix.arch }} |
| 43 | + - uses: julia-actions/julia-buildpkg@latest |
| 44 | + - uses: julia-actions/julia-runtest@latest |
| 45 | + - uses: julia-actions/julia-uploadcodecov@latest |
| 46 | + env: |
| 47 | + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
| 48 | + docs: |
| 49 | + name: Documentation |
| 50 | + runs-on: ubuntu-latest |
| 51 | + steps: |
| 52 | + - uses: actions/checkout@v1 |
| 53 | + - uses: julia-actions/setup-julia@latest |
| 54 | + with: |
| 55 | + version: '1.3' |
| 56 | + - run: julia --project=docs -e ' |
| 57 | + using Pkg; |
| 58 | + Pkg.develop(PackageSpec(; path=pwd())); |
| 59 | + Pkg.instantiate();' |
| 60 | + - run: julia --project=docs docs/make.jl |
| 61 | + env: |
| 62 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 63 | + # Needed due to https://github.com/JuliaDocs/Documenter.jl/issues/1177 |
| 64 | + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} |
0 commit comments