2023-12-04 06:42:35 -08:00
|
|
|
name: Create Board Firmware
|
|
|
|
|
|
|
|
on:
|
2024-06-25 08:10:01 -07:00
|
|
|
schedule:
|
2024-07-06 14:02:50 -07:00
|
|
|
- cron: '05 21 * * *' # build fresh every 9:05 PM UTC
|
2024-02-27 17:01:27 -08:00
|
|
|
push:
|
2024-02-27 04:57:15 -08:00
|
|
|
# pull_request:
|
2023-12-04 06:42:35 -08:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2024-03-07 18:32:12 -08:00
|
|
|
build-firmware:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
|
|
|
|
- name: Set run variables
|
|
|
|
id: set-variables
|
|
|
|
run: |
|
2024-06-26 05:33:03 -07:00
|
|
|
if [ "${{github.event_name}}" = "schedule" ]; then
|
2024-06-29 13:06:49 -07:00
|
|
|
echo "release_date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
|
2024-06-26 05:33:03 -07:00
|
|
|
fi
|
2024-03-07 18:32:12 -08:00
|
|
|
if [ "${{github.event_name}}" == "push" -o "${{github.event_name}}" == "schedule" -o "${{github.event_name}}" == "workflow_dispatch" ] && [ "${{github.ref}}" == "refs/heads/master" -o "${{github.ref}}" == "refs/heads/main" ]; then
|
2024-03-11 18:55:14 -07:00
|
|
|
echo 'upload=bundles' >> $GITHUB_OUTPUT
|
|
|
|
echo 'push=true' >> $GITHUB_OUTPUT
|
|
|
|
echo 'sim=true' >> $GITHUB_OUTPUT
|
2024-03-07 18:32:12 -08:00
|
|
|
else
|
2024-03-11 18:55:14 -07:00
|
|
|
echo 'push=false' >> $GITHUB_OUTPUT
|
|
|
|
echo 'sim=false' >> $GITHUB_OUTPUT
|
2024-03-07 18:32:12 -08:00
|
|
|
fi
|
|
|
|
|
|
|
|
- uses: ./ext/rusefi/.github/workflows/custom-board-build
|
|
|
|
with:
|
2024-07-01 10:52:31 -07:00
|
|
|
new_tag: ${{steps.set-variables.outputs.release_date}}
|
2024-03-07 18:32:12 -08:00
|
|
|
artifacts: bin srec hex list map elf bundle autoupdate
|
|
|
|
uploads: ini ${{steps.set-variables.outputs.upload}}
|
2024-03-11 18:55:14 -07:00
|
|
|
push: ${{steps.set-variables.outputs.push}}
|
|
|
|
run_simulator: ${{ steps.set-variables.outputs.sim }}
|
2024-03-07 18:32:12 -08:00
|
|
|
MY_REPO_PAT: ${{secrets.MY_REPO_PAT}}
|
|
|
|
RUSEFI_ONLINE_FTP_USER: ${{secrets.RUSEFI_ONLINE_FTP_USER}}
|
|
|
|
RUSEFI_ONLINE_FTP_PASS: ${{secrets.RUSEFI_ONLINE_FTP_PASS}}
|
|
|
|
RUSEFI_FTP_SERVER: ${{secrets.RUSEFI_FTP_SERVER}}
|
|
|
|
RUSEFI_SSH_SERVER: ${{secrets.RUSEFI_SSH_SERVER}}
|
|
|
|
RUSEFI_SSH_USER: ${{secrets.RUSEFI_SSH_USER}}
|
|
|
|
RUSEFI_SSH_PASS: ${{secrets.RUSEFI_SSH_PASS}}
|
|
|
|
ADDITIONAL_ENV: ${{secrets.ADDITIONAL_ENV}}
|