From d0a2058521538cd01c2cb5fb5eb35fd8dabe70f9 Mon Sep 17 00:00:00 2001 From: That One Seong Date: Sat, 3 Aug 2024 15:34:32 -0400 Subject: [PATCH 1/3] Update arduino-cli-builds.yml --- .github/workflows/arduino-cli-builds.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/arduino-cli-builds.yml b/.github/workflows/arduino-cli-builds.yml index 66d83bb..05742eb 100644 --- a/.github/workflows/arduino-cli-builds.yml +++ b/.github/workflows/arduino-cli-builds.yml @@ -71,9 +71,13 @@ jobs: - name: Setting up Arduino-cli run: arduino-cli core install rp2040:rp2040 --additional-urls https://github.com/SeongGino/arduino-pico/releases/download/3.9.2-fix/package_rp2040_fix_index_orig.json + + - name: Get short SHA + id: get-short-sha + run: echo ${{github.sha}} | cut -c 1-7 >> $GITHUB_OUTPUT - name: Compile for ${{ matrix.name }} - run: arduino-cli compile -e --fqbn rp2040:rp2040:${{matrix.fqbn}}:${{matrix.flags}} SamcoEnhanced --libraries libraries --build-property "build.extra_flags=-DPLAYER_NUMBER=1 -DDUAL_CORE -DMAMEHOOKER -DUSES_SOLENOID -DUSES_TEMP -DUSES_RUMBLE -DUSES_SWITCHES -DUSES_ANALOG -DFOURPIN_LED -DCUSTOM_NEOPIXEL -DUSES_DISPLAY" + run: arduino-cli compile -e --fqbn rp2040:rp2040:${{matrix.fqbn}}:${{matrix.flags}} SamcoEnhanced --libraries libraries --build-property 'build.extra_flags=-DPLAYER_NUMBER=1 -DGIT_HASH=${{steps.get-short-sha.outputs.id}} -DDUAL_CORE -DMAMEHOOKER -DUSES_SOLENOID -DUSES_TEMP -DUSES_RUMBLE -DUSES_SWITCHES -DUSES_ANALOG -DFOURPIN_LED -DCUSTOM_NEOPIXEL -DUSES_DISPLAY' - name: Rename build file run: cp ${{github.workspace}}/SamcoEnhanced/build/rp2040.rp2040.${{matrix.fqbn}}/SamcoEnhanced.ino.uf2 OpenFIREfw.${{ matrix.pretty }}.uf2 From 5ce9998a0b1994ccfb70f7bfc140d982b61cfd22 Mon Sep 17 00:00:00 2001 From: That One Seong Date: Sat, 3 Aug 2024 15:42:40 -0400 Subject: [PATCH 2/3] Update arduino-cli-builds.yml --- .github/workflows/arduino-cli-builds.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/arduino-cli-builds.yml b/.github/workflows/arduino-cli-builds.yml index 05742eb..88c87c4 100644 --- a/.github/workflows/arduino-cli-builds.yml +++ b/.github/workflows/arduino-cli-builds.yml @@ -74,7 +74,11 @@ jobs: - name: Get short SHA id: get-short-sha - run: echo ${{github.sha}} | cut -c 1-7 >> $GITHUB_OUTPUT + run: | + id=$(echo ${{github.sha}} | cut -c 1-7) + echo "id=$id" >> $GITHUB_OUTPUT + + - run: echo "${{steps.get-id.outputs.id}}" - name: Compile for ${{ matrix.name }} run: arduino-cli compile -e --fqbn rp2040:rp2040:${{matrix.fqbn}}:${{matrix.flags}} SamcoEnhanced --libraries libraries --build-property 'build.extra_flags=-DPLAYER_NUMBER=1 -DGIT_HASH=${{steps.get-short-sha.outputs.id}} -DDUAL_CORE -DMAMEHOOKER -DUSES_SOLENOID -DUSES_TEMP -DUSES_RUMBLE -DUSES_SWITCHES -DUSES_ANALOG -DFOURPIN_LED -DCUSTOM_NEOPIXEL -DUSES_DISPLAY' From 9c3001136eda56394c4d45dd765b8b5ffafa23cc Mon Sep 17 00:00:00 2001 From: That One Seong Date: Sat, 3 Aug 2024 15:44:06 -0400 Subject: [PATCH 3/3] Update arduino-cli-builds.yml --- .github/workflows/arduino-cli-builds.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/arduino-cli-builds.yml b/.github/workflows/arduino-cli-builds.yml index 88c87c4..862d01d 100644 --- a/.github/workflows/arduino-cli-builds.yml +++ b/.github/workflows/arduino-cli-builds.yml @@ -77,11 +77,9 @@ jobs: run: | id=$(echo ${{github.sha}} | cut -c 1-7) echo "id=$id" >> $GITHUB_OUTPUT - - - run: echo "${{steps.get-id.outputs.id}}" - name: Compile for ${{ matrix.name }} - run: arduino-cli compile -e --fqbn rp2040:rp2040:${{matrix.fqbn}}:${{matrix.flags}} SamcoEnhanced --libraries libraries --build-property 'build.extra_flags=-DPLAYER_NUMBER=1 -DGIT_HASH=${{steps.get-short-sha.outputs.id}} -DDUAL_CORE -DMAMEHOOKER -DUSES_SOLENOID -DUSES_TEMP -DUSES_RUMBLE -DUSES_SWITCHES -DUSES_ANALOG -DFOURPIN_LED -DCUSTOM_NEOPIXEL -DUSES_DISPLAY' + run: arduino-cli compile -e --fqbn rp2040:rp2040:${{matrix.fqbn}}:${{matrix.flags}} SamcoEnhanced --libraries libraries --build-property 'build.extra_flags=-DPLAYER_NUMBER=1 -DGIT_HASH="${{steps.get-short-sha.outputs.id}}" -DDUAL_CORE -DMAMEHOOKER -DUSES_SOLENOID -DUSES_TEMP -DUSES_RUMBLE -DUSES_SWITCHES -DUSES_ANALOG -DFOURPIN_LED -DCUSTOM_NEOPIXEL -DUSES_DISPLAY' - name: Rename build file run: cp ${{github.workspace}}/SamcoEnhanced/build/rp2040.rp2040.${{matrix.fqbn}}/SamcoEnhanced.ino.uf2 OpenFIREfw.${{ matrix.pretty }}.uf2