Skip to content

Commit

Permalink
generate elf bin
Browse files Browse the repository at this point in the history
(cherry picked from commit 9776594da95a4c85cda297edfaa239a3a3618e21)
  • Loading branch information
mathieucarbou committed Jul 12, 2024
1 parent 986f526 commit 5065178
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build-oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,13 @@ jobs:
pio run -e ${{ matrix.environment }}
mv .pio/build/${{ matrix.environment }}/firmware.bin ./${{ needs.pio_envs.outputs.pio_name }}-$ref-${{ matrix.environment }}-en.OTA.bin
mv .pio/build/${{ matrix.environment }}/firmware.factory.bin ./${{ needs.pio_envs.outputs.pio_name }}-$ref-${{ matrix.environment }}-en.FACTORY.bin
mv .pio/build/${{ matrix.environment }}/firmware.elf ./${{ needs.pio_envs.outputs.pio_name }}-$ref-${{ matrix.environment }}-en.elf
# lang: fr
sed -i 's/YASOLR_LANG_EN/YASOLR_LANG_FR/' platformio.ini
pio run -e ${{ matrix.environment }}
mv .pio/build/${{ matrix.environment }}/firmware.bin ./${{ needs.pio_envs.outputs.pio_name }}-$ref-${{ matrix.environment }}-fr.OTA.bin
mv .pio/build/${{ matrix.environment }}/firmware.factory.bin ./${{ needs.pio_envs.outputs.pio_name }}-$ref-${{ matrix.environment }}-fr.FACTORY.bin
mv .pio/build/${{ matrix.environment }}/firmware.elf ./${{ needs.pio_envs.outputs.pio_name }}-$ref-${{ matrix.environment }}-fr.elf
- name: Upload
uses: actions/upload-artifact@v4
Expand All @@ -113,6 +115,7 @@ jobs:
if-no-files-found: error
path: |
*.bin
*.elf
release:
name: Release
Expand All @@ -134,6 +137,7 @@ jobs:
run: |
ls -R artifacts
find artifacts -name '*.bin' -exec mv {} artifacts/ \;
find artifacts -name '*.elf' -exec mv {} artifacts/ \;
- name: Pre-Release
if: ${{ github.ref == 'refs/heads/main' }}
Expand All @@ -145,6 +149,7 @@ jobs:
title: Pre-release Builds
files: |
artifacts/*.bin
artifacts/*.elf
- name: Changelog
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
Expand All @@ -163,6 +168,8 @@ jobs:
with:
body: ${{steps.github_release.outputs.changelog}}
draft: false
files: artifacts/*.bin
files: |
artifacts/*.bin
artifacts/*.elf
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

0 comments on commit 5065178

Please sign in to comment.