Create Board Firmware #775
This file contains hidden or 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: Create Board Firmware | |
| on: | |
| schedule: | |
| - cron: '35 16 * * *' # build fresh every 4:35 PM UTC which is often 12:35 EST | |
| push: | |
| # pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build-firmware: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Set run variables | |
| id: set-variables | |
| run: | | |
| if [ "${{github.event_name}}" = "schedule" ]; then | |
| echo "release_date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV | |
| fi | |
| 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 | |
| echo 'push=true' >> $GITHUB_OUTPUT | |
| echo 'sim=true' >> $GITHUB_OUTPUT | |
| else | |
| echo 'push=false' >> $GITHUB_OUTPUT | |
| echo 'sim=false' >> $GITHUB_OUTPUT | |
| fi | |
| - uses: ./ext/rusefi/.github/workflows/custom-board-build | |
| id: kifirAction | |
| with: | |
| new_tag: ${{steps.set-variables.outputs.release_date}} | |
| artifacts: bin srec hex list map elf bundle autoupdate | |
| uploads: ini ${{steps.set-variables.outputs.upload}} | |
| push: ${{steps.set-variables.outputs.push}} | |
| run_simulator: ${{ steps.set-variables.outputs.sim }} | |
| 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}} | |
| gha_outputs_file: 'custom-board-build.outputs' | |
| - name: Get custom-board-build step outputs | |
| uses: kurt-code/gha-properties@v0.0.2 | |
| id: get-custom-board-build-step-outputs | |
| with: | |
| operation: 'read' | |
| file-path: 'custom-board-build.outputs' | |
| keys: 'white_label,short_board_name,new_tag' | |
| - name: Log custom-board-build step outputs | |
| shell: bash | |
| run: | | |
| : Log custom-board-build step outputs | |
| echo "new_tag=${{ steps.get-custom-board-build-step-outputs.outputs.new_tag }}" | |
| echo "white_label=${{ steps.get-custom-board-build-step-outputs.outputs.white_label }}" | |
| echo "short_board_name=${{ steps.get-custom-board-build-step-outputs.outputs.short_board_name }}" |