Skip to content

Commit

Permalink
CI: Configure LibPQ for actions
Browse files Browse the repository at this point in the history
  • Loading branch information
imsk17 committed Mar 16, 2024
1 parent 69c3ced commit 0ce5f4c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,27 @@ jobs:
target: ${{ matrix.target }}
override: true

- name: Install postgres (Windows)
if: matrix.os == 'windows-latest'
shell: bash
run: |
choco install postgresql12 --force --params '/Password:root'
echo "C:\Program Files\PostgreSQL\12\bin" >> $GITHUB_PATH
echo "C:\Program Files\PostgreSQL\12\lib" >> $GITHUB_PATH
echo "PQ_LIB_DIR=C:\Program Files\PostgreSQL\12\lib" >> $GITHUB_ENV
- name: Install postgres (MacOS M1)
if: matrix.os == 'macos-14' || matrix.os == 'macos-latest'
run: |
brew install postgresql
brew services start postgresql@14
- name: Install postgres (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libpq-dev postgresql
- name: Build
run: cargo build --release --target ${{ matrix.target }}

Expand Down

0 comments on commit 0ce5f4c

Please sign in to comment.