From 0b9cf878be2f4db5e2945ee23714e28269cd7eca Mon Sep 17 00:00:00 2001 From: Andrew Simard <41052272+500Foods@users.noreply.github.com> Date: Fri, 17 May 2024 21:23:28 -0700 Subject: [PATCH] Update Build-Linux-x86.yml --- .github/workflows/Build-Linux-x86.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Build-Linux-x86.yml b/.github/workflows/Build-Linux-x86.yml index 808b77b..b986636 100644 --- a/.github/workflows/Build-Linux-x86.yml +++ b/.github/workflows/Build-Linux-x86.yml @@ -28,8 +28,20 @@ jobs: - name: Install dependencies run: | - apt-get install -y build-essential libsqlite3-dev libxxhash-dev libjansson-dev libwebsockets-dev=4 libcurl4-openssl-dev libssl-dev - + apt-get install -y build-essential libsqlite3-dev libxxhash-dev libjansson-dev libcurl4-openssl-dev libssl-dev + + - name: Download and build libwebsockets + run: | + apt-get install -y wget + wget https://github.com/warmcat/libwebsockets/archive/refs/tags/v4.0.20.tar.gz -O libwebsockets-4.0.20.tar.gz + tar -xzf libwebsockets-4.0.20.tar.gz + cd libwebsockets-4.0.20 + mkdir build + cd build + cmake .. + make + make install + - name: Download and compile fswatch run: | apt-get install -y wget @@ -56,7 +68,7 @@ jobs: - name: Build agentc working-directory: ./AgentC - run: gcc agentc.c -o agentc -lsqlite3 -lxxhash -ljansson -lwebsockets ${{ env.FSWATCH_LIB }} -llibfswatch ${{ env.FSWATCH_INC }} -lcurl -lssl -lcrypto + run: gcc agentc.c -o agentc -lsqlite3 -lxxhash -ljansson -lwebsockets ${{ env.FSWATCH_LIB }} -lfswatch ${{ env.FSWATCH_INC }} -lcurl -lssl -lcrypto - name: Copy agentc to dist folder run: |