Skip to content

Commit 41e3c3e

Browse files
authored
CI: test against Julia LTS & latest, other tweaks (#32)
1 parent ff1e30b commit 41e3c3e

File tree

2 files changed

+45
-14
lines changed

2 files changed

+45
-14
lines changed

.github/workflows/CI.yml

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ on:
55
branches:
66
- master
77
tags: '*'
8+
9+
concurrency:
10+
# group by workflow and ref; the last slightly strange component ensures that for pull
11+
# requests, we limit to 1 concurrent job, but for the default repository branch we don't
12+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref_name != github.event.repository.default_branch || github.run_number }}
13+
# Cancel intermediate builds, but only if it is a pull request build.
14+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
15+
16+
# needed to allow julia-actions/cache to delete old caches that it has created
17+
permissions:
18+
actions: write
19+
contents: read
20+
821
jobs:
922
test:
1023
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -14,32 +27,34 @@ jobs:
1427
matrix:
1528
version:
1629
- '1.0'
30+
- 'lts'
31+
- '1'
1732
# - 'nightly'
1833
os:
1934
- ubuntu-latest
20-
- macOS-latest
35+
- macos-latest
2136
- windows-latest
2237
arch:
23-
- x64
38+
- ''
39+
exclude:
40+
- os: macos-latest # Apple Silicon
41+
version: '1.0'
42+
arch: ''
43+
include:
44+
- os: macos-latest # Apple Silicon
45+
version: '1.0'
46+
# Install an x86_64 build of Julia, and run it under Rosetta 2 emulation
47+
arch: 'x64'
2448
steps:
2549
- uses: actions/checkout@v4
2650
- uses: julia-actions/setup-julia@v2
2751
with:
2852
version: ${{ matrix.version }}
29-
arch: ${{ matrix.arch }}
30-
- uses: actions/cache@v4
31-
env:
32-
cache-name: cache-artifacts
33-
with:
34-
path: ~/.julia/artifacts
35-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
36-
restore-keys: |
37-
${{ runner.os }}-test-${{ env.cache-name }}-
38-
${{ runner.os }}-test-
39-
${{ runner.os }}-
53+
arch: ${{ (matrix.arch == '') && runner.arch || matrix.arch }}
54+
- uses: julia-actions/cache@v2
4055
- uses: julia-actions/julia-buildpkg@v1
4156
- uses: julia-actions/julia-runtest@v1
4257
- uses: julia-actions/julia-processcoverage@v1
4358
- uses: codecov/codecov-action@v5
4459
with:
45-
file: lcov.info
60+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/TagBot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ on:
44
types:
55
- created
66
workflow_dispatch:
7+
inputs:
8+
lookback:
9+
default: "3"
10+
permissions:
11+
actions: read
12+
checks: read
13+
contents: write
14+
deployments: read
15+
issues: read
16+
discussions: read
17+
packages: read
18+
pages: read
19+
pull-requests: read
20+
repository-projects: read
21+
security-events: read
22+
statuses: read
723
jobs:
824
TagBot:
925
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'

0 commit comments

Comments
 (0)