@@ -84,13 +84,15 @@ jobs:
84
84
with :
85
85
ref : ${{ github.event.pull_request.head.sha }}
86
86
fetch-depth : 0
87
+ path : zephyr
87
88
88
89
- name : Rebase
89
90
if : github.event_name == 'pull_request'
90
91
continue-on-error : true
91
92
env :
92
93
BASE_REF : ${{ github.base_ref }}
93
94
PR_HEAD : ${{ github.event.pull_request.head.sha }}
95
+ working-directory : zephyr
94
96
run : |
95
97
git config --global user.email "[email protected] "
96
98
git config --global user.name "Github Actions"
@@ -100,25 +102,21 @@ jobs:
100
102
git clean -f -d
101
103
git log --graph --oneline HEAD...${PR_HEAD}
102
104
103
- - name : cache-pip
104
- uses : actions/cache@v4
105
+ - name : Setup Zephyr project
106
+ uses : zephyrproject-rtos/action-zephyr-setup@v1
105
107
with :
106
- path : ~/.cache/pip
107
- key : pip-${{ hashFiles('doc/requirements.txt') }}
108
+ app- path : zephyr
109
+ toolchains : ' all '
108
110
109
111
- name : install-pip
112
+ working-directory : zephyr
110
113
run : |
111
114
pip install -r doc/requirements.txt
112
- pip install west==${WEST_VERSION}
113
- pip install cmake==${CMAKE_VERSION}
114
115
pip install coverxygen
115
116
116
- - name : west setup
117
- run : |
118
- west init -l .
119
-
120
117
- name : build-docs
121
118
shell : bash
119
+ working-directory : zephyr
122
120
run : |
123
121
if [[ "$GITHUB_REF" =~ "refs/tags/v" ]]; then
124
122
DOC_TAG="release"
@@ -144,6 +142,7 @@ jobs:
144
142
genhtml --no-function-coverage --no-branch-coverage new.info -o coverage-report
145
143
146
144
- name : compress-docs
145
+ working-directory : zephyr
147
146
run : |
148
147
tar --use-compress-program="xz -T0" -cf html-output.tar.xz --exclude html/_sources --exclude html/doxygen/xml --directory=doc/_build html
149
148
tar --use-compress-program="xz -T0" -cf api-output.tar.xz --directory=doc/_build html/doxygen/html
@@ -153,13 +152,13 @@ jobs:
153
152
uses : actions/upload-artifact@v4
154
153
with :
155
154
name : html-output
156
- path : html-output.tar.xz
155
+ path : zephyr/ html-output.tar.xz
157
156
158
157
- name : upload-api-coverage
159
158
uses : actions/upload-artifact@v4
160
159
with :
161
160
name : api-coverage
162
- path : api-coverage.tar.xz
161
+ path : zephyr/ api-coverage.tar.xz
163
162
164
163
- name : process-pr
165
164
if : github.event_name == 'pull_request'
0 commit comments