From 2be3544cd2d4d4d1db0ea326a1cde1bd9b4854c2 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sat, 1 Feb 2025 05:58:15 +0000 Subject: [PATCH] Add Alpine Linux package build support to GitHub Actions workflow - Introduce Alpine Linux package build stage in CI/CD pipeline - Install Alpine SDK, CMake, Clang, and LLVM dependencies - Configure CMake for Alpine package compilation - Add artifact upload for Alpine package (.apk) --- .github/workflows/build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6fe711d..c879fb9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -77,6 +77,28 @@ jobs: name: cpu-check-deb path: build/*.deb + - name: Install Alpine Packaging Dependencies + run: | + sudo apk update + sudo apk add alpine-sdk cmake clang llvm + + - name: Build Alpine Package + run: | + mkdir -p alpine_build && cd alpine_build + cmake -DCMAKE_BUILD_TYPE=Release \ + -DUSE_CLANG=ON \ + -DBUILD_STATIC=ON \ + .. + make + # Example packaging command; adjust according to your packaging scripts + make apk + + - name: Upload Alpine Package + uses: actions/upload-artifact@v3 + with: + name: cpu-check-alpine + path: alpine_build/*.apk + - name: Upload to Gitea Package Registry if: github.event_name == 'push' && github.ref == 'refs/heads/master' run: |