name: Reusable DragonFly amd64 on: workflow_call: permissions: contents: read jobs: build: runs-on: ubuntu-latest defaults: run: shell: cpa.sh {0} steps: - name: checkout repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Start VM uses: cross-platform-actions/action@e0b9770014ba65d5e0815f15b74031c3a635f641 # v1.6.0 with: operating_system: dragonflybsd version: '6.4.2' shell: bash cpu_count: 4 - name: Show system info run: | uname -a pkg --version - name: Update and install dependencies run: | sudo pkg update sudo 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 - name: CMake configuration run: env CC=clang cmake -DSET_TWEAK=Off -DBUILD_TESTS=On -DENABLE_EMBEDDED_PCIIDS=On -DENABLE_EMBEDDED_AMDGPUIDS=On -DCMAKE_BUILD_TYPE=${{ vars.CMAKE_BUILD_TYPE || 'RelWithDebInfo' }} -DCMAKE_C_FLAGS="-fno-pie" -DCMAKE_EXE_LINKER_FLAGS="-no-pie" . - name: CMake build run: cmake --build . --target package --verbose -j4 - name: List features run: ./fastfetch --list-features - name: Run normal run: time ./fastfetch -c presets/ci.jsonc --stat false - name: Run json run: time ./fastfetch -c presets/ci.jsonc --format json - name: Run flashfetch run: time ./flashfetch - name: Run ldd run: ldd fastfetch - name: Run tests run: ctest --output-on-failure - name: upload artifacts uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: fastfetch-dragonfly-amd64 path: ./fastfetch-*.*