@@ -163,3 +163,41 @@ jobs:
163163 tag_name : ${{ steps.generate_tag_name.outputs.TAG_NAME }}
164164 files : |
165165 ${{ github.workspace }}/contrib-build/contrib_build-${{runner.os}}.tar.gz
166+
167+ - name : Determine platform name
168+ if : always()
169+ id : platform
170+ shell : bash
171+ run : |
172+ if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
173+ echo "name=linux" >> $GITHUB_OUTPUT
174+ elif [[ "${{ matrix.os }}" == "ubuntu-24.04-arm" ]]; then
175+ echo "name=linux_arm" >> $GITHUB_OUTPUT
176+ elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
177+ echo "name=macos" >> $GITHUB_OUTPUT
178+ elif [[ "${{ matrix.os }}" == "windows-latest" ]]; then
179+ echo "name=windows" >> $GITHUB_OUTPUT
180+ else
181+ echo "name=${{ matrix.os }}" >> $GITHUB_OUTPUT
182+ fi
183+
184+ - name : Collect build logs
185+ if : always()
186+ shell : bash
187+ run : |
188+ mkdir -p "${{ github.workspace }}/build-logs"
189+ # Copy and rename logs to distinguish between ALL and OPENMP builds
190+ if [ -f "${{ github.workspace }}/contrib-build/contrib_build.log" ]; then
191+ cp "${{ github.workspace }}/contrib-build/contrib_build.log" "${{ github.workspace }}/build-logs/contrib_build_all.log"
192+ fi
193+ if [ -f "${{ github.workspace }}/contrib-build-openmp/contrib_build.log" ]; then
194+ cp "${{ github.workspace }}/contrib-build-openmp/contrib_build.log" "${{ github.workspace }}/build-logs/contrib_build_openmp.log"
195+ fi
196+
197+ - name : Upload build logs
198+ if : always()
199+ uses : actions/upload-artifact@v4
200+ with :
201+ name : build-logs-${{ steps.platform.outputs.name }}
202+ path : ${{ github.workspace }}/build-logs/
203+ if-no-files-found : warn
0 commit comments