From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2010) id E2C5E3858D33; Mon, 16 Oct 2023 22:50:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2C5E3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697496605; bh=t5Tesaec+w7pYQvzH3cTpNQJ1cT887zAw1ukLRp0Mp0=; h=From:To:Subject:Date:From; b=tDdfnPFGZV+UIWKQ1VhbQlQNFOTh12qXQfDnum7Nw8aUcfCFxp+hP2ewPmAfwu0tw A/mae/kBs+GibX9u0SPKc+geCGjm4OglcvIuWzXmD3pRAfozY75TuAD/WQbwE5Kjpo mRSqEqKtHYGiMvnbbicbDBVqJ3+pxhhda7y7zsQ0= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Eric Gallager To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/egallager/heads/CI)] Update linux.yaml X-Act-Checkin: gcc X-Git-Author: Eric Gallager X-Git-Refname: refs/users/egallager/heads/CI X-Git-Oldrev: dbc232e9b38e4cbde18e515c269178e1d3ce07d5 X-Git-Newrev: ea929b66a84e26cf9d5a4ab256d780cf17c57591 Message-Id: <20231016225005.E2C5E3858D33@sourceware.org> Date: Mon, 16 Oct 2023 22:50:05 +0000 (GMT) List-Id: https://gcc.gnu.org/g:ea929b66a84e26cf9d5a4ab256d780cf17c57591 commit ea929b66a84e26cf9d5a4ab256d780cf17c57591 Author: Eric Gallager Date: Mon Oct 16 18:49:44 2023 -0400 Update linux.yaml try seeing if there are more ways to upload logfiles Diff: --- .github/workflows/linux.yaml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index d1b0fbfa4369..ead4304f5112 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -117,10 +117,14 @@ jobs: run: | if test -r build.log; then grep -i "error:" build.log; \ elif test -r ../build/build.log; then grep -i "error:" ../build/build.log; \ - else \ + elif test -e ../build/Makefile; then \ sudo apt install remake; \ cd ../build; \ remake -dpPw --trace=full; \ + elif test -d ../build; then \ + cd ../build && ls; \ + else \ + pwd && ls; \ fi - name: Make docs (post-build) @@ -154,9 +158,13 @@ jobs: if test -e warning.log; then make mail-report-with-warnings.log; else make mail-report.log; fi if test -x "$(which Mail)"; then \ if test -x mail-report-with-warnings.log; then \ + echo "attempting to send mail-report-with-warnings.log"; \ ./mail-report-with-warnings.log; \ + stat mail-report-with-warnings.log; \ elif test -x mail-report.log; then \ + echo "attempting to send mail-report.log"; \ ./mail-report.log; \ + stat mail-report.log; \ elif test -e testsuite_output.log; then \ echo "TODO: figure out a way to send testsuite_output.log"; \ else \ @@ -165,3 +173,13 @@ jobs: else \ echo "Warning: \"Mail\" program is missing, so skipping emailing of testresults!"; \ fi + + - name: Upload a Build Artifact + uses: actions/upload-artifact@v3.1.3 + with: + # Artifact name + name: logfiles + # A file, directory or wildcard pattern that describes what to upload + path: | + ./*.log + ../build/*.log