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: |