Skip to content

Commit 836daae

Browse files
committed
ci: update the node, pnpm and CI versions
1 parent 6db5593 commit 836daae

File tree

3 files changed

+13
-21
lines changed

3 files changed

+13
-21
lines changed

.github/workflows/CI.yml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
os:
14-
- windows-latest
15-
- ubuntu-latest
14+
- windows-2019
15+
- ubuntu-22.04
1616
- macos-13 # x86
17-
- macos-14 # arm64
1817
d:
1918
- "ldc-latest"
20-
node:
21-
- 20
22-
pnpm:
23-
- 9
2419
compiler:
25-
- llvm
20+
- llvm-19
21+
include:
22+
- os: macos-14 # arm64
23+
d: "ldc-latest"
24+
compiler: "appleclang"
25+
2626
steps:
2727
- uses: actions/checkout@v4
2828
with:
@@ -41,40 +41,30 @@ jobs:
4141
D:\.pnpm-store
4242
D:\.pnpm
4343
./.dub
44-
key: "cache-OS:${{ matrix.os }}-D:${{ matrix.d }}-CXX:${{ matrix.compiler }}-${{ hashFiles('./dub.selections.json', './pnpm-lock.yaml')}} }}"
44+
key: "cache-OS:${{ matrix.os }}-D:${{ matrix.d }}-CXX:${{ matrix.compiler }}-${{ hashFiles('./dub.selections.json', './pnpm-lock.yaml','./package.json', './.nvmrc', './dub.sdl')}} }}"
4545
restore-keys: |
4646
"cache-OS:${{ matrix.os }}-D:${{ matrix.d }}-CXX:${{ matrix.compiler }}-"
4747
4848
# Setup compilers and tools
4949
- name: Setup Cpp
50-
if: ${{ !contains(matrix.os, 'macos') }}
5150
uses: aminya/setup-cpp@v1
5251
with:
5352
compiler: ${{ matrix.compiler }}
5453
cmake: true
5554
ninja: true
5655

57-
- name: Setup Cpp
58-
if: ${{ contains(matrix.os, 'macos') }}
59-
uses: aminya/setup-cpp@v1
60-
with:
61-
cmake: true
62-
ninja: true
63-
6456
- name: Setup D
65-
uses: dlang-community/setup-dlang@v1
57+
uses: dlang-community/setup-dlang@v2
6658
with:
6759
compiler: ${{ matrix.d }}
6860

6961
- name: Setup Node
7062
uses: actions/setup-node@v4
7163
with:
72-
node-version: ${{ matrix.node }}
64+
node-version: ".nvmrc"
7365

7466
- name: Setup Pnpm
7567
uses: pnpm/action-setup@v4
76-
with:
77-
version: ${{ matrix.pnpm }}
7868

7969
# Build and Test
8070

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.19.1

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
"rust",
9797
"bandwith"
9898
],
99+
"packageManager": "pnpm@10.10.0",
99100
"targets": {
100101
"browser": {
101102
"context": "browser",

0 commit comments

Comments
 (0)