File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 1515 description : ' Prefix for binary name'
1616 required : true
1717 default : ' esp32-conways-game-of-life'
18- target :
18+ board :
1919 description : ' Target directory for the ESP32-C3 project (e.g. esp32-c3-lcdkit)'
2020 required : true
2121 default : ' esp32-c3-lcdkit'
@@ -40,18 +40,12 @@ jobs:
4040
4141 - name : Build ESP32-C3 Project and Collect Assets
4242 run : |
43- cd "${{ github.event.inputs.target }}"
43+ cd "${{ github.event.inputs.board }}"
4444 cargo build --release
4545 cd ..
4646 mkdir -p release_riscv_imc
4747 # Adjust the binary name/path as needed.
48- cp "${{ github.event.inputs.target }}/target/riscv32imc-unknown-none-elf/release/esp32-conways-game-of-life-rs" release_riscv_imc/
49-
50- # - name: Install GitHub CLI
51- # run: sudo apt-get install gh
52-
53- # - name: Authenticate GitHub CLI
54- # run: gh auth login --with-token <<< "${{ secrets.GITHUB_TOKEN }}"
48+ cp "${{ github.event.inputs.board }}/target/riscv32imc-unknown-none-elf/release/esp32-conways-game-of-life-rs" release_riscv_imc/
5549
5650 - name : Check if Release Exists
5751 id : check_release
8074 run : |
8175 for file in $(find release_riscv_imc -type f); do
8276 base=$(basename "$file")
83- asset_name="${{ github.event.inputs.prefix }}-${{ github.event.inputs.release_tag }}-${base} "
77+ asset_name="${{ github.event.inputs.prefix }}-${{ github.event.inputs.release_tag }}-${{ github.event.inputs.board }}.bin "
8478 echo "Uploading $file as $asset_name"
8579 gh release upload "${{ github.event.inputs.release_tag }}" "$file#${asset_name}" --clobber
8680 done
You can’t perform that action at this time.
0 commit comments