Skip to content

Commit

Permalink
Update Build-Linux-x64.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
500Foods authored May 18, 2024
1 parent 13d99a0 commit fc185b0
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/Build-Linux-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,12 @@ jobs:
working-directory: ./AgentC
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: |
mkdir -p ./dist
cp ./AgentC/agentc ./dist/agentc-linux-x64
- name: Check for changes
id: changes
run: |
if git diff --quiet HEAD -- ./dist/agentc-linux-x64; 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"
mkdir -p ./dist
cp ./AgentC/agentc ./dist/agentc-linux-x64
git add ./dist/agentc-linux-x64
git commit -m "Add agentc-linux-x64 to dist folder"
git push "https://${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git" HEAD:main
Expand Down

0 comments on commit fc185b0

Please sign in to comment.