Skip to content

Commit 23f78a1

Browse files
authored
CI: Run a single job on Julia nightly
1 parent a58c9c1 commit 23f78a1

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/ci.nightly.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Nightly CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- 'master'
8+
- 'release-*'
9+
tags: '*'
10+
merge_group: # GitHub Merge Queue
11+
12+
concurrency:
13+
# Skip intermediate builds: all builds except for builds on the `master` branch
14+
# Cancel intermediate builds: only pull request builds
15+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }}
16+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
17+
18+
jobs:
19+
test-nightly:
20+
timeout-minutes: 90
21+
runs-on: ${{ matrix.github-runner }}
22+
strategy:
23+
max-parallel: 5 # leave space for other runs in the JuliaLang org, given these tests are long
24+
fail-fast: false
25+
matrix:
26+
include:
27+
# We intentionally only run one CI job on Julia nightly,
28+
# in order to conserve CI resources.
29+
- julia-version: 'nightly'
30+
julia-wordsize: '64'
31+
github-runner: ubuntu-latest
32+
coverage: false
33+
steps:
34+
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
35+
- uses: julia-actions/setup-julia@9b79636afcfb07ab02c256cede01fe2db6ba808c # v2.6.0
36+
with:
37+
version: ${{ matrix.julia-version }}
38+
# If `julia-wordsize` is 32, then we set `arch` to `x86`, because we know that
39+
# 32-bit builds of Julia are only available for x86.
40+
#
41+
# If `julia-wordsize` is 64, then we set `arch` to `${{ runner.arch }}`, which
42+
# GitHub will automatically expand to the correct value (`x86_64` or `aarch64`)
43+
# based on the architecture of the underlying GitHub Runner (virtual machine).
44+
arch: ${{ github.ref == '32' && 'x86' || runner.arch }}
45+
- uses: julia-actions/cache@824243901fb567ccb490b0d0e2483ccecde46834 # v2.0.5
46+
- uses: julia-actions/julia-runtest@d0c4f093badade621cd041bba567d1e832480ac2 # v1.10.0
47+
with:
48+
coverage: ${{ matrix.coverage }}
49+
- uses: julia-actions/julia-processcoverage@03114f09f119417c3242a9fb6e0b722676aedf38 # v1.2.2
50+
- uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
51+
with:
52+
file: lcov.info
53+
env:
54+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)