Skip to content

Commit 7b4a878

Browse files
authored
Merge pull request #8 from SpeedyWeather/mk/ci
Create julianightly.yml
2 parents 2cd3fab + c88f560 commit 7b4a878

File tree

2 files changed

+47
-17
lines changed

2 files changed

+47
-17
lines changed

.github/workflows/CI.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,20 @@
11
name: CI
22
on:
3+
pull_request:
4+
branches:
5+
- main
36
push:
47
branches:
58
- main
6-
tags: ['*']
7-
pull_request:
8-
workflow_dispatch:
9-
concurrency:
10-
# Skip intermediate builds: always.
11-
# Cancel intermediate builds: only if it is a pull request build.
12-
group: ${{ github.workflow }}-${{ github.ref }}
13-
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
149
jobs:
1510
test:
16-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
1711
runs-on: ${{ matrix.os }}
18-
timeout-minutes: 60
19-
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
20-
actions: write
21-
contents: read
2212
strategy:
23-
fail-fast: false
2413
matrix:
2514
version:
26-
- '1.10'
2715
- '1.8'
28-
- 'nightly'
16+
- '1.9'
17+
- '1.10'
2918
os:
3019
- ubuntu-latest
3120
arch:
@@ -36,6 +25,17 @@ jobs:
3625
with:
3726
version: ${{ matrix.version }}
3827
arch: ${{ matrix.arch }}
39-
- uses: julia-actions/cache@v1
28+
- uses: actions/cache@v3
29+
env:
30+
cache-name: cache-artifacts
31+
with:
32+
path: ~/.julia/artifacts
33+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
34+
restore-keys: |
35+
${{ runner.os }}-test-${{ env.cache-name }}-
36+
${{ runner.os }}-test-
37+
${{ runner.os }}-
4038
- uses: julia-actions/julia-buildpkg@v1
4139
- uses: julia-actions/julia-runtest@v1
40+
env:
41+
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/julianightly.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: JuliaNightly
2+
# Nightly Scheduled Julia Nightly Run
3+
on:
4+
schedule:
5+
- cron: '0 2 * * 0' # Daily at 2 AM UTC every Sunday
6+
jobs:
7+
test:
8+
name: Julia Nightly - Ubuntu - x64
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: julia-actions/setup-julia@v1
13+
with:
14+
version: nightly
15+
arch: x64
16+
- uses: actions/cache@v3
17+
env:
18+
cache-name: cache-artifacts
19+
with:
20+
path: ~/.julia/artifacts
21+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
22+
restore-keys: |
23+
${{ runner.os }}-test-${{ env.cache-name }}-
24+
${{ runner.os }}-test-
25+
${{ runner.os }}-
26+
- uses: julia-actions/julia-buildpkg@latest
27+
- name: "Run test without coverage report"
28+
uses: julia-actions/julia-runtest@v1
29+
with:
30+
coverage: false

0 commit comments

Comments
 (0)