Make compilation musl compatible #69
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: CI | |
on: [push, pull_request] | |
jobs: | |
build-and-test: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
# >= we can make C++-17 work on bionic with the ubuntu-toolchain-r PPA | |
# use a tool like, e.g., linuxdeploy-plugin-checkrt to bundle libstdc++ when building libappimage-based packages on bionic | |
- DIST: bionic | |
ARCH: x86_64 | |
- DIST: bionic | |
ARCH: i386 | |
# CentOS 7 based Docker images can use devtoolset-9 to get a compatible compiler (as demonstrated by appimagebuild) | |
# (devtoolset compilers can build ABI compatible builds by embedding parts of libc/libstdc++, so ld-p-checkrt is not needed) | |
- DIST: appimagebuild | |
ARCH: x86_64 | |
- DIST: appimagebuild | |
ARCH: i386 | |
# special builds | |
- DIST: bionic | |
ARCH: x86_64 | |
BUILD_TYPE: coverage | |
- DIST: bionic | |
ARCH: x86_64 | |
BUILD_TYPE: shared-only | |
LIBAPPIMAGE_SHARED_ONLY: 1 | |
name: ${{ matrix.BUILD_TYPE }} ${{ matrix.DIST }} ${{ matrix.ARCH }} shared-only=${{ matrix.LIBAPPIMAGE_SHARED_ONLY }} | |
runs-on: ubuntu-latest | |
env: | |
ARCH: ${{ matrix.ARCH }} | |
DIST: ${{ matrix.DIST }} | |
BUILD_TYPE: ${{ matrix.DIST }} | |
LIBAPPIMAGE_SHARED_ONLY: ${{ matrix.LIBAPPIMAGE_SHARED_ONLY }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Build libappimage and run tests | |
run: bash -ex ci/build-in-docker.sh | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
docs: | |
name: docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install dependencies | |
run: sudo apt-get install -y doxygen | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Build API docs | |
run: cd docs/ && ./make.sh html |