@@ -49,26 +49,12 @@ jobs:
4949 - name : Checkout
5050 uses : actions/checkout@v5
5151
52- - name : Fix homebrew python
53- if : matrix.os_name == 'macos' && matrix.os_version == '13'
52+ - name : Fix homebrew cmake # # see https://github.com/actions/runner-images/issues/12912
53+ if : matrix.os_name == 'macos'
5454 run : |
55- rm '/usr/local/bin/2to3'
56- rm '/usr/local/bin/2to3-3.12'
57- rm '/usr/local/bin/idle3'
58- rm '/usr/local/bin/idle3.12'
59- rm '/usr/local/bin/idle3.13'
60- rm '/usr/local/bin/pip3.12'
61- rm '/usr/local/bin/pip3.13'
62- rm '/usr/local/bin/pydoc3'
63- rm '/usr/local/bin/pydoc3.12'
64- rm '/usr/local/bin/pydoc3.13'
65- rm '/usr/local/bin/python3'
66- rm '/usr/local/bin/python3.12'
67- rm '/usr/local/bin/python3.13'
68- rm '/usr/local/bin/python3-config'
69- rm '/usr/local/bin/python3.12-config'
70- rm '/usr/local/bin/python3.13-config'
71- brew install python3
55+ brew uninstall cmake
56+ brew untap local/pinned
57+ brew install cmake
7258
7359 - name : Configure formula
7460 env :
@@ -161,36 +147,28 @@ jobs:
161147 validate : true
162148 - run : echo "::remove-matcher owner=gcc-strip3::"
163149
164- - name : Setup python
165- id : python
166- if : false
167- uses : actions/setup-python@v5
150+ # TODO: remove this step
151+ - name : Debug upload gcda artifact
152+ if : always() && matrix.release != true
153+ uses : actions/upload-artifact@v4
168154 with :
169- python-version : ' 3.11'
170-
171- - name : Generate gcov report
172- id : test_report
173- # any except canceled or skipped
174- # TODO: fix coverage, no .gcno files are being created
175- # TODO: .gcno files are supposed to be created next to .o files
176- if : false
177- # if: >-
178- # always() &&
179- # matrix.release != true &&
180- # (steps.test.outcome == 'success' || steps.test.outcome == 'failure')
155+ name : homebrew-gcda-${{ matrix.os_name }}-${{ matrix.os_version }}
156+ path : ${{ steps.test.outputs.buildpath }}/build/tests/CMakeFiles/test_sunshine.dir/__/src/audio.cpp.gcda
157+
158+ # TODO: remove this step
159+ - name : Debug homebrew buildpath
160+ if : always() && matrix.release != true
181161 run : |
182- cp -rf ${{ steps.test.outputs.buildpath }}/build/ ./build/
183- cd build
184- ls -Ra
185-
186- ${{ steps.python.outputs.python-path }} -m pip install gcovr
187- ${{ steps.python.outputs.python-path }} -m gcovr . -r ../src \
188- --exclude-noncode-lines \
189- --exclude-throw-branches \
190- --exclude-unreachable-branches \
191- --verbose \
192- --xml-pretty \
193- -o coverage.xml
162+ # print the build path
163+ echo "Build path: ${{ steps.test.outputs.buildpath }}"
164+ echo "contents:"
165+ ls -Ra ${{ steps.test.outputs.buildpath }}
166+
167+ # print the test path
168+ echo "----"
169+ echo "Test path: ${{ steps.test.outputs.testpath }}"
170+ echo "contents:"
171+ ls -Ra ${{ steps.test.outputs.testpath }}
194172
195173 - name : Upload coverage artifact
196174 if : >-
@@ -202,8 +180,8 @@ jobs:
202180 with :
203181 name : coverage-Homebrew-${{ matrix.os_name }}-${{ matrix.os_version }}
204182 path : |
205- build /coverage.xml
206- ${{ steps.test.outputs.testpath }}/test_results.xml
183+ ${{ steps.test.outputs.testpath }} /coverage.xml
184+ ${{ steps.test.outputs.testpath }}/tests/ test_results.xml
207185 if-no-files-found : error
208186
209187 - name : Patch homebrew formula
0 commit comments