Debian Codegraph @

.github/workflows/alpine.yml

raw
1 name: Alpine Linux
2 on:
3 - push
4 - pull_request
5
6 jobs:
7 build:
8 name: Build on Alpine ${{ matrix.arch }}
9 runs-on: ubuntu-latest
10 strategy:
11 matrix:
12 arch:
13 - x86_64
14 - x86
15 - aarch64
16 - armv7
17 - ppc64le
18 - riscv64
19 steps:
20 - name: Checkout repository
21 uses: actions/checkout@v5
22
23 - name: Install latest Alpine Linux for ${{ matrix.arch }}
24 uses: jirutka/setup-alpine@v1
25 with:
26 arch: ${{ matrix.arch }}
27 branch: ${{ matrix.arch == 'riscv64' && 'edge' || 'latest-stable' }}
28 packages: >
29 build-base
30 cmake
31 g++
32 linux-headers
33 git
34 bash
35 build-base
36 - name: Prepare
37 run: |
38 cmake -DFASTFLOAT_TEST=ON -B build
39 shell: alpine.sh {0}
40 - name: Build
41 run: |
42 cmake --build build
43 shell: alpine.sh {0}
44 - name: Test
45 run: |
46 ctest --test-dir build -R basictest
47 shell: alpine.sh {0}