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 e4386b7 commit 74f4359
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/Build-Linux-x86.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,26 +90,12 @@ jobs:
gcc --version
gcc agentc.c -o agentc -lsqlite3 -lxxhash -ljansson -lwebsockets ${{ env.FSWATCH_LIB }} -lfswatch ${{ env.FSWATCH_INC }} -lcurl -lssl -lcrypto -pthread
- name: Copy agentc to dist folder
run: |
mkdir -p ./dist
cp ./AgentC/agentc ./dist/agentc-linux-x86
- name: Check for changes
id: changes
run: |
if git diff --quiet HEAD -- ./dist/agentc-linux-x86; then
echo "has_changes=false" >> $GITHUB_OUTPUT
else
echo "has_changes=true" >> $GITHUB_OUTPUT
fi
- name: Commit and push changes
if: steps.changes.outputs.has_changes == 'true'
run: |
git config --global user.email "github-actions@example.com"
git config --global user.name "GitHub Actions"
rm -rf fswatch-1.14.0.tar.gz fswatch-1.14.0/ libwebsockets-4.0.20.tar.gz libwebsockets-4.0.20/ xxHash-0.8.1/ xxhash-0.8.1.tar.gz
mkdir -p ./dist
cp ./AgentC/agentc ./dist/agentc-linux-x86
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
Expand Down

0 comments on commit 74f4359

Please sign in to comment.