|
| 1 | +name: CI |
| 2 | +on: |
| 3 | + pull_request: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - 'main' |
| 7 | + - 'release-*' |
| 8 | + tags: '*' |
| 9 | +concurrency: |
| 10 | + # Skip intermediate builds: all builds except for builds on the `main` or `release-*` branches |
| 11 | + # Cancel intermediate builds: only pull request builds |
| 12 | + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release-') || github.run_number }} |
| 13 | + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} |
| 14 | +jobs: |
| 15 | + test: |
| 16 | + runs-on: ${{ matrix.os }} |
| 17 | + timeout-minutes: 60 |
| 18 | + strategy: |
| 19 | + fail-fast: false |
| 20 | + matrix: |
| 21 | + julia-version: |
| 22 | + - 'nightly' |
| 23 | + os: |
| 24 | + - ubuntu-latest |
| 25 | + - windows-latest |
| 26 | + julia-arch: |
| 27 | + - x64 |
| 28 | + - x86 |
| 29 | + include: |
| 30 | + - os: macOS-latest |
| 31 | + julia-arch: aarch64 |
| 32 | + julia-version: 'nightly' |
| 33 | + - os: macOS-13 |
| 34 | + julia-arch: x64 |
| 35 | + julia-version: 'nightly' |
| 36 | + steps: |
| 37 | + - uses: actions/checkout@v4 |
| 38 | + - uses: julia-actions/setup-julia@v2 |
| 39 | + with: |
| 40 | + version: ${{ matrix.julia-version }} |
| 41 | + arch: ${{ matrix.julia-arch }} |
| 42 | + - uses: julia-actions/cache@v2 |
| 43 | + - run: julia --color=yes .ci/test_and_change_uuid.jl |
| 44 | + - uses: julia-actions/julia-buildpkg@v1 |
| 45 | + - uses: julia-actions/julia-runtest@v1 |
| 46 | + - uses: julia-actions/julia-processcoverage@v1 |
| 47 | + - uses: codecov/codecov-action@v4 |
| 48 | + with: |
| 49 | + file: lcov.info |
| 50 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 51 | + docs: |
| 52 | + runs-on: ubuntu-latest |
| 53 | + steps: |
| 54 | + - uses: actions/checkout@v4 |
| 55 | + - uses: julia-actions/setup-julia@v2 |
| 56 | + with: |
| 57 | + version: 'nightly' |
| 58 | + - name: Generate docs |
| 59 | + run: | |
| 60 | + julia --project --color=yes -e '' |
| 61 | + julia --project --color=yes -e 'using Pkg; Pkg.respect_sysimage_versions(false); Pkg.activate("docs"); Pkg.develop(PackageSpec(path = pwd()))' |
| 62 | + julia --project=docs --color=yes docs/make.jl pdf |
| 63 | + env: |
| 64 | + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} |
0 commit comments