File tree 9 files changed +55
-46
lines changed
checkout-submodules-and-bootstrap
9 files changed +55
-46
lines changed Original file line number Diff line number Diff line change 1
1
name : Bootstrap cache
2
- description : Bootstrap cache (deprecated)
2
+ description : Bootstrap cache
3
3
runs :
4
4
using : " composite"
5
5
steps :
Original file line number Diff line number Diff line change 5
5
description : " Platform name"
6
6
required : false
7
7
default : none
8
- bootstrap-log-name :
9
- description : " Bootstrap log name"
10
- required : false
11
- default : bootstrap-logs-${{ github.job }}
12
-
13
8
runs :
14
9
using : " composite"
15
10
steps :
16
- - uses : Wandalen/wretry.action@v1.4.10
17
- name : Bootstrap from cache
18
- id : bootstrap-cache
19
- continue-on-error : true
20
- with :
21
- action : buildjet/cache@v4
22
- attempt_limit : 3
23
- attempt_delay : 2000
24
- with : |
25
- key: ${{ runner.os }}-${{ inputs.platform }}-env-${{ hashFiles('scripts/setup/*', 'third_party/pigweed/**') }}
26
- path: |
27
- .environment
28
- build_overrides/pigweed_environment.gni
29
-
30
- - name : Run bootstrap
31
- if : fromJSON(steps.bootstrap-cache.outputs.outputs).cache-hit != 'true' # retry returns all outputs in `outputs`
32
- env :
33
- PW_NO_CIPD_CACHE_DIR : Y
11
+ - name : Bootstrap
34
12
shell : bash
35
- run : source scripts/bootstrap.sh -p all,${{ inputs.platform }}
36
-
37
- - name : Uploading bootstrap logs
38
- uses : actions/upload-artifact@v3
39
- if : always() && !env.ACT && fromJSON(steps.bootstrap-cache.outputs.outputs).cache-hit != 'true'
40
- with :
41
- name : ${{ inputs.bootstrap-log-name }}
42
- path : |
43
- .environment/gn_out/.ninja_log
44
- .environment/pigweed-venv/*.log
13
+ run : bash scripts/bootstrap.sh -p all,${{ inputs.platform }}
Original file line number Diff line number Diff line change @@ -26,14 +26,21 @@ runs:
26
26
with :
27
27
platform : ${{ inputs.platform }}
28
28
extra-parameters : ${{ inputs.extra-submodule-parameters }}
29
+ - name : Bootstrap Cache
30
+ uses : ./.github/actions/bootstrap-cache
29
31
- name : Bootstrap
30
32
uses : ./.github/actions/bootstrap
33
+ env :
34
+ PW_NO_CIPD_CACHE_DIR : Y
31
35
with :
32
36
platform : ${{ inputs.platform }}
33
- bootstrap-log-name : ${{ inputs.bootstrap-log-name }}
34
37
- name : Dump disk info after checkout submodule & Bootstrap
35
38
shell : bash
36
39
run : scripts/dump_diskspace_info.sh
40
+ - name : Upload Bootstrap Logs
41
+ uses : ./.github/actions/upload-bootstrap-logs
42
+ with :
43
+ bootstrap-log-name : ${{ inputs.bootstrap-log-name }}
37
44
- name : Work around TSAN ASLR issues
38
45
if : runner.os == 'Linux' && !env.ACT
39
46
shell : bash
Original file line number Diff line number Diff line change
1
+ name : Upload bootstrap logs
2
+ description : Upload bootstrap logs
3
+ inputs :
4
+ bootstrap-log-name :
5
+ description : " Bootstrap log name"
6
+ required : false
7
+ default : bootstrap-logs-${{ github.job }}
8
+ runs :
9
+ using : " composite"
10
+ steps :
11
+ - name : Uploading bootstrap logs
12
+ uses : actions/upload-artifact@v4
13
+ if : ${{ always() && !env.ACT }}
14
+ with :
15
+ name : ${{ inputs.bootstrap-log-name }}
16
+ path : |
17
+ .environment/gn_out/.ninja_log
18
+ .environment/pigweed-venv/*.log
Original file line number Diff line number Diff line change 57
57
with :
58
58
platform : linux
59
59
60
- # TODO: Is what's being cached here actually compatible with a regular bootstrap?
61
60
- name : Bootstrap Cache
62
61
uses : ./.github/actions/bootstrap-cache
63
62
- name : Bootstrap Cirque
Original file line number Diff line number Diff line change 46
46
run : |
47
47
mkdir objdir-clone || true
48
48
49
+ - name : Bootstrap Cache
50
+ uses : ./.github/actions/bootstrap-cache
49
51
- name : Bootstrap
50
52
uses : ./.github/actions/bootstrap
53
+ - name : Upload Bootstrap Logs
54
+ uses : ./.github/actions/upload-bootstrap-logs
51
55
52
56
- name : Build all-clusters-app
53
57
run : |
80
84
run : |
81
85
mkdir objdir-clone || true
82
86
87
+ - name : Bootstrap Cache
88
+ uses : ./.github/actions/bootstrap-cache
83
89
- name : Bootstrap
84
90
uses : ./.github/actions/bootstrap
91
+ - name : Upload Bootstrap Logs
92
+ uses : ./.github/actions/upload-bootstrap-logs
85
93
86
94
- name : Build all-clusters-app
87
95
run : |
Original file line number Diff line number Diff line change 39
39
uses : actions/checkout@v4
40
40
with :
41
41
ref : " ${{ github.event.inputs.releaseTag }}"
42
+ - name : Bootstrap Cache
43
+ uses : ./.github/actions/bootstrap-cache
42
44
- name : Bootstrap
43
45
uses : ./.github/actions/bootstrap
46
+ - name : Upload Bootstrap Logs
47
+ uses : ./.github/actions/upload-bootstrap-logs
44
48
45
49
- name : Build
46
50
run : scripts/examples/esp_example.sh all-clusters-app
70
74
uses : actions/checkout@v4
71
75
with :
72
76
ref : " ${{ github.event.inputs.releaseTag }}"
77
+ - name : Bootstrap Cache
78
+ uses : ./.github/actions/bootstrap-cache
73
79
- name : Bootstrap
74
80
uses : ./.github/actions/bootstrap
81
+ - name : Upload Bootstrap Logs
82
+ uses : ./.github/actions/upload-bootstrap-logs
75
83
76
84
- name : Build example EFR32 Lock App
77
85
run : scripts/examples/gn_silabs_example.sh examples/lock-app/efr32/
Original file line number Diff line number Diff line change @@ -21,14 +21,14 @@ _install_additional_pip_requirements() {
21
21
# figure out additional pip install items
22
22
while [ $# -gt 0 ]; do
23
23
case $1 in
24
- -p | --platform)
25
- _SETUP_PLATFORM=$2
26
- shift # argument
27
- shift # value
28
- ;;
29
- * )
30
- shift
31
- ;;
24
+ -p | --platform)
25
+ _SETUP_PLATFORM=$2
26
+ shift # argument
27
+ shift # value
28
+ ;;
29
+ * )
30
+ shift
31
+ ;;
32
32
esac
33
33
done
34
34
@@ -41,7 +41,7 @@ _install_additional_pip_requirements() {
41
41
42
42
for platform in ${_SETUP_PLATFORM} ; do
43
43
# Allow none as an alias of nothing extra installed (like -p none)
44
- if [ " $platform " != " none" -a -e " $_CHIP_ROOT /scripts/setup/requirements. $platform .txt " ]; then
44
+ if [ " $platform " != " none" ]; then
45
45
echo " Installing pip requirements for $platform ..."
46
46
pip install -q \
47
47
-r " $_CHIP_ROOT /scripts/setup/requirements.$platform .txt" \
@@ -66,7 +66,7 @@ _bootstrap_or_activate() {
66
66
local _BOOTSTRAP_NAME=" ${_BOOTSTRAP_PATH##*/ } "
67
67
local _BOOTSTRAP_DIR=" ${_BOOTSTRAP_PATH%/* } "
68
68
# Strip off the 'scripts[/setup]' directory, leaving the root of the repo.
69
- _CHIP_ROOT=" $( cd " ${_BOOTSTRAP_DIR%/ setup} /.." > /dev/null && pwd) "
69
+ _CHIP_ROOT=" $( cd " ${_BOOTSTRAP_DIR%/ setup} /.." > /dev/null && pwd) "
70
70
71
71
local _CONFIG_FILE=" scripts/setup/environment.json"
72
72
File renamed without changes.
You can’t perform that action at this time.
0 commit comments