mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
name: Reusable DragonFly amd64
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
env:
|
|
CMAKE_BUILD_TYPE: ${{ vars.CMAKE_BUILD_TYPE || 'RelWithDebInfo' }}
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: run VM
|
|
uses: vmactions/dragonflybsd-vm@v1
|
|
with:
|
|
usesh: yes
|
|
envs: 'CMAKE_BUILD_TYPE'
|
|
prepare: |
|
|
uname -a
|
|
pkg update
|
|
pkg install -y llvm cmake git pkgconf binutils wayland vulkan-headers vulkan-loader libxcb libXrandr libX11 libdrm glib dconf dbus sqlite3-tcl egl opencl ocl-icd v4l_compat chafa libelf lua54 libva libvdpau
|
|
|
|
run: |
|
|
env CC=clang cmake -DSET_TWEAK=Off -DBUILD_TESTS=On -DENABLE_EMBEDDED_PCIIDS=On -DENABLE_EMBEDDED_AMDGPUIDS=On .
|
|
cmake --build . --target package --verbose -j4
|
|
./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
|
|
|
|
- name: upload artifacts
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: fastfetch-dragonfly-amd64
|
|
path: ./fastfetch-*.*
|