Skip to content

Commit

Permalink
address maxlab-io#5: add prelim GH actions scripts and configs
Browse files Browse the repository at this point in the history
Docker is selected as a convinient way to build the thing
  • Loading branch information
forGGe committed Aug 20, 2024
1 parent cc802f5 commit 306c6db
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@ on:
workflow_dispatch:
push:
branches:
- main
- release/*
- main
- release/*
- workflow/*

jobs:
build_fw:
runs-on: ubuntu-latest
container:
image: idf:v5.3
container:
image: espressif/idf:v5.3
steps:
- name: "Hello world!"
run: echo "hello world!"
- name: "Checkout files"
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Regular firmware build"
run: "./ci/build.sh"
10 changes: 10 additions & 0 deletions ci/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# TODO: print more information about the container

(ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv)
echo "IDF_PATH: $IDF_PATH"
echo "PATH: $PATH"

. "${IDF_PATH}/export.sh"
idf.py -C webserver build

0 comments on commit 306c6db

Please sign in to comment.