refactoring Readme for IvorySQL installation (#643) #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: oracle_regression | |
on: | |
push: | |
branches: [ master , IVORY_REL_3_STABLE ] | |
pull_request: | |
branches: [ master , IVORY_REL_3_STABLE ] | |
jobs: | |
oracle_regression: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: dependancy | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y build-essential git lcov bison flex \ | |
libkrb5-dev libssl-dev libldap-dev libpam-dev python3-dev \ | |
tcl-dev libperl-dev gettext libxml2-dev libxslt-dev \ | |
libreadline-dev libedit-dev uuid-dev libossp-uuid-dev \ | |
libipc-run-perl libtime-hires-perl libtest-simple-perl \ | |
libicu-dev | |
- name: configure - linux | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
curl -L -o cpanm http://cpanmin.us && chmod +x cpanm && \ | |
./cpanm --sudo IPC::Run && \ | |
./configure \ | |
--prefix=$PWD/inst \ | |
--enable-cassert --enable-debug --enable-tap-tests --enable-rpath \ | |
--with-tcl --with-python --with-gssapi --with-pam --with-ldap \ | |
--with-python --with-gssapi --with-pam --with-ldap \ | |
--with-openssl --with-libedit-preferred --with-uuid=e2fs \ | |
--with-ossp-uuid --with-libxml --with-libxslt --with-perl \ | |
--with-icu | |
- name: configure - macos | |
if: ${{ matrix.os == 'macos-latest' }} | |
run: | | |
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig" | |
curl -L -o cpanm http://cpanmin.us && chmod +x cpanm && \ | |
./cpanm --sudo IPC::Run && \ | |
./configure \ | |
--prefix=$PWD/inst \ | |
--enable-cassert --enable-debug --enable-tap-tests --enable-rpath \ | |
--with-tcl --with-python --with-pam --with-ldap \ | |
--with-libedit-preferred --with-uuid=e2fs --with-libxml \ | |
--with-libxslt --with-perl --with-icu | |
- name: compile | |
run: make && make install | |
- name: oracle_regression | |
run: make oracle-check-world | |
- name: collect files | |
if: failure() | |
run: | | |
find . \( -name "*.diffs" -or -name "oracle_regression.out" -or -path \*/tmp_check/log -or -path \*src/test/regress/log \) -print0 | | |
xargs -0 tar -czf oracle_regression.tar.gz | |
- name: upload oracle_regression files | |
if: failure() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: results | |
path: ${{ github.workspace }}/oracle_regression.tar.gz | |