Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve windows package test #4637

Merged
merged 1 commit into from Aug 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
43 changes: 40 additions & 3 deletions .github/workflows/windows-packages.yaml
Expand Up @@ -10,14 +10,51 @@ on:
branches:
- release_test
jobs:
config:
runs-on: ubuntu-latest
outputs:
pg12_earliest: ${{ steps.config.outputs.pg12_abi_min }}
pg13_earliest: ${{ steps.config.outputs.pg13_abi_min }}
pg14_earliest: ${{ steps.config.outputs.pg14_abi_min }}
Comment on lines +16 to +18
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't get it, where do we get pg??_abi_min from?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this supposed to be pg??_earliest instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pg12_latest: ${{ steps.config.outputs.pg12_latest }}
pg13_latest: ${{ steps.config.outputs.pg13_latest }}
pg14_latest: ${{ steps.config.outputs.pg14_latest }}

steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Read configuration
id: config
run: python .github/gh_config_reader.py

build:
name: Windows package PG${{ matrix.pg }}
name: Windows package PG${{ matrix.test }}
runs-on: ${{ matrix.os }}
needs: config
strategy:
fail-fast: false
matrix:
pg: [ 12, 13, 14 ]
test: [ "12min", "12max", "13min", "13max", "14min", "14max" ]
os: [ windows-2019 ]
include:
- test: 12min
pg: 12
pkg_version: ${{ fromJson(needs.config.outputs.pg12_earliest) }}
- test: 12max
pg: 12
pkg_version: ${{ fromJson(needs.config.outputs.pg12_latest) }}.1
- test: 13min
pg: 13
pkg_version: ${{ fromJson(needs.config.outputs.pg13_earliest) }}.1
- test: 13max
pg: 13
pkg_version: ${{ fromJson(needs.config.outputs.pg13_latest) }}.1
- test: 14min
pg: 14
pkg_version: ${{ fromJson(needs.config.outputs.pg14_earliest) }}.1
- test: 14max
pg: 14
pkg_version: ${{ fromJson(needs.config.outputs.pg14_latest) }}.1
env:
# PostgreSQL configuration
PGPORT: 6543
Expand All @@ -44,7 +81,7 @@ jobs:
run: |
choco feature disable --name=usePackageExitCodes
choco feature disable --name=showDownloadProgress
choco install postgresql${{ matrix.pg }} --force -y --install-args="'--prefix $HOME/PostgreSQL/${{ matrix.pg }} --extract-only yes'"
choco install postgresql${{ matrix.pg }} --version ${{ matrix.pkg_version }} --force -y --install-args="'--prefix $HOME/PostgreSQL/${{ matrix.pg }} --extract-only yes'"
choco install wget

- name: Install TimescaleDB
Expand Down