-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some of these had hardcoded versions (e.g. v18)
- Loading branch information
Showing
2 changed files
with
19 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,18 +4,19 @@ on: [push, pull_request] | |
|
||
jobs: | ||
build-and-test: | ||
name: ${{ matrix.os }} / Node ${{ matrix.node }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
node-version: [ 18.x, 20.x, 22.x ] | ||
os: [ ubuntu-latest, macos-latest, windows-latest ] | ||
node: [ 18.x, 20.x, 22.x ] | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
- name: Use Node.js ${{ matrix.node }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
node-version: ${{ matrix.node }} | ||
- name: Add msbuild to PATH | ||
if: matrix.os == 'windows-latest' | ||
uses: microsoft/[email protected] | ||
|
@@ -40,7 +41,8 @@ jobs: | |
strategy: | ||
matrix: | ||
node-version: [ 18, 20, 22 ] | ||
container: node:${{ matrix.node-version }}-alpine | ||
fail-fast: false | ||
container: node:${{ matrix.node }}-alpine | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: install build deps | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,29 +7,29 @@ on: | |
|
||
jobs: | ||
prebuild: | ||
name: ${{ matrix.os }} / Node ${{ matrix.node }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
node-version: [ 18.x, 20.x, 22.x ] | ||
os: [ ubuntu-latest, macos-latest, windows-latest ] | ||
fail-fast: false | ||
node: [ 18.x, 20.x, 22.x ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js 18.x | ||
- name: Use node ${{ matrix.node }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
node-version: ${{ matrix.node }} | ||
- name: Add msbuild to PATH | ||
if: matrix.os == 'windows-latest' | ||
uses: microsoft/[email protected] | ||
- name: Install node-gyp | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
npm install --global node-gyp@latest | ||
- name: Build | ||
- name: Dependencies | ||
run: | | ||
npm install --ignore-scripts | ||
- name: Prebuild | ||
- name: Build | ||
run: | | ||
npm run prebuild | ||
- name: Upload | ||
|
@@ -39,17 +39,21 @@ jobs: | |
MAKEFLAGS: -j4 | ||
|
||
prebuild-alpine: | ||
name: alpine / Node ${{ matrix.node }} | ||
runs-on: ubuntu-latest | ||
container: node:18-alpine3.19 | ||
container: node:${{ matrix.node }}-alpine | ||
strategy: | ||
matrix: | ||
node: [ 18, 20, 22 ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: install build deps | ||
run: | | ||
apk add g++ make python3 | ||
- name: Build | ||
- name: Dependencies | ||
run: | | ||
npm install --ignore-scripts | ||
- name: Prebuild | ||
- name: Build | ||
run: | | ||
npm run prebuild | ||
- name: Upload | ||
|