From 278ab81c79ece0bdf5d0f0c0cf6f59dcf6d711c5 Mon Sep 17 00:00:00 2001 From: Calvin Morrow Date: Tue, 17 Oct 2023 20:03:04 -0700 Subject: [PATCH] Update CI workflow to cache esp32 downloads and install to correct location --- .github/workflows/ci.yaml | 10 +++++++++- .gitmodules | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 057efd2..0b8eb03 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -30,8 +30,16 @@ jobs: - name: Install Arduino Tools run: sudo apt-get install -y arduino arduino-core-avr + - name: Cache esp32 Dependencies + uses: actions/cache@v3 + with: + path: libraries/arduino-esp32/tools/dist/ + key: ${{ runner.os }}-${{ hashFiles('.gitmodules') }} + - name: Install esp32 Tools - run: python3 libraries/arduino-esp32/tools/get.py + run: | + cd libraries/arduino-esp32/tools/ + python3 get.py # Recursively build all sketches with Makefiles - name: Compile Sketches diff --git a/.gitmodules b/.gitmodules index f27f975..5be4d42 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +1,4 @@ -[submodule "libs/dcs-bios-arduino-library"] +[submodule "libraries/dcs-bios-arduino-library"] path = libraries/dcs-bios-arduino-library url = https://github.com/DCS-Skunkworks/dcs-bios-arduino-library.git [submodule "libraries/Arduino_Boards"]