Skip to content

Commit 51365af

Browse files
committed
chore: clean up CI, update CI deps, improve README
1 parent 8caa57b commit 51365af

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
steps:
1111
- name: Checkout repo
1212
uses: actions/checkout@v4
13-
with:
14-
submodules: 'recursive'
1513

1614
- name: Build main
1715
uses: espressif/esp-idf-ci-action@v1
1816
with:
1917
esp_idf_version: release-v5.4
2018
path: '.'
19+
# TODO: set the target here to be the chip you are building for
20+
# target: esp32s3

.github/workflows/package_main.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,22 @@ jobs:
1919
steps:
2020
- name: Checkout repo
2121
uses: actions/checkout@v4
22-
with:
23-
submodules: 'recursive'
2422

2523
- name: Build Main Code
2624
uses: espressif/esp-idf-ci-action@v1
2725
with:
2826
esp_idf_version: release-v5.4
2927
path: '.'
3028
command: 'idf.py build'
29+
# TODO: set the target here to be the chip you are building for
30+
# target: esp32s3
3131

3232
- name: Upload Build Outputs
3333
uses: actions/upload-artifact@v4
3434
id: zip_step
35+
# TODO: add / remove files below. You may want to include for example
36+
# littlefs-flash_args if you have a littlefs filesystem image you want to
37+
# include
3538
with:
3639
name: build-artifacts
3740
path: |
@@ -45,6 +48,9 @@ jobs:
4548
- name: Attach files to release
4649
uses: softprops/action-gh-release@v2
4750
if: ${{ github.event.release && github.event.action == 'published' }}
51+
# TODO: add / remove files below. You may want to include for example
52+
# littlefs-flash_args if you have a littlefs filesystem image you want to
53+
# include
4854
with:
4955
files: |
5056
build/*.bin
@@ -62,7 +68,8 @@ jobs:
6268
os: [windows-latest, macos-latest, ubuntu-latest]
6369
runs-on: ${{ matrix.os }}
6470
steps:
65-
- uses: esp-cpp/esp-packaged-programmer-action@v1.0.1
71+
- uses: esp-cpp/esp-packaged-programmer-action@v1.0.4
6672
with:
6773
zipfile-id: ${{ needs.build.outputs.zipfile-id }}
68-
programmer-name: 'esp-usb-ble-hid_programmer'
74+
# TODO: update programmer name to be what you want to call it
75+
programmer-name: 'your_programmer'

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ After setting this as the template, make sure to update the following:
3939
your project / processor.
4040
- Update the [./.github/workflows/build.yml](./.github/workflows/build.yml) file
4141
to have the correct target architecture (e.g. `esp32s3`) for your project.
42+
- Update the [./.github/workflows/package_main.yml](./.github/workflows/package_main.yml) file
43+
to:
44+
- have the correct target architecture (e.g. `esp32s3`) for your project
45+
- include all the build outputs you may want (e.g. littlefs file system images)
46+
- have the right name for the generated 1-click programmer executable
4247
- Enable `Read and Write permissions` under `Workflow Permissions` on the
4348
`Settings->Actions` subpage of the repository. that will allow the static
4449
analysis tool to put its results into a comment on any pull requests in your

0 commit comments

Comments
 (0)