Merge pull request #105 from hammera/docker_update #110
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: Make check | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
LIBLOUIS_VERSION: 3.29.0 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build with liblouis ${{ matrix.liblouis }} | |
strategy: | |
matrix: | |
liblouis: [stable, master] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: sudo apt-get update -qq && sudo apt-get install -y texinfo libxml2-dev libxml2 openjdk-8-jdk | |
- name: Fetch and build liblouis master | |
run: | | |
wget https://github.com/liblouis/liblouis/archive/master.tar.gz | |
tar -xf master.tar.gz | |
( cd liblouis-* && ./autogen.sh && ./configure && make && sudo make install ) | |
sudo ldconfig | |
if: matrix.liblouis == 'master' | |
- name: Fetch and build liblouis stable | |
run: | | |
wget https://github.com/liblouis/liblouis/releases/download/v${LIBLOUIS_VERSION}/liblouis-${LIBLOUIS_VERSION}.tar.gz | |
tar -xf liblouis-*.tar.gz | |
( cd liblouis-${LIBLOUIS_VERSION} && ./configure && make && sudo make install ) | |
sudo ldconfig | |
if: matrix.liblouis == 'stable' | |
- name: Autogen && configure | |
run: | | |
./autogen.sh | |
./configure | |
- name: make check | |
run: make check | |
- name: Store the test suite log | |
if: ${{ always() }} # store the test suite log even if the tests failed | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test-suite-liblouis-${{ matrix.liblouis }}.log | |
path: tests/test-suite.log | |