CI: add Alpine multi-platform CI #2924
Workflow file for this run
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: On PRs - Linux-Ubuntu Matrix | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
paths-ignore: | |
- "*.md" | |
jobs: | |
Alpine: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
build_type: ['Release', 'Debug'] | |
platform: ['x86','armhf','armv7','aarch64','ppc64le','riscv64','s390x'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: jirutka/setup-alpine@v1 | |
with: | |
branch: edge | |
arch: ${{matrix.platform}} | |
packages: > | |
build-base cmake samurai pkgconf curl-dev expat-dev gettext-tiny-dev gtest-dev inih-inireader-dev zlib-dev | |
- name: Compile and Test | |
run: | | |
cmake --preset base_linux -S . -DCMAKE_BUILD_TYPE=${{matrix.build_type}} | |
cmake --build build-base_linux --parallel | |
ctest --output-on-failure build-base_linux | |
shell: alpine.sh {0} |