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 bc7106c commit 5dd6dbd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/Build-Linux-x86.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,21 @@ jobs:
- name: Find fswatch library
run: |
echo "/usr/include/libfswatch/c"
ls -l /usr/include/libfswatch/c
echo "/usr/lib/*fswatch*"
ls -l /usr/lib/*fswatch*
dpkg -s libfswatch-dev
dpkg -s libfswatch
dpkg -s fswatch
fswatch_lib=$(ldconfig -p | grep 'libfswatch\.so' | head -n 1 | awk '{print $4}')
fswatch_inc=$(find /usr/include -name 'cevent.h' | head -n 1 | xargs dirname)
echo "FSWATCH_LIB=-L$(dirname $fswatch_lib)" >> $GITHUB_ENV
echo "FSWATCH_INC=-I$fswatch_inc" >> $GITHUB_ENV
- name: Build agentc
working-directory: ./AgentC
run: gcc agentc.c -o agentc -lsqlite3 -lxxhash -ljansson -lwebsockets ${{ env.FSWATCH_LIB }} -lfswatch ${{ 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 -L/usr/lib

- name: Copy agentc to dist folder
run: |
Expand Down

0 comments on commit 5dd6dbd

Please sign in to comment.