Skip to content

Commit 11f652b

Browse files
authored
Merge pull request #8 from invenia/fc/auto-ci-fix
Fix CI Tests and Artifact Cache Issues
2 parents 63a06ab + 96662c6 commit 11f652b

File tree

2 files changed

+25
-36
lines changed

2 files changed

+25
-36
lines changed

.github/workflows/CI.yml

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,46 +15,44 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
version:
18-
- 1
18+
- "1.0" # LTS
19+
- "1" # Latest Release
1920
os:
2021
- ubuntu-latest
2122
- macOS-latest
2223
- windows-latest
2324
arch:
2425
- x64
26+
- x86
27+
exclude:
28+
# Test 32-bit only on Linux
29+
- os: macOS-latest
30+
arch: x86
31+
- os: windows-latest
32+
arch: x86
2533
include:
26-
# Add a 1.0 job just to make sure we still support it
27-
- os: ubuntu-latest
28-
version: 1.0.5
29-
arch: x64
30-
# Add a 1.3 job because that's what Invenia actually uses
34+
# Add a 1.5 job because that's what Invenia actually uses
3135
- os: ubuntu-latest
32-
version: 1.3
36+
version: "1.5"
3337
arch: x64
34-
# Add a 32-bit job to ensure we don't have any 64-bit specific logic
35-
- os: ubuntu-latest
36-
version: 1
37-
arch: x86
3838
steps:
3939
- uses: actions/checkout@v2
4040
- uses: julia-actions/setup-julia@v1
4141
with:
4242
version: ${{ matrix.version }}
4343
arch: ${{ matrix.arch }}
44-
- uses: actions/cache@v1
44+
- uses: actions/cache@v2
4545
env:
4646
cache-name: cache-artifacts
4747
with:
4848
path: ~/.julia/artifacts
49-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
49+
key: ${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
5050
restore-keys: |
51-
${{ runner.os }}-test-${{ env.cache-name }}-
52-
${{ runner.os }}-test-
51+
${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}-
52+
${{ runner.os }}-${{ matrix.arch }}-test-
53+
${{ runner.os }}-${{ matrix.arch }}-
5354
${{ runner.os }}-
5455
- uses: julia-actions/julia-buildpkg@latest
55-
- run: |
56-
git config --global user.name Tester
57-
git config --global user.email [email protected]
5856
- uses: julia-actions/julia-runtest@latest
5957
- uses: julia-actions/julia-processcoverage@v1
6058
- uses: codecov/codecov-action@v1
@@ -65,7 +63,7 @@ jobs:
6563
name: Notify Slack Failure
6664
needs: test
6765
runs-on: ubuntu-latest
68-
if: github.event == 'schedule'
66+
if: always() && github.event_name == 'schedule'
6967
steps:
7068
- uses: technote-space/workflow-conclusion-action@v2
7169
- uses: voxmedia/github-action-slack-notify-build@v1
@@ -85,16 +83,12 @@ jobs:
8583
- uses: julia-actions/setup-julia@v1
8684
with:
8785
version: '1'
88-
- run: |
89-
git config --global user.name name
90-
git config --global user.email email
91-
git config --global github.user username
9286
- run: |
9387
julia --project=docs -e '
94-
using Pkg;
95-
Pkg.develop(PackageSpec(path=pwd()));
96-
Pkg.instantiate();
97-
include("docs/make.jl");'
88+
using Pkg
89+
Pkg.develop(PackageSpec(path=pwd()))
90+
Pkg.instantiate()
91+
include("docs/make.jl")'
9892
env:
9993
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10094
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/JuliaNightly.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,15 @@ jobs:
1313
with:
1414
version: nightly
1515
arch: x64
16-
- uses: actions/cache@v1
16+
- uses: actions/cache@v2
1717
env:
18-
cache-name: cache-artifacts
18+
cache-name: julia-nightly-cache-artifacts
1919
with:
2020
path: ~/.julia/artifacts
21-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
21+
key: ${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
2222
restore-keys: |
23-
${{ runner.os }}-test-${{ env.cache-name }}-
24-
${{ runner.os }}-test-
25-
${{ runner.os }}-
23+
${{ env.cache-name }}-
2624
- uses: julia-actions/julia-buildpkg@latest
27-
- run: |
28-
git config --global user.name Tester
29-
git config --global user.email [email protected]
3025
- uses: julia-actions/julia-runtest@latest
3126
- uses: julia-actions/julia-processcoverage@v1
3227
- uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)