feat ci: add alpine build #9
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: Alpine Linux | |
'on': | |
pull_request: | |
push: | |
branches: | |
- master | |
- develop | |
- feature/** | |
env: | |
UBSAN_OPTIONS: print_stacktrace=1 | |
ASAN_OPTIONS: detect_odr_violation=2 | |
CXX: clang++-18 | |
jobs: | |
posix: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- cmake-flags: >- | |
os: ubuntu-24.04 | |
info: Alpine linux | |
name: '${{matrix.os}}: ${{matrix.info}}' | |
runs-on: ${{matrix.os}} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup latest Alpine Linux | |
uses: jirutka/setup-alpine@v1 | |
- name: Run script inside Alpine chroot as root | |
shell: alpine.sh --root {0} | |
run: | | |
cat /etc/alpine-release | |
apk add $(cat scripts/docs/en/deps/alpine.md) | |
- name: Run cmake | |
shell: alpine.sh --root {0} | |
run: | | |
mkdir build_debug | |
cd build_debug | |
cmake \ | |
-DCMAKE_BUILD_TYPE=Debug \ | |
-DUSERVER_NO_WERROR=OFF \ | |
-DUSERVER_FEATURE_JEMALLOC=OFF \ | |
-DUSERVER_DOWNLOAD_PACKAGE_PROTOBUF=ON \ | |
-DUSERVER_FEATURE_MYSQL=OFF \ | |
-DUSERVER_FEATURE_STACKTRACE=OFF \ | |
-DUSERVER_DISABLE_RSEQ_ACCELERATION=YES \ | |
.. | |
- name: Compile | |
shell: alpine.sh --root {0} | |
run: | | |
pwd | |
cd build_debug | |
make -j$(nproc) |