Skip to content

Commit f3b33a4

Browse files
committed
ci(llvm-matrix): filter uses Node.js 20
1 parent d8b7fcf commit f3b33a4

File tree

4 files changed

+89
-1
lines changed

4 files changed

+89
-1
lines changed

.github/llvm-matrix.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
// Description: This script reads the matrix.json file and filters
2+
// out entries that already have an existing llvm-archive-filename on the server.
3+
// This creates a filtered matrix used to upload new archives to the server, but
4+
// only the ones that don't already exist.
5+
16
const fs = require('fs');
27
const core = require('@actions/core');
38
const { exec } = require('child_process');

.github/package-lock.json

+70
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/package.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"dependencies": {
3+
"@actions/core": "^1.11.0"
4+
}
5+
}

.github/workflows/ci.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,19 @@ jobs:
7272
mrdocs-package-generators: {{#if (ieq os 'windows') }}7Z ZIP WIX{{else}}TGZ TXZ{{/if}}
7373
output-file: matrix.json
7474

75+
# Set up the version as expected by the LLVM matrix script and @actions/core
76+
- name: Setup Node.js
77+
uses: actions/setup-node@v4
78+
with:
79+
node-version: 20
80+
7581
- name: Generate LLVM Test Matrix
7682
id: llvm-matrix
7783
run: |
7884
set -x
79-
npm install @actions/core
85+
cd .github
86+
npm ci
87+
cd ..
8088
node .github/llvm-matrix.js
8189
8290
build:

0 commit comments

Comments
 (0)