Skip to content

Commit

Permalink
Add build matrix to Windows and Linux builds
Browse files Browse the repository at this point in the history
Build matrix is missing from the ignore workflows for the Windows and
Linux builds, so this commit adds them.
  • Loading branch information
mkindahl committed Jan 18, 2023
1 parent 6aa3d6e commit 8f4fa8e
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/linux-build-and-test-ignored.yaml
Expand Up @@ -16,6 +16,25 @@ on:
- 'LICENSE*'
- NOTICE
jobs:
matrixbuilder:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout source code
uses: actions/checkout@v3

- name: Build matrix
id: set-matrix
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]] ;
then
git fetch origin ${{ github.base_ref }}:base
.github/gh_matrix_builder.py ${{ github.event_name }} base
else
.github/gh_matrix_builder.py ${{ github.event_name }}
fi
regress:
runs-on: ubuntu-latest
steps:
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/windows-build-and-test-ignored.yaml
Expand Up @@ -18,8 +18,56 @@ on:
- NOTICE
- 'bootstrap*'
jobs:
config:
runs-on: ubuntu-latest
outputs:
build_type: ${{ steps.build_type.outputs.build_type }}
pg12_latest: ${{ steps.config.outputs.pg12_latest }}
pg13_latest: ${{ steps.config.outputs.pg13_latest }}
pg14_latest: ${{ steps.config.outputs.pg14_latest }}
pg15_latest: ${{ steps.config.outputs.pg15_latest }}

steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Read configuration
id: config
run: python .github/gh_config_reader.py
- name: Set build_type
id: build_type
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
echo "build_type=['Debug']" >>$GITHUB_OUTPUT
else
echo "build_type=['Debug','Release']" >>$GITHUB_OUTPUT
fi
build:
runs-on: ubuntu-latest
needs: config
strategy:
fail-fast: false
matrix:
pg: [ 12, 13, 14, 15 ]
os: [ windows-2022 ]
build_type: ${{ fromJson(needs.config.outputs.build_type) }}
ignores: ["chunk_adaptive metadata"]
tsl_ignores: ["compression_algos remote_connection"]
tsl_skips: ["bgw_db_scheduler bgw_db_scheduler_fixed cagg_ddl_dist_ht data_fetcher dist_compression dist_move_chunk dist_remote_error remote_txn"]
pg_config: ["-cfsync=off -cstatement_timeout=60s"]
include:
- pg: 12
pkg_version: ${{ fromJson(needs.config.outputs.pg12_latest) }}.1
tsl_skips_version: dist_partial_agg-12
- pg: 13
pkg_version: ${{ fromJson(needs.config.outputs.pg13_latest) }}.1
tsl_skips_version: dist_grant-13 dist_partial_agg-13
- pg: 14
pkg_version: 14.5.1 # hardcoded due to issues with PG14.6 on chocolatey
tsl_skips_version: dist_partial_agg-14 dist_grant-14
- pg: 15
pkg_version: 15.0.1 # hardcoded due to issues with PG15.1 on chocolatey
tsl_skips_version: dist_partial_agg-15 dist_grant-15
tsl_ignores_version: partialize_finalize
steps:
- run: |
echo "No build required"

0 comments on commit 8f4fa8e

Please sign in to comment.