Skip to content

Commit

Permalink
ci(llvm-matrix): filter uses Node.js 20
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed Oct 4, 2024
1 parent d8b7fcf commit f3b33a4
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/llvm-matrix.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// Description: This script reads the matrix.json file and filters
// out entries that already have an existing llvm-archive-filename on the server.
// This creates a filtered matrix used to upload new archives to the server, but
// only the ones that don't already exist.

const fs = require('fs');
const core = require('@actions/core');
const { exec } = require('child_process');
Expand Down
70 changes: 70 additions & 0 deletions .github/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .github/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"@actions/core": "^1.11.0"
}
}
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,19 @@ jobs:
mrdocs-package-generators: {{#if (ieq os 'windows') }}7Z ZIP WIX{{else}}TGZ TXZ{{/if}}
output-file: matrix.json

# Set up the version as expected by the LLVM matrix script and @actions/core
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Generate LLVM Test Matrix
id: llvm-matrix
run: |
set -x
npm install @actions/core
cd .github
npm ci
cd ..
node .github/llvm-matrix.js
build:
Expand Down

0 comments on commit f3b33a4

Please sign in to comment.