From 1a1fcc9127916aedef1272875cb8bed1c29f361a Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sun, 17 Mar 2024 11:43:17 -0400 Subject: [PATCH] run_simulator --- .github/workflows/build-firmware.yaml | 55 ++++++++++++++------------- 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/.github/workflows/build-firmware.yaml b/.github/workflows/build-firmware.yaml index 0186b77..fff8fd7 100644 --- a/.github/workflows/build-firmware.yaml +++ b/.github/workflows/build-firmware.yaml @@ -4,37 +4,40 @@ on: schedule: - cron: '10 17 * * *' # build fresh every 5:10 PM push: - pull_request: + # pull_request: workflow_dispatch: jobs: build-firmware: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - submodules: true + - uses: actions/checkout@v4 + with: + submodules: true - - name: Set run variables - id: set-variables - run: | - 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 'upload=bundles' >> $GITHUB_OUTPUT - echo 'push=true' >> $GITHUB_OUTPUT - else - echo 'push=false' >> $GITHUB_OUTPUT - fi + - name: Set run variables + id: set-variables + run: | + 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 'upload=bundles' >> $GITHUB_OUTPUT + 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 - with: - artifacts: bin srec hex list map elf bundle autoupdate - uploads: ini ${{steps.set-variables.outputs.upload}} - push: ${{ steps.set-variables.outputs.push }} - 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}} + - uses: ./ext/rusefi/.github/workflows/custom-board-build + with: + 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}}