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 15
15
description : ' Prefix for binary name'
16
16
required : true
17
17
default : ' esp32-conways-game-of-life'
18
- target :
18
+ board :
19
19
description : ' Target directory for the ESP32-C3 project (e.g. esp32-c3-lcdkit)'
20
20
required : true
21
21
default : ' esp32-c3-lcdkit'
@@ -40,18 +40,12 @@ jobs:
40
40
41
41
- name : Build ESP32-C3 Project and Collect Assets
42
42
run : |
43
- cd "${{ github.event.inputs.target }}"
43
+ cd "${{ github.event.inputs.board }}"
44
44
cargo build --release
45
45
cd ..
46
46
mkdir -p release_riscv_imc
47
47
# 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/
55
49
56
50
- name : Check if Release Exists
57
51
id : check_release
80
74
run : |
81
75
for file in $(find release_riscv_imc -type f); do
82
76
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 "
84
78
echo "Uploading $file as $asset_name"
85
79
gh release upload "${{ github.event.inputs.release_tag }}" "$file#${asset_name}" --clobber
86
80
done
You can’t perform that action at this time.
0 commit comments