Skip to content

Commit

Permalink
Adds windows-latest ci target
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpii committed Oct 9, 2023
1 parent 17764a6 commit c37307c
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,10 @@ jobs:
name: Tests
strategy:
matrix:
rust: ["stable", "beta", "nightly"]
os: ["ubuntu-latest", "macos-latest"]
pg: ["11", "12", "13", "14"]
mode: ["debug", "release"]
exclude:
- os: "macos-latest"
pg: "10"
- os: "macos-latest"
pg: "11"
- os: "macos-latest"
pg: "12"
- os: "macos-latest"
pg: "13"
rust: ["stable"]
os: ["windows-latest"]
pg: ["10"]
mode: ["debug"]
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -78,15 +69,18 @@ jobs:
if: matrix.os == 'windows-latest'
shell: bash
run: |
choco install postgresql --force --params '/Password:root'
choco install postgresql${{ matrix.pg }} --force --params '/Password:root'
- name: Sets feature variable
shell: bash
run: |
if (( $(echo "${{ matrix.pg }} >= 11" | bc -l) ))
if [[ ${{ matrix.pg }} -ge 11 ]]
then
echo "feature=v$(echo ${{ matrix.pg }} | sed 's/\./_/')" >> $GITHUB_ENV
else
echo "feature=default" >> $GITHUB_ENV
fi
echo "PQ_LIB_DIR=C:\Program Files\PostgreSQL\${{ matrix.pg }}\lib" >> $GITHUB_ENV
- name: Rustup update
run: rustup update
Expand Down

0 comments on commit c37307c

Please sign in to comment.