mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-01 18:42:56 +01:00
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
name: Reusable Musl amd64
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
env:
|
|
CMAKE_BUILD_TYPE: ${{ vars.CMAKE_BUILD_TYPE || 'RelWithDebInfo' }}
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: setup alpine linux
|
|
uses: jirutka/setup-alpine@master
|
|
|
|
- name: install dependencies
|
|
run: |
|
|
cat /etc/alpine-release
|
|
uname -a
|
|
apk add cmake samurai vulkan-loader-dev libxcb-dev libxrandr-dev rpm-dev wayland-dev libdrm-dev dconf-dev imagemagick-dev chafa-dev zlib-dev dbus-dev mesa-dev opencl-dev sqlite-dev networkmanager-dev pulseaudio-dev ddcutil-dev elfutils-dev gcc g++
|
|
shell: alpine.sh --root {0}
|
|
|
|
- name: build
|
|
run: |
|
|
cmake -DSET_TWEAK=Off -DBUILD_TESTS=On -DCMAKE_INSTALL_PREFIX=/usr -DIS_MUSL=ON -DENABLE_EMBEDDED_PCIIDS=On -DENABLE_EMBEDDED_AMDGPUIDS=On -GNinja .
|
|
cmake --build . --target package --verbose -j4
|
|
shell: alpine.sh {0}
|
|
|
|
- name: run
|
|
run: |
|
|
./fastfetch --list-features
|
|
time ./fastfetch -c presets/ci.jsonc --stat false
|
|
time ./fastfetch -c presets/ci.jsonc --format json
|
|
time ./flashfetch
|
|
ldd fastfetch
|
|
ctest --output-on-failure
|
|
shell: alpine.sh {0}
|
|
|
|
- name: upload artifacts
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: fastfetch-musl-amd64
|
|
path: ./fastfetch-*.*
|