From 3156907acc7e927c1f6f754e8374b9bcfa5f56f6 Mon Sep 17 00:00:00 2001 From: Sanpi Date: Sat, 9 Jul 2022 10:10:31 +0200 Subject: [PATCH] Adds windows-latest ci target --- .github/workflows/ci.yml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e801b74..1498651 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -78,14 +69,16 @@ 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 - name: Rustup update