From e46b3a6cb3f970e789a7acbc97a762f99efbf36e Mon Sep 17 00:00:00 2001 From: rohith-raju Date: Tue, 20 Jun 2023 13:46:54 +0000 Subject: [PATCH] new(ci): run tests for emscripten build Signed-off-by: rohith-raju Co-authored-by: Jason Dellaluce --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83382bcb1ca..65b8137453c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -383,3 +383,30 @@ jobs: name: ${{ matrix.name }}_report path: | ${{ github.workspace }}/build/report/ + + build-libs-emscripten: + name: build-libs-emscripten 🧐 + runs-on: ubuntu-latest + steps: + - name: Install deps ⛓️ + run: | + apt update && apt install -y --no-install-recommends ca-certificates cmake build-essential git clang llvm pkg-config autoconf automake libtool libelf-dev wget libb64-dev libc-ares-dev libcurl4-openssl-dev libssl-dev libtbb-dev libjq-dev libjsoncpp-dev libgrpc++-dev protobuf-compiler-grpc libgtest-dev libprotobuf-dev liblua5.1-dev linux-headers-amd64 emscripten + + - name: Checkout Libs ⤵️ + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Install deps ⛓️ + run: | + .github/install-deps.sh + + - name: Git safe directory + run: | + git config --global --add safe.directory $GITHUB_WORKSPACE + + - name: Build and test 🏗️🧪 + run: | + mkdir -p build + cd build && emcmake cmake -DUSE_BUNDLED_DEPS=True ../ + KERNELDIR=/lib/modules/$(ls /lib/modules)/build emmake make run-unit-tests -j4 \ No newline at end of file