Klipper_Compile_Binaries #243
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Klipper_Compile_Binaries | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
push: | |
branches: | |
- main | |
paths: | |
- 'compile-binaries.sh' | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
jobs: | |
build_and_push: | |
name: Compile and Push Firmware | |
runs-on: ubuntu-latest | |
steps: | |
- name: Enable Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Check out Klipper repo | |
uses: actions/checkout@v4 | |
with: | |
repository: Klipper3d/klipper | |
path: ${{ github.workspace }}/klipper | |
- name: Install Klipper | |
run: | | |
chmod +x ${{ github.workspace }}/klipper/scripts/*.sh | |
${{ github.workspace }}/klipper/scripts/install-ubuntu-22.04.sh | |
- name: Check out 3Dwork Auto Builder Repo repo | |
uses: actions/checkout@v4 | |
with: | |
path: ${{ github.workspace }}/3dwork-klipper | |
- name: Shows files content 1 | |
run: | | |
ls -R | |
- name: Compile Klipper Firmware for Boards | |
run: | | |
chmod +x ${{ github.workspace }}/3dwork-klipper/compile-binaries.sh | |
${{ github.workspace }}/3dwork-klipper/compile-binaries.sh | |
- name: Shows files content 2 | |
run: | | |
ls -R | |
- name: Push Compiled Klipper Firmwares | |
run: | | |
cd ${{ github.workspace }}/3dwork-klipper | |
git config --global user.name "JJR Bot" | |
git config --global user.email "jrodriguez@qitec.net" | |
git pull origin main --ff-only | |
git add . | |
git commit -m "Compiled firmware" | |
git push "https://${{ github.actor }}:${{ secrets.COMMIT_TOKEN }}@github.com/${{ github.repository }}.git" | |