Skip to content

Commit

Permalink
github ci/cd for cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
sagb committed May 12, 2024
1 parent 2ca21ff commit 8dd26d8
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,24 @@ jobs:
build:

runs-on: ubuntu-latest
defaults:
run:
working-directory: ./build

steps:
- uses: actions/checkout@v2

- name: install build dependencies
run: sudo apt-get -y install libx11-dev libxmu-dev libxft-dev libxrender-dev libxrandr-dev libpng-dev libxpm-dev uthash-dev autoconf automake
- name: avoid missing autotools
run: autoreconf -fvi

- name: create build directory
run: mkdir -p ${{ github.workspace }}/build

- name: configure
run: ./configure
run: cmake ..

- name: make
run: make
- name: make check
run: make check
run: cmake --build .

- name: check
run: ctest

0 comments on commit 8dd26d8

Please sign in to comment.