upgrade to duckdb 1.1.3 and bump pkg versions #140
Workflow file for this run
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
name: DuckDB Node Bindings & API | |
on: | |
pull_request: | |
workflow_dispatch: | |
inputs: | |
publish_dry_run: | |
description: 'Publish Dry Run' | |
type: boolean | |
required: true | |
default: true | |
linux: | |
description: 'Run on Linux' | |
type: boolean | |
required: true | |
default: false | |
publish_linux_x64: | |
description: 'Publish Bindings for Linux x64' | |
type: boolean | |
required: true | |
default: false | |
publish_bindings: | |
description: 'Publish Bindings (from Linux)' | |
type: boolean | |
required: true | |
default: false | |
publish_api: | |
description: 'Publish API (from Linux)' | |
type: boolean | |
required: true | |
default: false | |
macos: | |
description: 'Run on Mac OS' | |
type: boolean | |
required: true | |
default: false | |
publish_darwin_arm64: | |
description: 'Publish Bindings for Darwin ARM64' | |
type: boolean | |
required: true | |
default: false | |
windows: | |
description: 'Run on Windows' | |
type: boolean | |
required: true | |
default: false | |
publish_win32_x64: | |
description: 'Publish Bindings for Win32 x64' | |
type: boolean | |
required: true | |
default: false | |
repository_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }}-${{ github.ref != 'refs/heads/main' || github.sha }} | |
cancel-in-progress: false | |
jobs: | |
linux: | |
name: Linux | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name != 'workflow_dispatch' || inputs.linux }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- name: Workspace - Install | |
run: pnpm install --ignore-scripts | |
- name: Bindings - Build | |
working-directory: bindings | |
run: pnpm run build | |
- name: Bindings - Test | |
working-directory: bindings | |
run: pnpm test | |
- name: API - Build | |
working-directory: api | |
run: pnpm run build | |
- name: API - Test | |
working-directory: api | |
run: pnpm test | |
- name: Git Status | |
if: ${{ inputs.publish_linux_x64 || inputs.publish_bindings || inputs.publish_api }} | |
run: git status | |
- name: Publish - Bindings - Linux x64 | |
if: ${{ inputs.publish_linux_x64 }} | |
working-directory: bindings/pkgs/@duckdb/node-bindings-linux-x64 | |
run: pnpm publish ${{ inputs.publish_dry_run && '--dry-run' || '' }} --publish-branch ${{ github.ref_name }} --access public | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.DUCKDB_NPM_TOKEN }} | |
- name: Publish - Bindings | |
if: ${{ inputs.publish_bindings }} | |
working-directory: bindings/pkgs/@duckdb/node-bindings | |
run: pnpm publish ${{ inputs.publish_dry_run && '--dry-run' || '' }} --publish-branch ${{ github.ref_name }} --access public | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.DUCKDB_NPM_TOKEN }} | |
- name: Publish - API | |
if: ${{ inputs.publish_api }} | |
working-directory: api/pkgs/@duckdb/node-api | |
run: pnpm publish ${{ inputs.publish_dry_run && '--dry-run' || '' }} --publish-branch ${{ github.ref_name }} --access public | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.DUCKDB_NPM_TOKEN }} | |
macos: | |
name: Mac OS X | |
runs-on: macos-latest | |
if: ${{ github.event_name != 'workflow_dispatch' || inputs.macos }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- name: Workspace - Install | |
run: pnpm install --ignore-scripts | |
- name: Bindings - Build | |
working-directory: bindings | |
run: pnpm run build | |
- name: Bindings - Test | |
working-directory: bindings | |
run: pnpm test | |
- name: API - Build | |
working-directory: api | |
run: pnpm run build | |
- name: API - Test | |
working-directory: api | |
run: pnpm test | |
- name: Git Status | |
if: ${{ inputs.publish_darwin_arm64 }} | |
run: git status | |
- name: Publish - Bindings - Darwin ARM64 | |
if: ${{ inputs.publish_darwin_arm64 }} | |
working-directory: bindings/pkgs/@duckdb/node-bindings-darwin-arm64 | |
run: pnpm publish ${{ inputs.publish_dry_run && '--dry-run' || '' }} --publish-branch ${{ github.ref_name }} --access public | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.DUCKDB_NPM_TOKEN }} | |
windows: | |
name: Windows | |
runs-on: windows-latest | |
if: ${{ github.event_name != 'workflow_dispatch' || inputs.windows }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- name: Workspace - Install | |
run: pnpm install --ignore-scripts | |
- name: Bindings - Build | |
working-directory: bindings | |
run: pnpm run build | |
- name: Bindings - Test | |
working-directory: bindings | |
run: pnpm test | |
- name: API - Build | |
working-directory: api | |
run: pnpm run build | |
- name: API - Test | |
working-directory: api | |
run: pnpm test | |
- name: Git Status | |
if: ${{ inputs.publish_win32_x64 }} | |
run: git status | |
- name: Publish - Bindings - Win32 x64 | |
if: ${{ inputs.publish_win32_x64 }} | |
working-directory: bindings/pkgs/@duckdb/node-bindings-win32-x64 | |
run: pnpm publish ${{ inputs.publish_dry_run && '--dry-run' || '' }} --publish-branch ${{ github.ref_name }} --access public | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.DUCKDB_NPM_TOKEN }} |