Hello all,
I am trying to get our builds for our esp32 project working github actions. However, the .bin file produced by the build in github does not run. (Sorry, I don’t have a core dump, but we fail to boot.) Building locally is totally fine.
Everything builds. Files get uploaded. But the builds are bad.
Locally, working, I do this.
pio run -e V5_0_prototype
cp .pio/build/V5_0_prototype/poseidon_V5_0_prototype.bin ~/Documents/v0.0.3.bin
aws s3 cp ~/Documents/v0.0.3.bin s3://XXX/V5_0_prototype/
In Github, I do this.
# in .github/setup-platformio/action.yml
---
name: Setup PlatoformIO
description: Installs Python and Platform IO
runs:
using: "composite"
steps:
- name: Cache PlatformIO dependencies
uses: actions/cache@v3
with:
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
path: |
~/.pio
~/.platformio
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip' # caching pip dependencies
- name: Install PlatformIO
run: pip install --upgrade platformio
shell: bash
# in .github/workflows/pull_request.yml
---
name: Pull Requests
on:
pull_request:
branches:
- main
jobs:
build-upload:
name: Upload Builds
runs-on: ubuntu-latest
needs: build-all
timeout-minutes: 20
strategy:
matrix:
target: [V5_0_devkit_16MB, V5_0_prototype, V5_0_staging]
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: set timestamp
id: timestamp
run: echo "TIMESTAMP=$(git log -1 --format=%cd --date=unix)" >> $GITHUB_ENV
- name: Setup PlatformIO
uses: ./.github/actions/setup-platformio
- name: PIO build primary target
run: pio run -e ${{matrix.target}}
- name: Upload artifacts
uses: lumo-systems/s3-upload-github-action@master
env:
FILE: .pio/build/${{ matrix.target }}/poseidon_${{ matrix.target }}.bin
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
S3_BUCKET: poseidon-builds
S3_KEY: ${{ matrix.target }}/${{ env.TIMESTAMP }}.bin
versions
OSX: 12.6
PIO: Locally, I’m running 6.1.5. A coworker has verified that it also works with 6.1.6.
PIP: pip 22.3.1 from /opt/homebrew/lib/python3.10/site-packages/pip (python 3.10)
Any ideas?