Add autobuild for local.
Harmonize with other repos. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
4
.github/workflows/codeql.yml
vendored
4
.github/workflows/codeql.yml
vendored
@@ -36,6 +36,7 @@ jobs:
|
|||||||
language: [ 'cpp', 'python' ]
|
language: [ 'cpp', 'python' ]
|
||||||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
||||||
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
|
||||||
|
mode: [ 'pico', 'esp32', 'local' ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@@ -67,8 +68,7 @@ jobs:
|
|||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
echo "Run, Build Application using script"
|
echo "Run, Build Application using script"
|
||||||
./workflows/autobuild.sh
|
./workflows/autobuild.sh ${{ matrix.mode }}
|
||||||
./workflows/autobuild_esp32.sh
|
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v3
|
uses: github/codeql-action/analyze@v3
|
||||||
|
|||||||
@@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib build-essential pkg-config libusb-1.0-0-dev
|
|
||||||
|
if [[ $1 == "pico" ]]; then
|
||||||
|
sudo apt install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
|
||||||
git clone https://github.com/raspberrypi/pico-sdk
|
git clone https://github.com/raspberrypi/pico-sdk
|
||||||
cd pico-sdk
|
cd pico-sdk
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
@@ -19,4 +21,19 @@ cd ../..
|
|||||||
mkdir build_pico
|
mkdir build_pico
|
||||||
cd build_pico
|
cd build_pico
|
||||||
cmake -DPICO_SDK_PATH=../pico-sdk ..
|
cmake -DPICO_SDK_PATH=../pico-sdk ..
|
||||||
make -j`nproc`
|
make
|
||||||
|
elif [[ $1 == "esp32" ]]; then
|
||||||
|
sudo apt install -y git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
|
||||||
|
git clone --recursive https://github.com/espressif/esp-idf.git
|
||||||
|
cd esp-idf
|
||||||
|
./install.sh esp32s3
|
||||||
|
. ./export.sh
|
||||||
|
cd ..
|
||||||
|
idf.py set-target esp32s3
|
||||||
|
idf.py all
|
||||||
|
else
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake -DENABLE_EMULATION=1 ..
|
||||||
|
make
|
||||||
|
fi
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
git submodule update --init --recursive
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install -y git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
|
|
||||||
git clone --recursive https://github.com/espressif/esp-idf.git
|
|
||||||
cd esp-idf
|
|
||||||
./install.sh esp32s3
|
|
||||||
. ./export.sh
|
|
||||||
cd ..
|
|
||||||
idf.py set-target esp32s3
|
|
||||||
idf.py all
|
|
||||||
Reference in New Issue
Block a user