windows build attempt to find libpq #11
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: 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 |