From 1474e28e1a14d1a2f8bdfa42d538de5d6822e328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marius=20Miku=C4=8Dionis?= Date: Fri, 15 Sep 2023 10:17:36 +0200 Subject: [PATCH] Fixed GH CI build script --- .github/workflows/build.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a95641d..d789fd1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,3 +1,4 @@ +--- name: Build and Test on: @@ -10,9 +11,9 @@ jobs: formatting: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Formatting - run: find src include test -iregex '.*\.\(c\|h\|cpp\|hpp\|cc\|hh\|cxx\|hxx\)$' | xargs clang-format -n -Werror + - uses: actions/checkout@v2 + - name: Formatting + run: find src include test -iregex '.*\.\(c\|h\|cpp\|hpp\|cc\|hh\|cxx\|hxx\)$' | xargs clang-format -n -Werror build-linux: runs-on: ubuntu-latest env: @@ -31,7 +32,7 @@ jobs: - name: Get dependencies run: CMAKE_BUILD_TYPE=Release ./getlibs.sh $TARGET - name: Build with getlibs - run: | + run: | BUILD=build-$TARGET-libs-$CMAKE_BUILD_TYPE cmake -S . -B $BUILD cmake --build $BUILD --config $CMAKE_BUILD_TYPE