run_simulator
This commit is contained in:
parent
0e0a17532f
commit
1a1fcc9127
|
@ -4,37 +4,40 @@ on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '10 17 * * *' # build fresh every 5:10 PM
|
- cron: '10 17 * * *' # build fresh every 5:10 PM
|
||||||
push:
|
push:
|
||||||
pull_request:
|
# pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-firmware:
|
build-firmware:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Set run variables
|
- name: Set run variables
|
||||||
id: set-variables
|
id: set-variables
|
||||||
run: |
|
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
|
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 'upload=bundles' >> $GITHUB_OUTPUT
|
||||||
echo 'push=true' >> $GITHUB_OUTPUT
|
echo 'push=true' >> $GITHUB_OUTPUT
|
||||||
else
|
echo 'sim=true' >> $GITHUB_OUTPUT
|
||||||
echo 'push=false' >> $GITHUB_OUTPUT
|
else
|
||||||
fi
|
echo 'push=false' >> $GITHUB_OUTPUT
|
||||||
|
echo 'sim=false' >> $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
|
|
||||||
- uses: ./ext/rusefi/.github/workflows/custom-board-build
|
- uses: ./ext/rusefi/.github/workflows/custom-board-build
|
||||||
with:
|
with:
|
||||||
artifacts: bin srec hex list map elf bundle autoupdate
|
artifacts: bin srec hex list map elf bundle autoupdate
|
||||||
uploads: ini ${{steps.set-variables.outputs.upload}}
|
uploads: ini ${{steps.set-variables.outputs.upload}}
|
||||||
push: ${{ steps.set-variables.outputs.push }}
|
push: ${{steps.set-variables.outputs.push}}
|
||||||
MY_REPO_PAT: ${{secrets.MY_REPO_PAT}}
|
run_simulator: ${{ steps.set-variables.outputs.sim }}
|
||||||
RUSEFI_ONLINE_FTP_USER: ${{secrets.RUSEFI_ONLINE_FTP_USER}}
|
MY_REPO_PAT: ${{secrets.MY_REPO_PAT}}
|
||||||
RUSEFI_ONLINE_FTP_PASS: ${{secrets.RUSEFI_ONLINE_FTP_PASS}}
|
RUSEFI_ONLINE_FTP_USER: ${{secrets.RUSEFI_ONLINE_FTP_USER}}
|
||||||
RUSEFI_FTP_SERVER: ${{secrets.RUSEFI_FTP_SERVER}}
|
RUSEFI_ONLINE_FTP_PASS: ${{secrets.RUSEFI_ONLINE_FTP_PASS}}
|
||||||
RUSEFI_SSH_SERVER: ${{secrets.RUSEFI_SSH_SERVER}}
|
RUSEFI_FTP_SERVER: ${{secrets.RUSEFI_FTP_SERVER}}
|
||||||
RUSEFI_SSH_USER: ${{secrets.RUSEFI_SSH_USER}}
|
RUSEFI_SSH_SERVER: ${{secrets.RUSEFI_SSH_SERVER}}
|
||||||
RUSEFI_SSH_PASS: ${{secrets.RUSEFI_SSH_PASS}}
|
RUSEFI_SSH_USER: ${{secrets.RUSEFI_SSH_USER}}
|
||||||
ADDITIONAL_ENV: ${{secrets.ADDITIONAL_ENV}}
|
RUSEFI_SSH_PASS: ${{secrets.RUSEFI_SSH_PASS}}
|
||||||
|
ADDITIONAL_ENV: ${{secrets.ADDITIONAL_ENV}}
|
||||||
|
|
Loading…
Reference in New Issue