public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Eric Gallager <egallager@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/egallager/heads/CI)] Update linux.yaml Date: Sun, 15 Oct 2023 09:09:07 +0000 (GMT) [thread overview] Message-ID: <20231015090907.970A83858C39@sourceware.org> (raw) https://gcc.gnu.org/g:03387feb9ff7fe33abe08d129b20a34fbbf43510 commit 03387feb9ff7fe33abe08d129b20a34fbbf43510 Author: Eric Gallager <egallager@gcc.gnu.org> Date: Sun Oct 15 05:06:26 2023 -0400 Update linux.yaml hopefully this goes quicker... Diff: --- .github/workflows/linux.yaml | 65 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 52 insertions(+), 13 deletions(-) diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index 6a641cd770a..9887c92d16d 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -3,14 +3,14 @@ on: push: branches: - master + - me/* - releases/gcc-* tags: - releases/gcc-* pull_request: branches: - master - - releases/gcc-* - tags: + - me/* - releases/gcc-* concurrency: @@ -36,13 +36,26 @@ jobs: - name: Install dependencies run: | sudo apt-get -qq update - sudo apt install -y gcc-multilib build-essential flex zlib1g-dev gnat gdc + sudo apt install -y gcc-multilib build-essential flex zlib1g-dev gnat gdc expect dejagnu libc-devtools - name: Install dependencies for aarch64 if: success() && contains(matrix.target, 'aarch64') run: | sudo apt-get -y install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binutils-aarch64-linux-gnu + - name: Cache + id: cache-deps + uses: actions/cache@v3 + env: + cache-name: cache-downloaded-prerequisites + with: + path: ../build + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('LAST_UPDATED') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + - name: Download prerequisites if: success() run: | @@ -51,13 +64,13 @@ jobs: - name: Configure x86_64 if: success() && matrix.target == 'x86_64' run: | - unset ADA_INCLUDE_PATH - unset ADA_OBJECT_PATH + if test -n "${ADA_INCLUDE_PATH}"; then unset ADA_INCLUDE_PATH; fi + if test -n "${ADA_OBJECT_PATH}"; then unset ADA_OBJECT_PATH; fi cd ../ - mkdir build + if test ! -d build; then mkdir build; fi cd build ../gcc/configure \ - --enable-languages=c,c++,go,d,fortran,objc,obj-c++,m2 \ + --enable-languages=c,c++,objc,obj-c++ \ --prefix=/usr \ --with-gcc-major-version-only \ --program-prefix=x86_64-linux-gnu- \ @@ -80,6 +93,7 @@ jobs: --with-target-system-zlib=auto \ --enable-objc-gc=auto \ --enable-multiarch \ + --disable-bootstrap \ --disable-werror \ --with-arch-32=i686 \ --with-abi=m64 \ @@ -88,26 +102,51 @@ jobs: --with-tune=generic \ --without-cuda-driver \ --enable-checking=release \ + --enable-silent-rules \ --build=x86_64-linux-gnu \ --host=x86_64-linux-gnu \ --target=x86_64-linux-gnu - - name: Make bootstrap + - name: Make docs + if: success() + run: | + cd ../build + make etags || make tags + make info + make dvi + make pdf + make html + + - name: Make if: success() run: | cd ../build - make bootstrap-lean -j$(nproc) + if test -x "$(which nproc)"; then echo "nproc says that we can use $(nproc) build jobs"; else echo "error: missing nproc!" >&2 && exit 1; fi + time (make -j"$(nproc)" | tee build.log) + + - name: Debug failure + if: failure() + 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; fi - - name: Make install + - name: Make install (plus docs) if: success() run: | cd ../build sudo make install + sudo make install-info + sudo make install-dvi + sudo make install-pdf + sudo make install-html + sudo make dir.info - name: Tests if: success() run: | - /usr/bin/x86_64-linux-gnu-gcc --version - /usr/bin/x86_64-linux-gnu-gcc -v + if test -x /usr/bin/x86_64-linux-gnu-gcc; then /usr/bin/x86_64-linux-gnu-gcc --version; elif test -x ../build/gcc/xgcc; then ../build/gcc/xgcc --version; fi + if test -x /usr/bin/x86_64-linux-gnu-gcc; then /usr/bin/x86_64-linux-gnu-gcc -v; elif test -x ../build/gcc/xgcc; then ../build/gcc/xgcc --v; fi cd ../build - make -k check + if test -e build.log; then make warning.log; fi + time make -k check + if test -e warning.log; then make mail-report-with-warnings.log; else make mail-report.log; fi + if test -x mail-report-with-warnings.log; then ./mail-report-with-warnings.log; elif test -x mail-report.log; then ./mail-report.log; fi
next reply other threads:[~2023-10-15 9:09 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-10-15 9:09 Eric Gallager [this message] -- strict thread matches above, loose matches on Subject: below -- 2023-10-28 17:48 Eric Gallager 2023-10-17 0:19 Eric Gallager 2023-10-16 22:50 Eric Gallager 2023-10-16 21:55 Eric Gallager 2023-10-16 21:55 Eric Gallager 2023-10-16 21:03 Eric Gallager 2023-10-16 8:50 Eric Gallager 2023-10-16 8:31 Eric Gallager 2023-10-16 8:27 Eric Gallager 2023-10-16 5:29 Eric Gallager 2023-10-16 3:57 Eric Gallager 2023-10-16 2:23 Eric Gallager 2023-10-15 20:04 Eric Gallager 2023-10-15 19:35 Eric Gallager 2023-10-15 18:51 Eric Gallager 2023-10-15 11:03 Eric Gallager 2023-10-15 10:38 Eric Gallager 2023-10-15 9:35 Eric Gallager 2023-10-15 9:23 Eric Gallager 2023-10-15 9:16 Eric Gallager 2023-10-15 9:09 Eric Gallager
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20231015090907.970A83858C39@sourceware.org \ --to=egallager@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).