File tree Expand file tree Collapse file tree 2 files changed +35
-33
lines changed Expand file tree Collapse file tree 2 files changed +35
-33
lines changed Original file line number Diff line number Diff line change 1- name : CompatHelper
1+ name : CI
22on :
3- schedule :
4- - cron : 0 0 * * *
5- workflow_dispatch :
3+ - push
4+ - pull_request
65jobs :
7- CompatHelper :
8- runs-on : ubuntu-latest
6+ test :
7+ name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
8+ runs-on : ${{ matrix.os }}
9+ strategy :
10+ fail-fast : false
11+ matrix :
12+ version :
13+ - ' 1'
14+ os :
15+ - ubuntu-latest
16+ arch :
17+ - x64
918 steps :
10- - name : Pkg.add("CompatHelper")
11- run : julia -e 'using Pkg; Pkg.add("CompatHelper")'
12- - name : CompatHelper.main()
19+ - uses : actions/checkout@v2
20+ - uses : julia-actions/setup-julia@v1
21+ with :
22+ version : ${{ matrix.version }}
23+ arch : ${{ matrix.arch }}
24+ - uses : actions/cache@v1
1325 env :
14- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
15- COMPATHELPER_PRIV : ${{ secrets.DOCUMENTER_KEY }}
16- run : julia -e 'using CompatHelper; CompatHelper.main()'
26+ cache-name : cache-artifacts
27+ with :
28+ path : ~/.julia/artifacts
29+ key : ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
30+ restore-keys : |
31+ ${{ runner.os }}-test-${{ env.cache-name }}-
32+ ${{ runner.os }}-test-
33+ ${{ runner.os }}-
34+ - uses : julia-actions/julia-buildpkg@v1
35+ - uses : julia-actions/julia-runtest@v1
Original file line number Diff line number Diff line change 77 CompatHelper :
88 runs-on : ubuntu-latest
99 steps :
10- - name : " Add the General registry via Git"
11- run : |
12- import Pkg
13- ENV["JULIA_PKG_SERVER"] = ""
14- Pkg.Registry.add("General")
15- shell : julia --color=yes {0}
16- - name : " Install CompatHelper"
17- run : |
18- import Pkg
19- name = "CompatHelper"
20- uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
21- version = "3"
22- Pkg.add(; name, uuid, version)
23- shell : julia --color=yes {0}
24- - name : " Run CompatHelper"
25- run : |
26- import CompatHelper
27- CompatHelper.main(;
28- subdirs=["", joinpath.("lib", readdir("lib"))...]
29- )
30- shell : julia --color=yes {0}
10+ - name : Pkg.add("CompatHelper")
11+ run : julia -e 'using Pkg; Pkg.add("CompatHelper")'
12+ - name : CompatHelper.main()
3113 env :
3214 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3315 COMPATHELPER_PRIV : ${{ secrets.DOCUMENTER_KEY }}
16+ run : julia -e 'using CompatHelper; CompatHelper.main()'
You can’t perform that action at this time.
0 commit comments