-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into esp32/enable_extended_ble_adv
- Loading branch information
Showing
93 changed files
with
6,609 additions
and
9,876 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,56 @@ inputs: | |
description: "Platform name" | ||
required: false | ||
default: none | ||
bootstrap-log-name: | ||
description: "Bootstrap log name" | ||
required: false | ||
default: bootstrap-logs-${{ github.job }} | ||
outputs: | ||
cache-hit: | ||
description: "Bootstrap environment was restored from cache" | ||
value: ${{ fromJSON(steps.bootstrap-cache.outputs.outputs).cache-hit }} # retry returns all outputs in `outputs` | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Bootstrap | ||
- name: Calculate bootstrap cache key | ||
id: bootstrap-cache-key | ||
shell: bash | ||
run: | | ||
# Calculate bootstrap cache key | ||
# In addition to the various setup files, the work directory matters as well, | ||
# because the bootstrapped Pigweed environment contains absolute paths. | ||
FILES_HASH="${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}" | ||
FINAL_HASH="$(echo "$PWD:$FILES_HASH" | shasum -a 256 | cut -d' ' -f1)" | ||
echo "Calculated bootstrap cache key for '$PWD': $FINAL_HASH" | ||
echo "hash=$FINAL_HASH" >> "$GITHUB_OUTPUT" | ||
- uses: Wandalen/[email protected] | ||
name: Bootstrap from cache | ||
id: bootstrap-cache | ||
continue-on-error: true | ||
with: | ||
action: buildjet/cache@v4 | ||
attempt_limit: 3 | ||
attempt_delay: 2000 | ||
with: | | ||
key: ${{ runner.os }}-${{ runner.arch }}-${{ inputs.platform }}-${{ steps.bootstrap-cache-key.outputs.hash}} | ||
path: | | ||
.environment | ||
build_overrides/pigweed_environment.gni | ||
- name: Run bootstrap | ||
if: fromJSON(steps.bootstrap-cache.outputs.outputs).cache-hit != 'true' | ||
env: | ||
PW_NO_CIPD_CACHE_DIR: Y | ||
shell: bash | ||
run: bash scripts/bootstrap.sh -p all,${{ inputs.platform }} | ||
run: source scripts/bootstrap.sh -p all,${{ inputs.platform }} | ||
|
||
- name: Uploading bootstrap logs | ||
uses: actions/upload-artifact@v4 | ||
if: always() && !env.ACT && fromJSON(steps.bootstrap-cache.outputs.outputs).cache-hit != 'true' | ||
with: | ||
name: ${{ inputs.bootstrap-log-name }} | ||
path: | | ||
.environment/gn_out/.ninja_log | ||
.environment/pigweed-venv/*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.