-
-
Notifications
You must be signed in to change notification settings - Fork 103
60 lines (50 loc) · 1.21 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Build
on:
workflow_dispatch:
inputs:
build-version:
description: 'Node.js version to build'
required: true
default: '20'
type: choice
options:
- 16
- 18
- 20
- 22
- 23
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
jobs:
build:
runs-on: windows-2022
# outputs:
# node-version: ${{ steps.node-test-version.outputs.node-version }}
strategy:
fail-fast: true
name: build node-${{ inputs.build-version }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build Node ${{ inputs.build-version }}
uses: ./.github/actions/build-node
with:
node: ${{ inputs.build-version }}
os: ${{ runner.os }}
test:
runs-on: ${{ matrix.os }}
needs: build
strategy:
matrix:
os: [windows-2022]
# fail-fast: false
name: test ${{ matrix.os }}-node-${{ inputs.build-version }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Test build
uses: ./.github/actions/test-build
with:
node: ${{ inputs.build-version }}
os: ${{ matrix.os }}