-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (38 loc) · 931 Bytes
/
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
name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
NODE_VERSION: "v20.9.0"
jobs:
build:
strategy:
fail-fast: false
matrix:
arch: [x64]
os: [macos-latest, ubuntu-latest, windows-2019]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Download source code
shell: bash
run: ./scripts/download.sh
- name: Build
shell: bash
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
./scripts/build-linux.sh
elif [ "$RUNNER_OS" == "Windows" ]; then
./scripts/build-windows.sh
else
./scripts/build-macos.sh
fi
- name: Upload artifacts
uses: actions/[email protected]
with:
name: libnode-${{ env.NODE_VERSION }}-${{ runner.os }}-${{ matrix.arch }}
path: ./artifacts