Skip to content

Commit

Permalink
Add a CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
Zirias committed Jul 10, 2024
1 parent e0678dd commit df49778
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CI_CFLAGS: -O2 -Wall -Wextra -Wshadow -Werror -pedantic
CI_DEPS: |
libfontconfig1-dev libfreetype-dev libharfbuzz-dev libxcb-cursor-dev
libxcb-image0-dev libxcb-xkb-dev libxcb-xtest0-dev libxkbcommon-x11-dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: build-depends
run: sudo apt-get -y install ${CI_DEPS}
- name: build
run: make -j4 CFLAGS="${CI_CFLAGS}"

0 comments on commit df49778

Please sign in to comment.