mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 01:52:28 +08:00

npm warn EBADENGINE Unsupported engine { npm warn EBADENGINE package: 'node-abi@4.2.0', npm warn EBADENGINE required: { node: '>=22.12.0' }, npm warn EBADENGINE current: { node: 'v20.18.1', npm: '10.8.2' } npm warn EBADENGINE }
32 lines
860 B
YAML
32 lines
860 B
YAML
inputs:
|
|
os:
|
|
description: "One of the supported platforms: windows"
|
|
required: true
|
|
arch:
|
|
description: "The architecture to build for: x64, arm64"
|
|
required: true
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Set up node & dependencies
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: "npm"
|
|
- name: Install dependencies
|
|
shell: bash
|
|
run: npm ci
|
|
- name: Run Linux server build
|
|
env:
|
|
MATRIX_ARCH: ${{ inputs.arch }}
|
|
shell: bash
|
|
run: |
|
|
npm run chore:update-build-info
|
|
./bin/build-server.sh
|
|
- name: Prepare artifacts
|
|
shell: bash
|
|
run: |
|
|
mkdir -p upload
|
|
file=$(find dist -name '*.tar.xz' -print -quit)
|
|
cp "$file" "upload/TriliumNextNotes-Server-${{ github.ref_name }}-${{ inputs.os }}-${{ inputs.arch }}.tar.xz"
|