-
Notifications
You must be signed in to change notification settings - Fork 22
41 lines (39 loc) · 1.33 KB
/
Downgrade-CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Downgrade CI
on:
push:
branches:
- master
pull_request:
jobs:
generate-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.genmat.outputs.matrix }}
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: 1
arch: x64
- run: julia -e 'using Pkg; pkg"add CompatHelperLocal"'
- run: julia -e 'using Pkg; pkg"add ."'
- if: ${{ always() }}
id: genmat
run: |
echo '::echo::on'
julia -e 'import CompatHelperLocal as CHL; import AbstractGPs; projfile = joinpath(pathof(AbstractGPs) |> dirname |> dirname, "Project.toml"); println(CHL.compats_combinations_to_gha_string(CHL.get_compats_combinations(projfile, only_resolveable=true)))'
test:
needs: generate-matrix
runs-on: ubuntu-latest
strategy:
matrix: ${{fromJSON(needs.generate-matrix.outputs.matrix)}}
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: 1
arch: x64
- run: julia -e 'using Pkg; pkg"add CompatHelperLocal"'
- run: julia -e 'using Pkg; pkg"add ."'
- run: julia -e 'import CompatHelperLocal as CHL; import AbstractGPs; CHL.test_compats_combinations(AbstractGPs, [${{ matrix.compats }}])'