From 98f6b5f32a220372c7148f18f18d4db7afd1561d Mon Sep 17 00:00:00 2001 From: Florents Tselai Date: Mon, 23 Sep 2024 03:10:04 +0300 Subject: [PATCH 1/4] CI --- .github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..efc1f72 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,39 @@ +name: build +on: [ push, pull_request ] +jobs: + ubuntu: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: + # - postgres: 18 + # os: ubuntu-24.04 + # - postgres: 17 + # os: ubuntu-24.04 + - postgres: 16 + os: ubuntu-24.04 + - postgres: 15 + os: ubuntu-22.04 + - postgres: 14 + os: ubuntu-22.04 + - postgres: 13 + os: ubuntu-20.04 + # - postgres: 12 + # os: ubuntu-20.04 # jsonfuncs.h not available + + steps: + - uses: actions/checkout@v4 + - uses: ankane/setup-postgres@v1 + with: + postgres-version: ${{ matrix.postgres }} + dev-files: true + - run: make + # env: + # PG_CFLAGS: -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare + - run: | + export PG_CONFIG=`which pg_config` + sudo --preserve-env=PG_CONFIG make install + - run: make installcheck + - if: ${{ failure() }} + run: cat regression.diffs From 6b5c723af54e52773fe96980c50fae83c5bd911f Mon Sep 17 00:00:00 2001 From: Florents Tselai Date: Mon, 23 Sep 2024 03:11:25 +0300 Subject: [PATCH 2/4] CI --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index efc1f72..3b70315 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,7 +33,7 @@ jobs: # PG_CFLAGS: -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare - run: | export PG_CONFIG=`which pg_config` - sudo --preserve-env=PG_CONFIG make install + sudo --preserve-env=PG_CONFIG make USE_PGXS=1 install - run: make installcheck - if: ${{ failure() }} run: cat regression.diffs From 2f0ce6d876a480850b9c980786e8497333da9754 Mon Sep 17 00:00:00 2001 From: Florents Tselai Date: Mon, 23 Sep 2024 03:11:42 +0300 Subject: [PATCH 3/4] CI --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3b70315..ca499f9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,7 +28,7 @@ jobs: with: postgres-version: ${{ matrix.postgres }} dev-files: true - - run: make + - run: make USE_PGXS=1 # env: # PG_CFLAGS: -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare - run: | From fc80e1443c369c5fde3693dc9e57a9bcc6254b71 Mon Sep 17 00:00:00 2001 From: Florents Tselai Date: Mon, 23 Sep 2024 03:14:18 +0300 Subject: [PATCH 4/4] CI --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ca499f9..7166589 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,6 +34,6 @@ jobs: - run: | export PG_CONFIG=`which pg_config` sudo --preserve-env=PG_CONFIG make USE_PGXS=1 install - - run: make installcheck + - run: make USE_PGXS=1 installcheck - if: ${{ failure() }} run: cat regression.diffs