Add Alpine Linux package build support to GitHub Actions workflow
Some checks failed
Build / build (push) Failing after 1m43s
Some checks failed
Build / build (push) Failing after 1m43s
- 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)
This commit is contained in:
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
@@ -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: |
|
||||
|
Reference in New Issue
Block a user