From 879d4b8fb59d6ccd3b59d3e026fbc3e22327a4d2 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 | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e801b74..ebcb8ef 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: @@ -54,6 +45,7 @@ jobs: with: toolchain: ${{ matrix.rust }} + - name: Install postgreSQL (Linux) if: matrix.os == 'ubuntu-latest' run: | @@ -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