From: Stephen Seo Date: Mon, 17 Feb 2025 08:02:39 +0000 (+0900) Subject: Attempt to fix github actions build: cmake changes X-Git-Tag: 1.16~4 X-Git-Url: https://git.seodisparate.com/tbm-edit-post-battle.jpg?a=commitdiff_plain;h=17352175cb596c8d8c795d2bb28cce34daeafcec;p=SimpleArchiver Attempt to fix github actions build: cmake changes --- diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index f5420b6..aec440f 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -8,17 +8,17 @@ jobs: build-and-run-unit-tests: runs-on: ubuntu-latest steps: + - name: Get cmake/gcc + run: sudo apt-get -y install cmake gcc sed - name: Clone repo - run: git clone --depth=1 --no-single-branch https://github.com/Stephen-Seo/SimpleArchiver.git + run: git clone https://github.com/Stephen-Seo/SimpleArchiver.git - name: Checkout the branch run: cd SimpleArchiver && git checkout "${GITHUB_REF_NAME}" - - name: Get cmake/gcc - run: sudo apt-get -y install cmake gcc sed - name: Patch CMakeLists.txt to remove "-fstrict-flex-arrays=3" which is unavailable in ubuntu-latest run: sed -i 's/-fstrict-flex-arrays=3//g' SimpleArchiver/CMakeLists.txt - name: Prepare and Build - run: cmake -S SimpleArchiver -B build -DCMAKE_BUILD_TYPE=Debug && make -C build + run: cmake -S SimpleArchiver -B SimpleArchiver/build -DCMAKE_BUILD_TYPE=Debug && make -C SimpleArchiver/build - name: Run data structures unit tests - run: ./build/test_datastructures + run: ./SimpleArchiver/build/test_datastructures - name: Run regular unit tests - run: ./build/test_simplearchiver + run: ./SimpleArchiver/build/test_simplearchiver