From a5755b13d82d119e3d048c3666bc3cf40153924a Mon Sep 17 00:00:00 2001 From: alexander-g <3867427+alexander-g@users.noreply.github.com> Date: Sat, 16 Jan 2021 17:28:28 +0100 Subject: [PATCH] Ubuntu CI --- .github/workflows/cpp_ubuntu.yml | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/cpp_ubuntu.yml diff --git a/.github/workflows/cpp_ubuntu.yml b/.github/workflows/cpp_ubuntu.yml new file mode 100644 index 000000000..82174fbc5 --- /dev/null +++ b/.github/workflows/cpp_ubuntu.yml @@ -0,0 +1,42 @@ +name: C++ Ubuntu + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build-ubuntu: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + - name: Install Dependencies + run: | + sudo apt-get install libvulkan-dev + #swiftshader vulkan cpu implementation + sudo wget https://www.dropbox.com/s/d0weho6l8dovm71/libvk_swiftshader.so?dl=1 -O /usr/lib/libvk_swiftshader.so + sudo mkdir -p /usr/share/vulkan/icd.d + sudo wget https://www.dropbox.com/s/5oly49ev3vvcfdu/vk_swiftshader_icd.json?dl=1 -O /usr/share/vulkan/icd.d/vk_swiftshader_icd.json + - name: configure + run: | + cmake . -Bbuild/ \ + -DKOMPUTE_OPT_BUILD_TESTS=1 \ + -DKOMPUTE_OPT_INSTALL=1 \ + -DKOMPUTE_OPT_ENABLE_SPDLOG=1 \ + -DSPDLOG_INSTALL=1 \ + -DKOMPUTE_OPT_REPO_SUBMODULE_BUILD=1 \ + -DKOMPUTE_OPT_BUILD_TESTS=1 + - name: build + run: | + make -C build/ -j + - name: tests + run: | + #only running tests that dont require GLSL compilation + ./build/test/test_kompute --gtest_filter=*Tensor* + ./build/test/test_kompute --gtest_filter=TestManager* +