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 Jan 28, 2024
1 parent 4a6f16c commit ca0cd0f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,33 @@ jobs:

- name: Run tests
run: ctest --test-dir _build
Alpine:
runs-on: ubuntu-20.04
strategy:
matrix:
platform: ['x86', 'x86_64', 'armhf','armv7','aarch64','ppc64le','riscv64', 's390x']
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

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

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

0 comments on commit ca0cd0f

Please sign in to comment.