mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 10:52:08 +02:00
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
name: run build and checks
|
|
|
|
on: workflow_call
|
|
|
|
jobs:
|
|
check:
|
|
name: run build and checks
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
security-events: write
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: [ 'cpp' ]
|
|
steps:
|
|
- name: install required packages
|
|
run: sudo apt-get update && sudo apt-get install -y libpci-dev libvulkan-dev libwayland-dev libxrandr-dev libxcb-randr0-dev libdconf-dev libdbus-1-dev libxfconf-0-dev librpm-dev libzstd-dev
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v1
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
|
|
- name: configure project
|
|
# We reuse the build binary only for the releases.
|
|
# We set tweak version to off, because it is wrong, as git tag will happen after this step. Releases don't have a tweak, so this is ok.
|
|
run: cmake -DSET_TWEAK=Off .
|
|
|
|
- name: build project
|
|
run: cmake --build . -j$(nproc)
|
|
|
|
- name: run fastfetch
|
|
run: ./fastfetch --recache --disable-linewrap false --hide-cursor false --show-errors true
|
|
|
|
- name: run flashfetch
|
|
run: ./flashfetch
|
|
|
|
- name: run tests
|
|
run: ctest
|
|
|
|
- name: build deb package
|
|
run: sh packaging/deb/create.sh .
|
|
|
|
- name: perform CodeQL analysis
|
|
uses: github/codeql-action/analyze@v1
|