Merge pull request #367 from Master92/assignable_functions #729
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Firmware | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Build Firmware | |
run: | | |
bash setup.sh | |
make -C build | |
- name: Get Firmware Name | |
id: vars | |
run: echo "firmware_name=$(basename out/*bin)" >> $GITHUB_ENV | |
- name: Upload Firmware Package | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ env.firmware_name }} | |
path: out/${{ env.firmware_name }} | |
- name: Upload Firmware Binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: HDZGOGGLE | |
path: out/HDZGOGGLE | |
- name: Create Release | |
uses: softprops/[email protected] | |
if: startsWith(github.ref, 'refs/tags/v') | |
with: | |
files: out/${{ env.firmware_name }} | |
draft: true |