From 68f5962be61b95c30a23151ac83915722ff96f72 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sat, 8 Oct 2022 00:14:34 +0300 Subject: [PATCH] ci : add cmake builds --- .github/workflows/build.yml | 79 ++++++++++++++++++++++++++++++++++++- 1 file changed, 78 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0a91f8f4..effa8db3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: run: | sudo apt-get update sudo apt-get install build-essential - sudo apt-get install libsdl2-dev; + sudo apt-get install libsdl2-dev - name: Build run: | @@ -36,3 +36,80 @@ jobs: run: | make make stream + + ubuntu-latest-gcc: + runs-on: ubuntu-latest + + strategy: + matrix: + build: [Debug, Release] + + steps: + - name: Clone + uses: actions/checkout@v1 + + - name: Dependencies + run: | + sudo apt-get update + sudo apt-get install build-essential + sudo apt-get install cmake + sudo apt-get install libsdl2-dev + + - name: Configure + run: cmake . -DWHISPER_SUPPORT_SDL2=ON -DCMAKE_BUILD_TYPE=${{ matrix.build }} + + - name: Build + run: | + make + ctest --output-on-failure + + ubuntu-latest-clang: + runs-on: ubuntu-latest + + strategy: + matrix: + build: [Debug, Release] + + steps: + - name: Clone + uses: actions/checkout@v1 + + - name: Dependencies + run: | + sudo apt-get update + sudo apt-get install build-essential + sudo apt-get install cmake + sudo apt-get install libsdl2-dev + + - name: Configure + run: cmake . -DWHISPER_SUPPORT_SDL2=ON -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang + + - name: Build + run: | + make + ctest --output-on-failure + + ubuntu-latest-gcc-sanitized: + runs-on: ubuntu-latest + + strategy: + matrix: + sanitizer: [ADDRESS, THREAD, UNDEFINED] + + steps: + - name: Clone + uses: actions/checkout@v1 + + - name: Dependencies + run: | + sudo apt-get update + sudo apt-get install build-essential + sudo apt-get install cmake + + - name: Configure + run: cmake . -DCMAKE_BUILD_TYPE=Debug -DWHISPER_SANITIZE_${{ matrix.sanitizer }}=ON + + - name: Build + run: | + make + ctest --output-on-failure