Skip to content

Commit

Permalink
add simple CI setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-m committed Apr 24, 2024
1 parent bd0fc9a commit 769c81c
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on: [push]
name: ci

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Create empty sdkconfig.defaults
run: touch sdkconfig.defaults
- name: esp-idf build
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: v5.2
target: esp32
path: '.'
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: binaries
path: |
build/bootloader/bootloader.bin
build/partition_table/partition-table.bin
build/netshlix.bin
clang-format:
runs-on: ubuntu-latest
container:
image: ubuntu:22.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install clang-format etc.
run: apt-get update && apt-get install -y clang-format-14 git findutils
- name: Run clang-format
shell: bash
run: shopt -s globstar; clang-format-14 --dry-run --Werror **/*.c **/*.h
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.16)

set(SDKCONFIG_DEFAULTS "sdkconfig.defaults.ci;sdkconfig.defaults")

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(netshlix)
1 change: 0 additions & 1 deletion main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "rtp_jpeg.h"
#include "rtp_udp.h"
#include "sdkconfig.h"
#include "tjpgd.h"
#include "wifi.h"

static const char *TAG = "main";
Expand Down
7 changes: 7 additions & 0 deletions sdkconfig.defaults.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Config used in CI runs.

CONFIG_SMALLTV_WIFI_SSID="my-amazing-ssid"
CONFIG_SMALLTV_WIFI_PASSWORD="my-amazing-key"
CONFIG_ESP_WIFI_SOFTAP_SUPPORT=n

CONFIG_LWIP_NETBUF_RECVINFO=y

0 comments on commit 769c81c

Please sign in to comment.