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