1
0
Fork 0
mirror of https://github.com/imjasonh/esp32 synced 2026-07-19 06:53:44 +00:00

CI: drop .embuild cache (corruption across runners), pass --target on publisher

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jason Hall 2026-05-02 14:27:42 -04:00
parent 9ef15ba16d
commit 0e9559f375

View file

@ -43,13 +43,11 @@ jobs:
buildtargets: esp32 buildtargets: esp32
ldproxy: true ldproxy: true
- name: Cache .embuild (ESP-IDF + tools) # Intentionally not caching .embuild here. Sharing the cache
uses: actions/cache@v5 # with publish.yml led to "too many levels of symbolic links"
with: # in the IDF venv (absolute symlinks baked in by one runner
path: .embuild # don't resolve cleanly on another). CI gets a slower cold
key: embuild-v5.2.2-${{ runner.os }}-${{ hashFiles('Cargo.toml', 'rust-toolchain.toml', '.cargo/config.toml') }} # build each time; the trade-off is reproducibility.
restore-keys: |
embuild-v5.2.2-${{ runner.os }}-
- name: Cache cargo build - name: Cache cargo build
uses: Swatinem/rust-cache@v2 uses: Swatinem/rust-cache@v2
@ -83,4 +81,7 @@ jobs:
shared-key: ci-publisher shared-key: ci-publisher
- name: Build publisher - name: Build publisher
run: cd tools/publisher && cargo build --release # Explicit --target overrides the parent .cargo/config.toml's
# `target = "xtensa-esp32-espidf"`. Hardcoded triple is fine
# because we control the runner (ubuntu-latest = x86_64-linux).
run: cd tools/publisher && cargo build --release --target x86_64-unknown-linux-gnu