upload bundles for all master firmware builds

This commit is contained in:
Matthew Kennedy 2023-05-02 15:45:25 -07:00
parent 00761c5c32
commit 39899a03f5
1 changed files with 5 additions and 9 deletions

View File

@ -9,10 +9,6 @@ on:
description: 'LTS Build'
required: false
type: boolean
bundle:
description: 'Make full firmware bundle'
required: false
type: boolean
jobs:
build-firmware:
@ -249,17 +245,17 @@ jobs:
# Build rusEFI console
- name: Build console
if: ${{ inputs.bundle || inputs.lts }}
if: ${{ github.event_name != 'push' || github.ref != 'refs/heads/master' && !inputs.lts }}
run: bash misc/jenkins/build_java_console.sh
# Build the simulator
- name: Build Windows simulator
if: ${{ inputs.bundle || inputs.lts }}
if: ${{ github.event_name != 'push' || github.ref != 'refs/heads/master' && !inputs.lts }}
# 'OS="Windows_NT"' allows us to build Windows executable on unix
run: OS="Windows_NT" bash misc/jenkins/build_simulator.sh
- name: Package Bundle
if: ${{ inputs.bundle || inputs.lts }}
if: ${{ github.event_name != 'push' || github.ref != 'refs/heads/master' && !inputs.lts }}
run: bash misc/jenkins/compile_other_versions/prepare_bundle.sh ${{matrix.build-target}} "${{matrix.ini-file}}" ${{ github.ref_name }} ${{ toJSON(inputs.lts) }}
# - name: Upload HyperTuner .ini
@ -272,7 +268,7 @@ jobs:
# ecosystem: fome
# - name: Upload .ini files
# if: ${{ inputs.bundle || inputs.lts }}
# if: ${{ github.event_name != 'push' || github.ref != 'refs/heads/master' && !inputs.lts }}
# working-directory: ./firmware/tunerstudio/generated
# run: |
# ../upload_ini.sh ${{matrix.ini-file}} ${{ secrets.RUSEFI_ONLINE_FTP_USER }} ${{ secrets.RUSEFI_ONLINE_FTP_PASS }} ${{ secrets.RUSEFI_FTP_SERVER }}
@ -306,7 +302,7 @@ jobs:
# path: ./firmware/deliver/rusefi*.dfu
- name: Upload bundle
if: ${{ inputs.bundle || inputs.lts }}
if: ${{ github.event_name != 'push' || github.ref != 'refs/heads/master' && !inputs.lts }}
uses: actions/upload-artifact@v3
with:
name: fome_bundle_${{matrix.build-target}}.zip