Skip to content

Commit

Permalink
Add files to build and test on Github Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
MasaoFujii committed Jul 18, 2024
1 parent 81facb5 commit 9342589
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: ci-linux
on:
push:
branches:
- "*"
jobs:
ci-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
pgopt:
- base
- disable-atomics-spinlocks
- cache-release
env:
PG_TEST_EXTRA: "ssl kerberos"
PGOPT: ${{ matrix.pgopt }}
steps:
- uses: actions/checkout@v2
- name: apt
run: |
sudo apt-get --yes update
sudo apt-get --yes install gcc libreadline-dev flex bison make perl libipc-run-perl clang llvm-dev libperl-dev libpython2-dev tcl-dev libldap2-dev libicu-dev docbook docbook-xml docbook-xsl fop libxml2-utils xsltproc opensp krb5-admin-server krb5-kdc krb5-user slapd ldap-utils libssl-dev pkg-config locales-all gdb
- name: configure
run: |
export CPPFLAGS="-DENFORCE_REGRESSION_TEST_NAME_RESTRICTIONS $CPPFLAGS"
if [ "${PGOPT}" = "cache-release" ]; then
export CPPFLAGS="-DRELCACHE_FORCE_RELEASE -DCATCACHE_FORCE_RELEASE $CPPFLAGS"
fi
CONFOPT=
if [ "${PGOPT}" = "disable-atomics-spinlocks" ]; then
export CONFOPT="--disable-atomics --disable-spinlocks $CONFOPT"
fi
./configure --prefix=$HOME/install --enable-debug --enable-cassert --enable-tap-tests -with-tcl --with-python --with-perl --with-ldap --with-openssl --with-icu --with-llvm $CONFOPT
- name: make
run: |
echo "COPT=-Wall -Werror" > src/Makefile.custom
make -s -j 4 all contrib docs
- name: make install
run: |
make -s install
- name: pg_config
run: |
$HOME/install/bin/pg_config
- name: make check-world
run: |
make -s -j 4 check-world
- name: after failure
if: failure()
run: |
for f in $(find . -name regression.diffs) ; do echo "========= Contents of $f" ; head -1000 $f ; done
for f in $(find . -name install.log) ; do echo "========= Contents of $f" ; tail -100 $f ; done

0 comments on commit 9342589

Please sign in to comment.