From 68c398a04048dbd54590427666c467fdd0a3b40b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20S=C3=B8ndergaard?= Date: Tue, 10 Sep 2024 17:53:07 +0200 Subject: [PATCH] WIP github action --- .github/workflows/build_and_test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/build_and_test.yml diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml new file mode 100644 index 0000000..776b6fc --- /dev/null +++ b/.github/workflows/build_and_test.yml @@ -0,0 +1,24 @@ +name: Build and test +on: + push: + branches: [ "wip_actions" ] + pull_request: + branches: [ "wip_actions" ] + +jobs: + build: + runs-on: ubuntu-24.04 + container: archlinux:base-devel + steps: + - name: install-dependencies + run: | + sudo pacman -Syu --noconfirm cmake git git-lfs boost boost-libs doxygen nodejs node-gyp gtest yarn ffmpeg nlohmann-json + sudo corepack enable + - uses: actions/checkout@v4 + with: + path: ./src + submodules: recursive + - name: build-debug + run: | + cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_JS=On -DXCMAKE_CLANG_TIDY=OFF -DXCMAKE_SYSTEM_GTEST=ON -DXCMAKE_DOXYGEN_WERROR=OFF -DCMAKE_INSTALL_PREFIX=inst -Bbuild src + make -C build install -j$(nproc) \ No newline at end of file