Skip to content

fix: update release process to include DuckDB library in binaries #645

fix: update release process to include DuckDB library in binaries

fix: update release process to include DuckDB library in binaries #645

Workflow file for this run

name: Nim
permissions:
contents: read
on:
pull_request:
branches:
- '*'
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
info:
- {
os: "ubuntu-latest",
target: "x86_64-unknown-linux-gnu",
cross: false,
}
- {
os: "windows-latest",
target: "x86_64-pc-windows-msvc",
cross: false,
}
runs-on: ${{ matrix.info.os }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: jiro4989/setup-nim-action@cb1fc1270b117457dd0d9f610ec981fad3369cec # v2.3.0
with:
nim-version: '2.x' # default is 'stable'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install DuckDB (Ubuntu)
if: matrix.info.os == 'ubuntu-latest'
run: |
wget -q https://github.com/duckdb/duckdb/releases/download/v1.2.1/libduckdb-linux-amd64.zip
unzip -o libduckdb-linux-amd64.zip -d duckdb_lib
sudo cp duckdb_lib/duckdb.h /usr/local/include/
sudo cp duckdb_lib/libduckdb.so /usr/local/lib/
sudo ldconfig
- name: Install DuckDB (Windows)
if: matrix.info.os == 'windows-latest'
shell: pwsh
run: |
Invoke-WebRequest -Uri "https://github.com/duckdb/duckdb/releases/download/v1.2.1/libduckdb-windows-amd64.zip" -OutFile duckdb.zip
Expand-Archive -Path duckdb.zip -DestinationPath duckdb_lib
Copy-Item duckdb_lib\duckdb.dll -Destination .
- name: Build check
run: nimble build --threads:on -Y
- name: Run tests
run: nimble test --threads:on -Y