Merge pull request #28 from indexdata/malc-rhel-9 #46
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
# Build metaproxy | |
name: Build metaproxy | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Clone YAZ | |
uses: actions/checkout@v3 | |
with: | |
repository: indexdata/yaz | |
path: yaz | |
ref: master | |
- name: Clone YAZPP | |
uses: actions/checkout@v3 | |
with: | |
repository: indexdata/yazpp | |
path: yazpp | |
ref: master | |
- name: Update packages | |
run: sudo apt update | |
- name: Install required and optional dependencies | |
run: > | |
sudo apt install autoconf automake libtool gcc g++ make bison | |
tclsh xsltproc docbook docbook-xml docbook-xsl inkscape | |
pkg-config libxslt1-dev libgnutls28-dev libicu-dev | |
libboost-dev libboost-system-dev libboost-thread-dev | |
libboost-test-dev libboost-regex-dev | |
- name: Run buildconf for YAZ | |
run: cd yaz && ./buildconf.sh | |
- name: Run configure for YAZ | |
run: > | |
cd yaz && ./configure --disable-shared --enable-static | |
- name: Run make for YAZ | |
run: cd yaz && make -j4 | |
- name: Run buildconf for YAZ++ | |
run: cd yazpp && ./buildconf.sh | |
- name: Run configure for YAZ++ | |
run: > | |
cd yazpp && ./configure --with-yaz=../yaz | |
--disable-shared --enable-static | |
- name: Run make for YAZ++ | |
run: cd yazpp && make -j4 | |
- name: Run buildconf for metaproxy | |
run: ./buildconf.sh | |
- name: Run configure for metaproxy | |
run: > | |
./configure --with-yazpp=yazpp --disable-shared --enable-static | |
- name: Run make check for metaproxy | |
run: make -j4 check | |
- name: Run make dist metaproxy | |
run: make dist |