derive default line width from display dpi #931
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2020 Daniel T. Borelli <[email protected]> | |
# Copyright 2020 Jeroen Roovers <[email protected]> | |
# Copyright 2020 Joao Eriberto Mota Filho <[email protected]> | |
# Copyright 2021-2023 Guilherme Janczak <[email protected]> | |
# Copyright 2022 Zev Weiss <[email protected]> | |
# Copyright 2023 NRK <[email protected]> | |
name: full-check | |
on: [push, pull_request] | |
jobs: | |
ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install_dependencies | |
run: | | |
sudo apt install tcc libimlib2-dev libxcomposite-dev libxfixes-dev \ | |
autoconf-archive libbsd-dev libxinerama-dev cppcheck | |
- name: distcheck | |
run: | | |
./autogen.sh | |
./configure SCROT_PRIVATE_FLAGS="-Werror -Wno-error=cpp -Wno-error=pedantic" | |
make distcheck | |
- name: run_program | |
run: | | |
make | |
src/scrot -v | |
- name: tcc | |
run: | | |
./configure SCROT_PRIVATE_FLAGS="-Werror -Wno-error=cpp -Wno-error=pedantic" CC=tcc | |
make clean all | |
src/scrot -v | |
- name: bare build | |
run: | | |
make -s distclean | |
c99 -o src/scrot src/*.c $(pkg-config --cflags --libs ./deps.pc) | |
src/scrot -v | |
- name: cppcheck | |
run: | | |
cppcheck --version | |
cppcheck --std=c99 -j$(nproc) --quiet --force --error-exitcode=1 \ | |
--suppress=uninitvar \ | |
--enable=portability,performance src/*.c \ | |
$(pkg-config --cflags ./deps.pc) | |
- name: clang-tidy | |
run: | | |
clang-tidy --version | |
find src -name '*.c' -print | xargs -P$(nproc) -I{} \ | |
clang-tidy --quiet {} -- $(pkg-config --cflags ./deps.pc) |