Skip to content

Commit dd24728

Browse files
committed
Modernize CI infrastructure
- Update actions to their latest version; - Update compiler versions to be future proof; - Set up a periodic build; The periodic build is used as this project is complete and does not require maintenance.
1 parent 4df16a2 commit dd24728

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

.github/workflows/ci.yml

+21-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,33 @@
11
name: CI
22

3-
on: [ push, pull_request ]
3+
on:
4+
push:
5+
branches:
6+
- 'v*.*.x'
7+
tags:
8+
- 'v*'
9+
pull_request:
10+
branches:
11+
- 'v*.*.x'
12+
# Do a periodic build (every Monday at 0600) to ensure integrity
13+
schedule:
14+
- cron: '0 6 * * 1'
415

516
jobs:
617
build:
718
name: Run
819
strategy:
920
matrix:
10-
os: [ ubuntu-latest, macos-latest, windows-latest ]
11-
dc: [ dmd-latest, ldc-latest, dmd-2.094.1, ldc-1.24.0 ]
12-
21+
include:
22+
- { os: macos-latest, dc: ldc-latest }
23+
- { os: ubuntu-latest, dc: dmd-latest }
24+
- { os: ubuntu-latest, dc: ldc-latest }
25+
- { os: windows-latest, dc: dmd-latest }
26+
- { os: windows-latest, dc: ldc-latest }
1327
runs-on: ${{ matrix.os }}
1428

1529
steps:
16-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v4
1731
with:
1832
# For codecov
1933
fetch-depth: 2
@@ -24,9 +38,9 @@ jobs:
2438
- name: 'Build & Test'
2539
shell: bash
2640
run: |
27-
dub test --compiler=$DC -b unittest-cov
41+
dub test -b unittest-cov
2842
2943
- name: Upload coverage to Codecov
30-
uses: codecov/codecov-action@v1
44+
uses: codecov/codecov-action@v4
3145
with:
3246
flags: unittests

0 commit comments

Comments
 (0)