mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-09-14 14:42:26 +08:00
64 lines
1.3 KiB
YAML
64 lines
1.3 KiB
YAML
name: Alpine Linux
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build on Alpine ${{ matrix.arch }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
arch:
|
|
- x86_64
|
|
- x86
|
|
- aarch64
|
|
- armv7
|
|
- ppc64le
|
|
- riscv64
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Install Alpine Linux for ${{ matrix.arch }}
|
|
uses: jirutka/setup-alpine@v1
|
|
with:
|
|
arch: ${{ matrix.arch }}
|
|
|
|
# Keep CI reproducible.
|
|
# riscv64 currently uses edge because stable Alpine support
|
|
# for this architecture can lag behind the other architectures.
|
|
branch: ${{ matrix.arch == 'riscv64' && 'edge' || 'v3.23' }}
|
|
|
|
packages: >
|
|
build-base
|
|
cmake
|
|
linux-headers
|
|
git
|
|
bash
|
|
|
|
- name: Prepare
|
|
run: |
|
|
cmake \
|
|
-DFASTFLOAT_TEST=ON \
|
|
-B build
|
|
shell: alpine.sh {0}
|
|
|
|
- name: Build
|
|
run: |
|
|
cmake --build build
|
|
shell: alpine.sh {0}
|
|
|
|
- name: Test
|
|
run: |
|
|
ctest \
|
|
--test-dir build \
|
|
-R basictest \
|
|
--output-on-failure
|
|
shell: alpine.sh {0}
|