Skip to content

Commit

Permalink
linux CI: add Alpine CI
Browse files Browse the repository at this point in the history
Allows to test multiple non x86 platforms.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
  • Loading branch information
neheb committed Feb 17, 2024
1 parent bd25700 commit 5b9f6e5
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,35 @@ jobs:

- name: Run tests
run: ctest --test-dir _build
Alpine:
runs-on: ubuntu-20.04
strategy:
matrix:
platform: ['armhf', 'aarch64', 's390x']
env:
CMAKE_OPTIONS: -DDEV_MODE=ON -DBUILD_TESTING=ON
defaults:
run:
shell: alpine.sh {0}
steps:
- name: Get pushed code
uses: actions/checkout@v3

- uses: jirutka/setup-alpine@v1
with:
branch: edge
arch: ${{matrix.platform}}
packages: >
build-base cmake
- name: Configure
run: cmake -S . -B _build ${{ env.CMAKE_OPTIONS }} -DCMAKE_INSTALL_PREFIX:STRING=${GITHUB_WORKSPACE}/_built

- name: Build
run: cmake --build _build --parallel --verbose

- name: Test installation
run: cmake --install _build --prefix ${GITHUB_WORKSPACE}/_built

- name: Run tests
run: ctest --test-dir _build

0 comments on commit 5b9f6e5

Please sign in to comment.