Skip to content

Commit

Permalink
Update Build-Linux-x86.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
500Foods authored May 18, 2024
1 parent 0e4821b commit 0b9cf87
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/Build-Linux-x86.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit 0b9cf87

Please sign in to comment.