From 56efad88a12f492f2918e5a45c71990736456143 Mon Sep 17 00:00:00 2001 From: "wenjing.zwj" Date: Wed, 10 May 2023 13:59:48 +0800 Subject: [PATCH 1/3] add regression.yml for auto regress when have new commit --- .github/workflows/regression.yml | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/regression.yml diff --git a/.github/workflows/regression.yml b/.github/workflows/regression.yml new file mode 100644 index 0000000000000..1cbec7869048c --- /dev/null +++ b/.github/workflows/regression.yml @@ -0,0 +1,42 @@ +name: PostgreSQL regression + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup Perl environment + uses: shogo82148/actions-setup-perl@v1 + + - name: Restore install dependencies from cache + uses: actions/cache@v2 + id: cache-perl-env + with: + path: /opt/hostedtoolcache/perl + key: builddeps-${{ hashFiles('**/Build.PL') }} + restore-keys: | + builddeps- + + - name: Install perl modules + if: steps.cache-perl-env.outputs.cache-hit != 'true' + run: cpan -i IPC::Run Test::More Time::HiRes + + - name: Update dependencies + run: sudo apt-get update + - name: Install dependencies + run: sudo apt-get install -y gdb lcov libipc-run-perl libperl-dev tcl-dev libldap2-dev libicu-dev docbook docbook-xml docbook-dsssl docbook-xsl libxml2-utils opensp xsltproc krb5-admin-server krb5-kdc krb5-user slapd ldap-utils libssl-dev + + - name: configure + run: ./configure --enable-debug --enable-cassert --enable-tap-tests --with-tcl --with-python --with-ldap --with-openssl --with-icu && echo "COPT=-Wall -Werror" > src/Makefile.custom + - name: build + run: make -j4 all contrib docs + - name: regression + run: make check-world From a20648093461f9218105ebcf38c6f8682fcafbf9 Mon Sep 17 00:00:00 2001 From: "wenjing.zwj" Date: Wed, 11 Jun 2025 09:14:31 +0800 Subject: [PATCH 2/3] up cache from v2 to v4 --- .github/workflows/regression.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/regression.yml b/.github/workflows/regression.yml index 1cbec7869048c..6fbd85941c4a1 100644 --- a/.github/workflows/regression.yml +++ b/.github/workflows/regression.yml @@ -17,7 +17,7 @@ jobs: uses: shogo82148/actions-setup-perl@v1 - name: Restore install dependencies from cache - uses: actions/cache@v2 + uses: actions/cache@v4 id: cache-perl-env with: path: /opt/hostedtoolcache/perl From 6b6c9e5836ee3e6184d202c4b5dba54f5bfbefae Mon Sep 17 00:00:00 2001 From: "wenjing.zwj" Date: Wed, 11 Jun 2025 09:25:13 +0800 Subject: [PATCH 3/3] workflows add libreadline-dev --- .github/workflows/regression.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/regression.yml b/.github/workflows/regression.yml index 6fbd85941c4a1..8e22a067a45d6 100644 --- a/.github/workflows/regression.yml +++ b/.github/workflows/regression.yml @@ -32,7 +32,7 @@ jobs: - name: Update dependencies run: sudo apt-get update - name: Install dependencies - run: sudo apt-get install -y gdb lcov libipc-run-perl libperl-dev tcl-dev libldap2-dev libicu-dev docbook docbook-xml docbook-dsssl docbook-xsl libxml2-utils opensp xsltproc krb5-admin-server krb5-kdc krb5-user slapd ldap-utils libssl-dev + run: sudo apt-get install -y gdb lcov libreadline-dev libipc-run-perl libperl-dev tcl-dev libldap2-dev libicu-dev docbook docbook-xml docbook-dsssl docbook-xsl libxml2-utils opensp xsltproc krb5-admin-server krb5-kdc krb5-user slapd ldap-utils libssl-dev - name: configure run: ./configure --enable-debug --enable-cassert --enable-tap-tests --with-tcl --with-python --with-ldap --with-openssl --with-icu && echo "COPT=-Wall -Werror" > src/Makefile.custom