Skip to content

Commit 85b2c09

Browse files
committed
fix ci
1 parent 2289f06 commit 85b2c09

File tree

2 files changed

+35
-33
lines changed

2 files changed

+35
-33
lines changed

.github/workflows/CI.yml

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,35 @@
1-
name: CompatHelper
1+
name: CI
22
on:
3-
schedule:
4-
- cron: 0 0 * * *
5-
workflow_dispatch:
3+
- push
4+
- pull_request
65
jobs:
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

.github/workflows/CompatHelper.yml

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,10 @@ jobs:
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()'

0 commit comments

Comments
 (0)