only: verbose firmware build

This commit is contained in:
rusefillc 2023-07-26 15:34:26 -04:00
parent 23c6ed8f85
commit aec7c5fd45
1 changed files with 16 additions and 8 deletions

View File

@ -16,6 +16,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Set run condition variables
run: |
if [ "${{github.event_name}}" = "schedule" ] && [ "${{github.repository}}" = "rusefi/rusefi" ]; then
@ -389,6 +394,7 @@ jobs:
- name: Set run condition variables
run: |
if [ "${{github.event_name}}" = "schedule" ] && [ "${{github.repository}}" = "rusefi/rusefi" ]; then
echo "Scheduled mode"
echo "full=true" >> $GITHUB_ENV
echo "upload=release" >> $GITHUB_ENV
echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
@ -396,9 +402,11 @@ jobs:
&& [ "${{github.ref}}" = "refs/heads/master" ]\
&& [ "${{env.skip}}" != "true" ]\
|| [ "${{toJSON(inputs.lts)}}" = "true" ]; then
echo "Full mode"
echo "full=true" >> $GITHUB_ENV
echo "upload=server" >> $GITHUB_ENV
elif [ "${{env.skip}}" != "true" ]; then
echo "Partial mode"
echo "partial=true" >> $GITHUB_ENV
fi
@ -514,33 +522,33 @@ jobs:
allowUpdates: true
prerelease: true
- name: Upload .ini files
- name: Upload .ini files to server
if: ${{ env.full == 'true' }}
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 }}
- name: Upload build elf
- name: Upload build elf artifact
if: ${{ env.partial == 'true' }}
uses: actions/upload-artifact@v3
with:
name: rusefi_${{matrix.build-target}}.elf
path: ./firmware/build/rusefi.elf
- name: Upload build map
- name: Upload build map artifact
if: ${{ env.partial == 'true' }}
uses: actions/upload-artifact@v3
with:
name: rusefi_${{matrix.build-target}}.map
path: ./firmware/build/rusefi.map
- name: Upload build bin
- name: Upload build bin artifact
if: ${{ env.partial == 'true' }}
uses: actions/upload-artifact@v3
with:
name: rusefi_${{matrix.build-target}}.bin
path: ./firmware/deliver/rusefi*.bin
- name: Upload build hex
- name: Upload build hex artifact
if: ${{ env.partial == 'true' }}
uses: actions/upload-artifact@v3
with:
@ -549,21 +557,21 @@ jobs:
# todo: we should produce .hex in both OpenBLT and non-OpenBLT case same as we do for .bin and .elf
path: ./firmware/build/rusefi*.hex
- name: Upload build dfu
- name: Upload build dfu artifact
if: ${{ env.partial == 'true' }}
uses: actions/upload-artifact@v3
with:
name: rusefi_${{matrix.build-target}}.dfu
path: ./firmware/deliver/rusefi*.dfu
- name: Upload bundle
- name: Upload bundle artifact
if: ${{ env.full == 'true' }}
uses: actions/upload-artifact@v3
with:
name: rusefi_bundle_${{matrix.build-target}}.zip
path: ./artifacts/rusefi_bundle*.zip
- name: Upload autoupdate bundle
- name: Upload autoupdate bundle artifact
if: ${{ env.full == 'true' }}
uses: actions/upload-artifact@v3
with: