Skip to content

Commit

Permalink
SUKU sync
Browse files Browse the repository at this point in the history
  • Loading branch information
SukuWc committed Mar 19, 2024
1 parent fe1078d commit 53e1a47
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/firmware_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: esp-idf build
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: latest
target: esp32s3
path: 'Firmware'

- name: Build Docker image containing toolchains
run: docker build -t my-image .

- name: Run script in Docker container
run: docker run -v $PWD:/project -w /project/ my-image sh -c "cd Firmware && idf.py build"

- name: Run Unit Tests
run: |
Expand Down
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use the base image
FROM docker.io/espressif/idf:v5.1.2

# Install pico sdk required dependencies
RUN apt update && \
apt install -y git python3 cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential xxd && \
mkdir -p pico && \
cd pico && \
git clone https://github.com/raspberrypi/pico-sdk.git --branch master && \
cd pico-sdk/ && \
git submodule update --init && \
cd ..

# Set working directory
WORKDIR /

ENV PICO_SDK_PATH=/pico/pico-sdk

# Define default command
CMD ["bash"]

0 comments on commit 53e1a47

Please sign in to comment.