Skip to content

Commit

Permalink
Update build.yaml (#1737)
Browse files Browse the repository at this point in the history
* Update build.yaml

* Update build.yaml
  • Loading branch information
caco3 authored Dec 31, 2022
1 parent b9abbaf commit 809823a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ jobs:
run: |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Cache PIP
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v3
with:
Expand All @@ -34,11 +42,18 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Use Build Cache
uses: actions/cache@v3
with:
path: ./code/.pio/
key: ${{ runner.os }}-pio-${{ github.ref_name }}

- name: Build Firmware
#run: echo "Testing... ${{ github.ref_name }}, ${{ steps.vars.outputs.sha_short }}" > ./sd-card/html/version.txt; mkdir -p ./code/.pio/build/esp32cam/; cd ./code/.pio/build/esp32cam/; echo "${{ steps.vars.outputs.sha_short }}" > firmware.bin; cp firmware.bin partitions.bin; cp firmware.bin bootloader.bin # Testing
run: cd code; platformio run --environment esp32cam
Expand Down

0 comments on commit 809823a

Please sign in to comment.