Skip to content

Commit 49e794c

Browse files
committed
fix ci and sa
1 parent c8a14a8 commit 49e794c

File tree

6 files changed

+31
-19
lines changed

6 files changed

+31
-19
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ 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:
19-
esp_idf_version: v5.2.2
17+
esp_idf_version: release-v5.4
2018
target: esp32
2119
path: '.'

.github/workflows/package_main.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,62 @@ on:
55
branches: [main]
66
release:
77
types: [published]
8+
workflow_dispatch:
89

910
jobs:
1011
build:
1112

1213
runs-on: ubuntu-latest
1314
continue-on-error: false
1415

16+
outputs:
17+
zipfile-id: ${{ steps.zip_step.outputs.artifact-id }}
18+
1519
steps:
1620
- name: Checkout repo
1721
uses: actions/checkout@v4
18-
with:
19-
submodules: 'recursive'
2022

2123
- name: Build Main Code
2224
uses: espressif/esp-idf-ci-action@v1
2325
with:
24-
esp_idf_version: v5.2.2
26+
esp_idf_version: release-v5.4
2527
target: esp32
2628
path: '.'
2729

2830
- name: Upload Build Outputs
29-
uses: actions/upload-artifact@v3
31+
uses: actions/upload-artifact@v4
32+
id: zip_step
3033
with:
3134
name: build-artifacts
3235
path: |
36+
build/*.bin
37+
build/*.elf
3338
build/bootloader/bootloader.bin
3439
build/partition_table/partition-table.bin
35-
build/*.bin
40+
build/flasher_args.json
3641
build/flash_args
3742
3843
- name: Attach files to release
39-
uses: softprops/action-gh-release@v1
44+
uses: softprops/action-gh-release@v2
4045
if: ${{ github.event.release && github.event.action == 'published' }}
4146
with:
4247
files: |
4348
build/*.bin
49+
build/*.elf
4450
build/bootloader/bootloader.bin
4551
build/partition_table/partition-table.bin
52+
build/flasher_args.json
4653
build/flash_args
4754
55+
package:
56+
name: Package the binaries into an executables for Windows, MacOS, and Linux (Ubuntu)
57+
needs: build
58+
strategy:
59+
matrix:
60+
os: [windows-latest, macos-latest, ubuntu-latest]
61+
runs-on: ${{ matrix.os }}
62+
steps:
63+
- uses: esp-cpp/esp-packaged-programmer-action@v1.0.5
64+
with:
65+
zipfile-id: ${{ needs.build.outputs.zipfile-id }}
66+
programmer-name: 'camera-streamer_programmer'

.github/workflows/static_analysis.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,15 @@ jobs:
99
steps:
1010
- name: Checkout repo
1111
uses: actions/checkout@v2
12-
with:
13-
submodules: 'recursive'
1412

1513
- name: Run static analysis
1614
uses: esp-cpp/StaticAnalysis@master
1715
with:
1816
# Do not build the project and do not use cmake to generate compile_commands.json
1917
use_cmake: false
2018

21-
# Use the 5.2 release version since it's what we build with
22-
esp_idf_version: release/v5.2
19+
# Use the 5.4 release version since it's what we build with
20+
esp_idf_version: release/v5.4
2321

2422
# (Optional) cppcheck args
25-
cppcheck_args: -i$GITHUB_WORKSPACE/components/espp -i$GITHUB_WORKSPACE/components/esp32-camera -i$GITHUB_WORKSPACE/components/esp-protocols --force --enable=all --inline-suppr --inconclusive --platform=mips32 --std=c++17 --suppressions-list=$GITHUB_WORKSPACE/suppressions.txt
23+
cppcheck_args: --force --enable=all --inline-suppr --inconclusive --platform=mips32 --std=c++17 --suppressions-list=$GITHUB_WORKSPACE/suppressions.txt

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The following lines of boilerplate have to be in your project's CMakeLists
22
# in this exact order for cmake to work correctly
3-
cmake_minimum_required(VERSION 3.5)
3+
cmake_minimum_required(VERSION 3.20)
44

55
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
66

main/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ extern "C" void app_main(void) {
176176

177177
// initialize the camera
178178
logger.info("Creating camera task");
179-
auto camera_task_fn = [&rtsp_server, &logger](auto &m, auto &cv) -> bool {
179+
auto camera_task_fn = [&rtsp_server, &logger](const auto &m, const auto &cv) -> bool {
180180
// take image
181181
static camera_fb_t *fb = NULL;
182182
static size_t _jpg_buf_len;

sdkconfig.defaults

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ CONFIG_ESP_MAIN_TASK_STACK_SIZE=32768
1616
# SPIRAM Configuration
1717
CONFIG_SPIRAM=y
1818
CONFIG_SPIRAM_USE_MALLOC=y
19-
CONFIG_SPIRAM_MODE_OCT=y
2019
CONFIG_SPIRAM_SPEED_80M=y
21-
CONFIG_SPIRAM_FETCH_INSTRUCTIONS=y
22-
CONFIG_SPIRAM_RODATA=y
2320
# CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=y
2421

2522
#

0 commit comments

Comments
 (0)