Skip to content

Commit 2725deb

Browse files
committed
Automatically fix CI tests and cache steps
1 parent 63a06ab commit 2725deb

File tree

2 files changed

+20
-21
lines changed

2 files changed

+20
-21
lines changed

.github/workflows/CI.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,41 +15,42 @@ 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
5556
- run: |

.github/workflows/JuliaNightly.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@ 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
2725
- run: |
2826
git config --global user.name Tester

0 commit comments

Comments
 (0)