Skip to content

upgrade to duckdb 1.0.0 (#3) #40

upgrade to duckdb 1.0.0 (#3)

upgrade to duckdb 1.0.0 (#3) #40

Workflow file for this run

on:
workflow_dispatch:
push:
tags:
- '*'
branches:
- main
- master
jobs:
build:
name: build ${{ matrix.platform }} ${{ matrix.target }}
strategy:
matrix:
include:
# - platform: windows-latest
# target: x86_64-pc-windows-msvc
# duckdb_platform: windows_amd64
# library_output: duckdb_protobuf.dll
- platform: macos-latest
target: aarch64-apple-darwin
library_output: libduckdb_protobuf.dylib
duckdb_platform: osx_arm64
- platform: ubuntu-latest
target: x86_64-unknown-linux-gnu
library_output: libduckdb_protobuf.so
duckdb_platform: linux_amd64
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- run: cargo build --target ${{ matrix.target }} --release
- name: attach metadata
run: >
cargo run
--package duckdb_metadata_bin
--bin duckdb_metadata
--
--input target/${{ matrix.target }}/release/${{ matrix.library_output }}
--output target/${{ matrix.target }}/release/protobuf.duckdb_extension
--extension-version v0.0.1
--duckdb-version v1.0.0
--platform ${{ matrix.duckdb_platform }}
- name: save artifacts
if: success()
uses: actions/upload-artifact@v4
with:
name: build-${{ matrix.platform }}-${{ matrix.target }}
path: target/${{ matrix.target }}/release/protobuf.duckdb_extension
release:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v4
- run: |
mkdir release
mv build-macos-latest-aarch64-apple-darwin/protobuf.duckdb_extension ./release/protobuf.osx_arm64.duckdb_extension
mv build-ubuntu-latest-x86_64-unknown-linux-gnu/protobuf.duckdb_extension ./release/protobuf.linux_amd64.duckdb_extension
- name: release
uses: softprops/action-gh-release@v2
with:
files: release/*