Build: bump version to 0.6.0 #113
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: Build and tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
image: | |
- 'ubuntu:20.04' | |
- 'ubuntu:22.04' | |
- 'debian:buster' | |
- 'debian:bullseye' | |
- 'debian:bookworm' | |
- 'rockylinux:8' | |
- 'oraclelinux:8' | |
- 'oraclelinux:9' | |
name: Build on ${{ matrix.image }} | |
container: ${{ matrix.image }} | |
steps: | |
# Dependencies --------------------------------------------------------------------------- | |
- name: Install dependencies (Ubuntu/Debian) | |
if: startsWith(matrix.image, 'ubuntu') || startsWith(matrix.image, 'debian') | |
run: | | |
apt-get update | |
apt-get -y install git gcc g++ cmake make libxml2-dev liblz4-dev libzstd-dev | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
- name: Enable EPEL (Rocky Linux) | |
if: contains(matrix.image, 'rockylinux') | |
run: | | |
yum -y install epel-release | |
- name: Enable EPEL (Oracle Linux 8) | |
if: contains(matrix.image, 'oraclelinux:8') | |
run: | | |
dnf -y install oracle-epel-release-el8 | |
- name: Enable EPEL (Oracle Linux 9) | |
if: contains(matrix.image, 'oraclelinux:9') | |
run: | | |
dnf -y install oracle-epel-release-el9 | |
- name: Install dependencies (Rocky Linux, Oracle Linux) | |
if: contains(matrix.image, 'rockylinux') || contains(matrix.image, 'oraclelinux') | |
run: | | |
yum -y install git gcc gcc-c++ cmake make libxml2-devel lz4-devel libzstd-devel | |
# Checkout repository -------------------------------------------------------------------- | |
- uses: actions/checkout@v2 | |
# Build ---------------------------------------------------------------------------------- | |
- name: Build the project | |
run: | | |
mkdir build && cd build | |
cmake .. -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=1 | |
make && make install | |
- name: Run tests | |
run: cd build && make test |