From 4899711b3a9d2a97c83bed57531c69f39fd0cb94 Mon Sep 17 00:00:00 2001 From: Jonathan GUILLOT Date: Mon, 2 Sep 2024 14:49:05 +0200 Subject: [PATCH] Update GitHub build workflow to use CMake --- .github/workflows/build.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 822bfd7..36e162a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Run build + - name: Install dependencies run: | - ./build + sudo apt-get install -y cmake + + - name: Configure + run: | + cmake -S . -B build-wiringpi + + - name: Build + run: | + cmake --build build-wiringpi + + - name: Install + run: | + sudo cmake --install build-wiringpi --prefix /usr