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 879d4b8
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 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 All @@ -54,6 +45,7 @@ jobs:
with:
toolchain: ${{ matrix.rust }}


- name: Install postgreSQL (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
Expand Down Expand Up @@ -83,9 +75,11 @@ jobs:
- 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
- name: Rustup update
Expand Down

0 comments on commit 879d4b8

Please sign in to comment.