Skip to content

Commit b44924e

Browse files
authored
separate out windows CI tasks (#225)
* separate out windows CI tasks * use if contidional * revert if conditional * split windows tests and docs to files
1 parent acaf4a1 commit b44924e

File tree

3 files changed

+65
-21
lines changed

3 files changed

+65
-21
lines changed

.github/workflows/CIWindows.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI Windows
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
testwindows:
7+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
version:
12+
- '1'
13+
os:
14+
- windows-latest
15+
arch:
16+
- x86
17+
- x64
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: julia-actions/setup-julia@v1
21+
with:
22+
version: ${{ matrix.version }}
23+
arch: ${{ matrix.arch }}
24+
show-versioninfo: true
25+
- uses: actions/cache@v3
26+
env:
27+
cache-name: cache-artifacts
28+
with:
29+
path: ~/.julia/artifacts
30+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
31+
restore-keys: |
32+
${{ runner.os }}-test-${{ env.cache-name }}-
33+
${{ runner.os }}-test-
34+
${{ runner.os }}-
35+
- uses: julia-actions/julia-buildpkg@latest
36+
- uses: julia-actions/julia-runtest@latest
37+
- uses: julia-actions/julia-processcoverage@v1
38+
- uses: codecov/codecov-action@v3
39+
with:
40+
file: lcov.info

.github/workflows/ci.yml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,20 @@ jobs:
1414
os:
1515
- ubuntu-latest
1616
- macOS-latest
17-
- windows-latest
1817
arch:
1918
- x86
2019
- x64
2120
exclude:
2221
- os: macOS-latest
2322
arch: x86
2423
steps:
25-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v3
2625
- uses: julia-actions/setup-julia@v1
2726
with:
2827
version: ${{ matrix.version }}
2928
arch: ${{ matrix.arch }}
3029
show-versioninfo: true
31-
- uses: actions/cache@v1
30+
- uses: actions/cache@v3
3231
env:
3332
cache-name: cache-artifacts
3433
with:
@@ -41,23 +40,6 @@ jobs:
4140
- uses: julia-actions/julia-buildpkg@latest
4241
- uses: julia-actions/julia-runtest@latest
4342
- uses: julia-actions/julia-processcoverage@v1
44-
- uses: codecov/codecov-action@v1
43+
- uses: codecov/codecov-action@v3
4544
with:
4645
file: lcov.info
47-
docs:
48-
name: Documentation
49-
runs-on: ubuntu-latest
50-
steps:
51-
- uses: actions/checkout@v2
52-
- uses: julia-actions/setup-julia@v1
53-
with:
54-
version: '1.7'
55-
- run: |
56-
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-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/docs.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Documentation
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
docs:
7+
name: Documentation
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: julia-actions/setup-julia@v1
12+
with:
13+
version: '1'
14+
- run: |
15+
julia --project=docs -e '
16+
using Pkg
17+
Pkg.develop(PackageSpec(path=pwd()))
18+
Pkg.instantiate()'
19+
- run: julia --project=docs docs/make.jl
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)