Delete upstream workflows

This fork does not ship upstream's releases, and its hosted-runner jobs
never start here.

Claude-Session: https://claude.ai/code/session_01HuMDfgFssPUptYUzgZ6Cp8
This commit is contained in:
z
2026-09-24 09:57:16 -07:00
committed by GitHub
parent cf457a9939
commit 6a3985917b
5 changed files with 0 additions and 501 deletions
-77
View File
@@ -1,77 +0,0 @@
name: prebuild-test-all
on:
workflow_dispatch:
jobs:
prebuild:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-22.04
target: linux-x64
- os: ubuntu-24.04-arm
target: linux-arm64
- os: macos-15-intel
target: darwin-x64
- os: macos-15
target: darwin-arm64
- os: windows-2022
target: win32-x64
- os: windows-11-arm
target: win32-arm64
name: Prebuild ${{ matrix.target }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
- if: ${{ startsWith(matrix.os, 'windows') }}
run: pip.exe install setuptools
- if: ${{ startsWith(matrix.os, 'macos') }}
run: brew install python-setuptools
- if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: python3 -m pip install setuptools
- run: npm install --ignore-scripts
- run: npm run build-release
- uses: actions/upload-artifact@v7
with:
name: ${{ matrix.target }}
path: build/Release/better_sqlite3.node
if-no-files-found: error
prebuild-alpine:
strategy:
fail-fast: false
matrix:
include:
- platform: linux/amd64
target: linuxmusl-x64
- platform: linux/arm64
target: linuxmusl-arm64
name: Prebuild ${{ matrix.target }}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: docker/setup-qemu-action@v4
- name: Build in Alpine
run: |
docker run --rm \
--platform ${{ matrix.platform }} \
--volume "${{ github.workspace }}:/project" \
--workdir /project \
node:22-alpine \
sh -c "apk add --no-cache build-base python3 py3-setuptools && \
npm install --ignore-scripts && \
npm run build-release && \
mkdir -p prebuilds && \
cp build/Release/better_sqlite3.node prebuilds/${{ matrix.target }}.node && \
rm -rf build && \
node -e \"require('./lib')(':memory:').close()\""
- uses: actions/upload-artifact@v7
with:
name: ${{ matrix.target }}
path: prebuilds/${{ matrix.target }}.node
if-no-files-found: error
-146
View File
@@ -1,146 +0,0 @@
name: prebuild-test
run-name: Prebuild tests (${{ inputs.runtime }} [${{ inputs.targets }}])
on:
workflow_dispatch:
inputs:
runtime:
description: 'Prebuild runtime'
type: choice
required: true
default: node
options:
- node
- electron
targets:
description: 'Runtime versions (targets)'
required: true
default: -t 24.0.0
ubuntu-22.04:
description: 'Test on ubuntu-22.04'
type: boolean
default: true
windows-2022:
description: 'Test on windows-2022'
type: boolean
default: true
macos-15-intel:
description: 'Test on macos-15'
type: boolean
default: true
alpine:
description: 'Test on Alpine-Linux'
type: boolean
arm:
description: 'Test on ARM(v7/64) architectures'
type: boolean
env:
TEST_COMMAND: npx --no-install prebuild -r ${{ inputs.runtime }} ${{ inputs.targets }} --include-regex 'better_sqlite3.node$'
jobs:
input-setup:
if: inputs['ubuntu-22.04'] == true || inputs['windows-2022'] == true || inputs['macos-15-intel'] == true
name: Preparing tests
runs-on: ubuntu-latest
outputs:
platforms: ${{ steps.set-platforms.outputs.platforms }}
steps:
- name: Setting up platform matrix
id: set-platforms
run: |
INPUTS='${{ toJSON(inputs) }}'
PLATFORMS='{"os":[]}'
for os in 'ubuntu-22.04' 'windows-2022' 'macos-15-intel'
do
if [ "$(jq ".[\"$os\"]" <<< "$INPUTS")" = "true" ]; then PLATFORMS=$(jq -c ".os += [\"$os\"]" <<< "$PLATFORMS"); fi
done
echo "platforms=$PLATFORMS" >> $GITHUB_OUTPUT
prebuild-test:
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.input-setup.outputs.platforms) }}
name: Testing prebuild on ${{ matrix.os }}
needs: input-setup
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 20
- if: ${{ startsWith(matrix.os, 'windows') }}
run: pip.exe install setuptools
- if: ${{ startsWith(matrix.os, 'macos') }}
run: brew install python-setuptools
- if: ${{ !startsWith(matrix.os, 'windows') && !startsWith(matrix.os, 'macos') }}
run: python3 -m pip install setuptools
- if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: |
sudo apt update
sudo apt install gcc-10 g++-10 -y
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 --slave /usr/bin/gcov gcov /usr/bin/gcov-10
- run: npm install --ignore-scripts
- run: ${{ env.TEST_COMMAND }}
- if: matrix.os == 'windows-2022' && inputs.arm == true
run: ${{ env.TEST_COMMAND }} --arch arm64
prebuild-test-mac-arm64:
if: inputs.macos-15-intel == true && inputs.arm == true
name: Testing prebuild on macOS (arm64)
runs-on: macos-15
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 20
- run: brew install python-setuptools
- run: npm install --ignore-scripts
- run: ${{ env.TEST_COMMAND }}
prebuild-test-alpine-linux:
if: inputs.alpine == true
name: Testing prebuild on Alpine-Linux (x64)
runs-on: ubuntu-latest
container: node:20-alpine
steps:
- uses: actions/checkout@v6
- run: apk add build-base git python3 py3-setuptools --update-cache
- run: npm install --ignore-scripts
- run: ${{ env.TEST_COMMAND }}
prebuild-test-alpine-linux-arm64:
if: inputs.alpine == true && inputs.arm == true
name: Testing prebuild on Alpine-Linux (arm64)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: docker/setup-qemu-action@v4
- run: |
docker run --rm -v $(pwd):/tmp/project --entrypoint /bin/sh --platform linux/arm64 node:20-alpine -c "\
apk add build-base git python3 py3-setuptools --update-cache && \
cd /tmp/project && \
npm install --ignore-scripts && \
${{ env.TEST_COMMAND }}"
prebuild-test-linux-arm:
if: inputs['ubuntu-22.04'] == true && inputs.arm == true
strategy:
fail-fast: false
matrix:
arch:
- arm/v7
- arm64
name: Testing prebuild on Linux (${{ matrix.arch }})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: docker/setup-qemu-action@v4
- run: |
docker run --rm -v $(pwd):/tmp/project --entrypoint /bin/sh --platform linux/${{ matrix.arch }} node:20-bullseye -c "\
cd /tmp/project && \
npm install --ignore-scripts && \
${{ env.TEST_COMMAND }}"
-136
View File
@@ -1,136 +0,0 @@
name: prebuild
on:
release:
types:
- published
env:
NODE_BUILD_CMD_LEGACY: npx --no-install prebuild -r node -t 22.0.0 -t 24.0.0 --include-regex 'better_sqlite3.node$' -u ${{ secrets.GITHUB_TOKEN }}
NODE_BUILD_CMD_MODERN: npx --no-install prebuild -r node -t 26.0.0 --include-regex 'better_sqlite3.node$' -u ${{ secrets.GITHUB_TOKEN }}
ELECTRON_BUILD_CMD_LEGACY: npx --no-install prebuild -r electron -t 29.0.0 -t 30.0.0 -t 31.0.0 -t 32.0.0 -t 33.0.0 -t 34.0.0 -t 35.0.0 -t 36.0.0 -t 37.0.0 -t 38.0.0 --include-regex 'better_sqlite3.node$' -u ${{ secrets.GITHUB_TOKEN }}
ELECTRON_BUILD_CMD_MODERN: npx --no-install prebuild -r electron -t 39.0.0 -t 40.0.0 -t 41.0.0 -t 42.3.0 --include-regex 'better_sqlite3.node$' -u ${{ secrets.GITHUB_TOKEN }}
jobs:
prebuild:
strategy:
fail-fast: false
matrix:
os:
- macos-15
- macos-15-intel
- windows-2022
name: Prebuild on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 20
- if: ${{ startsWith(matrix.os, 'windows') }}
run: pip.exe install setuptools
- if: ${{ startsWith(matrix.os, 'macos') }}
run: brew install python-setuptools
- run: npm install --ignore-scripts
- run: ${{ env.NODE_BUILD_CMD_LEGACY }}
- run: ${{ env.NODE_BUILD_CMD_MODERN }}
- run: ${{ env.ELECTRON_BUILD_CMD_LEGACY }}
- run: ${{ env.ELECTRON_BUILD_CMD_MODERN }}
- if: matrix.os == 'windows-2022'
run: |
${{ env.NODE_BUILD_CMD_LEGACY }} --arch ia32
${{ env.NODE_BUILD_CMD_LEGACY }} --arch arm64
${{ env.NODE_BUILD_CMD_MODERN }} --arch ia32
${{ env.NODE_BUILD_CMD_MODERN }} --arch arm64
${{ env.ELECTRON_BUILD_CMD_LEGACY }} --arch ia32
${{ env.ELECTRON_BUILD_CMD_LEGACY }} --arch arm64
${{ env.ELECTRON_BUILD_CMD_MODERN }} --arch ia32
${{ env.ELECTRON_BUILD_CMD_MODERN }} --arch arm64
prebuild-linux:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- ubuntu-24.04-arm
image:
- node:20-bullseye
- node:20-bookworm
include:
- image: node:20-bullseye
generation: legacy
- image: node:20-bookworm
generation: modern
- os: ubuntu-latest
arch: x64
- os: ubuntu-24.04-arm
arch: arm64
name: Prebuild on Linux ${{ matrix.arch }} (${{ matrix.generation }})
runs-on: ${{ matrix.os }}
container: ${{ matrix.image }}
steps:
- uses: actions/checkout@v6
- run: npm install --ignore-scripts
- if: matrix.generation == 'legacy'
run: |
${{ env.NODE_BUILD_CMD_LEGACY }}
${{ env.ELECTRON_BUILD_CMD_LEGACY }}
- if: matrix.generation == 'modern'
run: |
${{ env.NODE_BUILD_CMD_MODERN }}
${{ env.ELECTRON_BUILD_CMD_MODERN }}
prebuild-linux-armv7:
strategy:
fail-fast: false
matrix:
image:
- node:20-bullseye
- node:20-bookworm
include:
- image: node:20-bullseye
generation: legacy
- image: node:20-bookworm
generation: modern
name: Prebuild on Linux armv7 (${{ matrix.generation }})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: docker/setup-qemu-action@v4
- if: matrix.generation == 'legacy'
run: |
docker run --rm -v $(pwd):/tmp/project --entrypoint /bin/sh --platform linux/arm/v7 ${{ matrix.image }} -c "\
cd /tmp/project && \
npm install --ignore-scripts && \
${{ env.NODE_BUILD_CMD_LEGACY }}"
- if: matrix.generation == 'modern'
run: |
docker run --rm -v $(pwd):/tmp/project --entrypoint /bin/sh --platform linux/arm/v7 ${{ matrix.image }} -c "\
cd /tmp/project && \
npm install --ignore-scripts && \
${{ env.NODE_BUILD_CMD_MODERN }}"
prebuild-alpine-linux:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- ubuntu-24.04-arm
include:
- os: ubuntu-latest
arch: x64
- os: ubuntu-24.04-arm
arch: arm64
name: Prebuild on Alpine-Linux (${{ matrix.arch }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- run: |
docker run --rm -v $(pwd):/tmp/project --entrypoint /bin/sh node:20-alpine -c "\
apk add build-base git python3 py3-setuptools --update-cache && \
cd /tmp/project && \
npm install --ignore-scripts && \
${{ env.NODE_BUILD_CMD_LEGACY }} && \
${{ env.NODE_BUILD_CMD_MODERN }}"
-84
View File
@@ -1,84 +0,0 @@
name: test
on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
workflow_dispatch:
jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-22.04
- ubuntu-24.04-arm
- macos-15
- macos-15-intel
- windows-2022
node:
- 22
- 24
- 26
name: Testing Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node }}
- if: ${{ startsWith(matrix.os, 'windows') }}
run: pip.exe install setuptools
- if: ${{ startsWith(matrix.os, 'macos') }}
run: brew install python-setuptools
- if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: python3 -m pip install setuptools
- if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.node < 25 }}
run: |
sudo apt update
sudo apt install gcc-10 g++-10 -y
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10
- if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.node >= 25 }}
run: |
sudo apt update
sudo apt install gcc-11 g++-11 -y
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11
- run: npm install --ignore-scripts
- run: npm run build-debug
- run: npm test
- name: Test SpatiaLite extension
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: |
sudo apt update
sudo apt install libsqlite3-mod-spatialite -y
node -e "require('./lib/index.js')(':memory:').loadExtension('mod_spatialite').exec('SELECT InitSpatialMetaData();')"
test-alpine-linux:
name: Testing Node 22 on Alpine-Linux
runs-on: ubuntu-latest
container: node:22-alpine
steps:
- uses: actions/checkout@v7
- run: apk add build-base git python3 py3-setuptools --update-cache
- run: npm install --ignore-scripts
- run: npm run build-debug
- run: npm test
test-alpine-linux-arm64:
name: Testing Node 22 on Alpine-Linux (arm64)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: docker/setup-qemu-action@v4
- run: |
docker run --rm -v $(pwd):/tmp/project --entrypoint /bin/sh --platform linux/arm64 node:22-alpine -c "\
apk add build-base git python3 py3-setuptools --update-cache && \
cd /tmp/project && \
npm install --ignore-scripts && \
npm run build-debug && \
npm test"
-58
View File
@@ -1,58 +0,0 @@
name: update-sqlite3mc
run-name: SQLite3MC update PR for ${{ inputs.version }} (SQLite ${{ inputs.sqlite_version }})
on:
workflow_dispatch:
inputs:
version:
description: 'SQLite3MultipleCiphers version (prefixed with "v")'
required: true
sqlite_release_year:
description: 'SQLite release year'
default: '2026'
required: true
sqlite_version:
description: 'SQLite version'
required: true
sqlite_version_enc:
description: 'SQLite version (encoded)'
required: true
jobs:
download-and-update:
name: Download and update SQLite3MultipleCiphers
runs-on: ubuntu-latest
env:
ENV_VERSION: ${{ github.event.inputs.version }}
ENV_SQLITE_RELEASE_YEAR: ${{ github.event.inputs.sqlite_release_year }}
ENV_SQLITE_VERSION: ${{ github.event.inputs.sqlite_version }}
ENV_SQLITE_VERSION_ENC: ${{ github.event.inputs.sqlite_version_enc }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: 20
- name: Create new update branch
run: git checkout -b sqlite3mc-update-${{ env.ENV_VERSION }}
- name: Update update-sqlite3mc script
run: |
sed -Ei "s/YEAR=\"[0-9]+\"/YEAR=\"${{ env.ENV_SQLITE_RELEASE_YEAR }}\"/g" ./deps/update-sqlite3mc.sh
sed -Ei "s/VERSION=\"[0-9]+\"/VERSION=\"${{ env.ENV_SQLITE_VERSION_ENC }}\"/g" ./deps/update-sqlite3mc.sh
sed -Ei "s/SQLITE3MC_VERSION=\"v[0-9]+.[0-9]+.[0-9]+\"/SQLITE3MC_VERSION=\"${{ env.ENV_VERSION }}\"/g" ./deps/update-sqlite3mc.sh
- name: Download, build and package SQLite and SQLite3MC
run: npm run update-sqlite3mc
- name: Push update branch
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: 'Update `SQLite3MultipleCiphers` to `${{ env.ENV_VERSION }}` (SQLite `${{ env.ENV_SQLITE_VERSION }}`)'
branch: sqlite3mc-update-${{ env.ENV_VERSION }}
- name: Create new PR
uses: repo-sync/pull-request@v2
with:
github_token: ${{ secrets.ACTIONS_REPO_ACCESS }}
source_branch: sqlite3mc-update-${{ env.ENV_VERSION }}
pr_title: 'Update `SQLite3MultipleCiphers` to `${{ env.ENV_VERSION }}` (SQLite `${{ env.ENV_SQLITE_VERSION }}`)'
pr_body: 'This is an automated pull request, updating `SQLite3MultipleCiphers` version to `${{ env.ENV_VERSION }}` with SQLite `${{ env.ENV_SQLITE_VERSION }}`.'