Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions .github/workflows/github_release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: GitHub Release

on:
workflow_dispatch:
inputs:
tag:
description: 'Release tag (e.g. v3.5.5)'
required: true
type: string
push:
tags:
- 'v*'
Expand All @@ -12,17 +18,27 @@ jobs:
contents: write
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [18.x, 20.x, 22.x]
os: [ubuntu-latest, ubuntu-22.04-arm, windows-latest, macos-latest]
node-version: [16.x, 18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v4
with:
submodules: recursive
ref: ${{ inputs.tag || github.ref_name }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Use Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install build deps (Linux)
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install -y build-essential python3
- run: npm ci
- run: npm test
- name: Package Binary
Expand All @@ -35,8 +51,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
tag_name: ${{ inputs.tag || github.ref_name }}
name: ${{ inputs.tag || github.ref_name }}
draft: false
prerelease: false
generate_release_notes: true
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
node-version: [16.x, 18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, ubuntu-22.04-arm, macos-latest, windows-latest]


steps:
Expand All @@ -29,5 +29,14 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Use Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install build deps (Linux)
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install -y build-essential python3
- run: npm ci
- run: npm test