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 b50e9ce commit c4259ad
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/Build-Linux-x86.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,19 @@ jobs:
name: Build Linux 32-bit
runs-on: ubuntu-latest
container: i386/ubuntu:latest
continue-on-error: true

steps:
- name: Install git
run: |
apt-get update
apt-get install -y git
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Install dependencies
run: |
apt-get update
apt-get install -y build-essential libsqlite3-dev libxxhash-dev libjansson-dev libwebsockets-dev fswatch libcurl4-openssl-dev libssl-dev
- name: Find fswatch library
Expand All @@ -40,11 +37,13 @@ jobs:
- 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
continue-on-error: true

- name: Copy agentc to dist folder
run: |
mkdir -p ./dist
cp ./AgentC/agentc ./dist/agentc-linux-x86
continue-on-error: true

- name: Check for changes
id: changes
Expand All @@ -54,6 +53,7 @@ jobs:
else
echo "has_changes=true" >> $GITHUB_OUTPUT
fi
continue-on-error: true

- name: Commit and push changes
if: steps.changes.outputs.has_changes == 'true'
Expand All @@ -63,3 +63,4 @@ jobs:
git add ./dist/agentc-linux-x86
git commit -m "Add agentc-linux-x86 to dist folder"
git push "https://${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git" HEAD:main
continue-on-error: true

0 comments on commit c4259ad

Please sign in to comment.