Skip to content

windows build attempt to find libpq #11

windows build attempt to find libpq

windows build attempt to find libpq #11

Workflow file for this run

name: Create a new release
on:
push:
branches:
- fix/static_build
jobs:
release-windows:
name: Build for Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@main
- uses: actions-rs/toolchain@v1
- name: find pq
run: |
dir "C:\Program Files\PostgreSQL\14"
dir "C:\Program Files\PostgreSQL\14\bin"
dir "C:\Program Files\PostgreSQL\14\lib"
- name: try LIB_PQ_DIR with cargo build
run: echo "LIB_PQ_DIR=C:\Program Files\PostgreSQL\14\lib" >> $GITHUB_ENV
- name: Run Build
id: build-windows
continue-on-error: false
uses: actions-rs/cargo@v1
with:
command: build
args: --release --features=auth
- name: run fastn
run: ./target/release/fastn.exe --version