From 68d7c620929a9a79e19a936b3c635b1b7002e630 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 22 Mar 2024 18:38:05 +0100 Subject: [PATCH] Add animal to build with meson --- .github/workflows/run.yaml | 9 ++++++--- .github/workflows/test.yaml | 14 ++++++++++---- Dockerfile | 23 ++++++++++++++++++++++- meson.conf | 27 +++++++++++++++++++++++++++ 4 files changed, 65 insertions(+), 8 deletions(-) create mode 100644 meson.conf diff --git a/.github/workflows/run.yaml b/.github/workflows/run.yaml index ced1eab..59e5d17 100644 --- a/.github/workflows/run.yaml +++ b/.github/workflows/run.yaml @@ -12,6 +12,9 @@ jobs: strategy: fail-fast: false matrix: + builder: + - autoconf + - meson branch: - REL_12_STABLE - REL_13_STABLE @@ -19,7 +22,7 @@ jobs: - REL_15_STABLE - REL_16_STABLE - HEAD - name: ${{ matrix.branch }} + name: ${{ matrix.branch }} (${{ matrix.builder }}) steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Set up Docker Buildx @@ -36,7 +39,7 @@ jobs: - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: path: buildroot - key: run-alpine-autoconf-${{ matrix.branch }} + key: run-alpine-${{ matrix.builder }}-${{ matrix.branch }} - name: Run buildfarm client run: | mkdir -p buildroot @@ -45,7 +48,7 @@ jobs: -u "$(id -u):$(id -g)" \ buildfarm-client:alpine \ --test \ - --config autoconf.conf \ + --config ${{ matrix.builder }}.conf \ --delay-check \ ${{ matrix.branch }} # TODO: Remove --delay-check once this is fixed: diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5d3aec1..12f5f54 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -9,7 +9,13 @@ on: jobs: test: runs-on: ubuntu-latest - name: Test autoconf + strategy: + fail-fast: false + matrix: + builder: + - autoconf + - meson + name: Test ${{ matrix.builder }} steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Set up Docker Buildx @@ -26,8 +32,8 @@ jobs: - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: path: buildroot - key: test-alpine-autoconf - - name: Test autoconf.conf + key: test-alpine-${{ matrix.builder }} + - name: Test ${{ matrix.builder }}.conf run: | mkdir -p buildroot docker run --rm \ @@ -35,7 +41,7 @@ jobs: -u "$(id -u):$(id -g)" \ buildfarm-client:alpine \ --test \ - --config autoconf.conf \ + --config ${{ matrix.builder }}.conf \ --delay-check # TODO: Remove --delay-check once this is fixed: # https://www.postgresql.org/message-id/flat/fddd1cd6-dc16-40a2-9eb5-d7fef2101488%40technowledgy.de \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index a3b9b44..13ec531 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,9 @@ RUN apk add \ libxslt-dev \ linux-headers \ linux-pam-dev \ + lz4-dev \ + meson \ + ninja \ nss_wrapper \ openldap-dev \ openssl-dev \ @@ -27,13 +30,31 @@ RUN apk add \ python3-dev \ readline-dev \ tcl-dev \ - zlib-dev + zlib-dev \ + zstd-dev # renovate: datasource=github-tags depName=buildfarm-client lookupName=PGBuildFarm/client-code versioning=redhat extractVersion=REL_(?.*) ARG BUILDFARM_CLIENT_VERSION=REL_17 RUN git clone --depth 1 --branch ${BUILDFARM_CLIENT_VERSION} https://github.com/PGBuildFarm/client-code /usr/src +WORKDIR /usr/src + +# TODO: Upstream this patch to PGBuildFarm/client-code +RUN git apply - <