Skip to content

Add CI pipeline to build code and check formatting #4

Add CI pipeline to build code and check formatting

Add CI pipeline to build code and check formatting #4

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Build
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
cmake \
pkg-config \
gettext \
libxpm-dev \
libwmaker-dev \
libwraster-dev \
libwings-dev \
libxmu-dev \
libpango1.0-dev \
libsysprof-capture-4-dev
- name: Configure
run: cmake .
- name: Build
run: make
format:
name: Format check
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install clang-format
run: |
sudo apt-get update
sudo apt-get install -y clang-format-19
- name: Check formatting
run: clang-format-19 --dry-run --Werror src/*.c src/*.h