From 9dc6fc6a638f20afd802304feed0f18f33973eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Thu, 2 May 2024 06:01:14 -0400 Subject: [PATCH] =?UTF-8?q?CI:=20Use=20faster=20mold=20linker=20to=20reduc?= =?UTF-8?q?e=20build=20time=20by=20=E2=89=88>30=20sec=20(#3681)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/codeql-analysis.yml | 4 ++-- .github/workflows/pytest.yml | 2 ++ .github/workflows/python-code-quality.yml | 4 +--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 2af853e39d4..49c6a473ccd 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -6,8 +6,6 @@ on: branches: - main pull_request: - branches: - - main paths-ignore: - '**/*.html' - '**/*.md' @@ -54,6 +52,8 @@ jobs: sudo apt-get install -y wget git gawk findutils xargs -a <(awk '! /^ *(#|$)/' ".github/workflows/apt.txt") -r -- \ sudo apt-get install -y --no-install-recommends --no-install-suggests + - uses: rui314/setup-mold@6bebc01caac32fb5251ee64f60cea0322d0e6574 # v1 + if: ${{ matrix.language == 'c-cpp' }} - name: Initialize CodeQL uses: github/codeql-action/init@d39d31e687223d841ef683f52467bd88e9b21c14 # v3.25.3 diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 65c750a8694..62dbe8c3014 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -47,6 +47,8 @@ jobs: xargs -a <(awk '! /^ *(#|$)/' ".github/workflows/apt.txt") -r -- \ sudo apt-get install -y --no-install-recommends --no-install-suggests + - uses: rui314/setup-mold@6bebc01caac32fb5251ee64f60cea0322d0e6574 # v1 + - name: Install Python dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/python-code-quality.yml b/.github/workflows/python-code-quality.yml index 659bb40d9ad..62f9c70a8f6 100644 --- a/.github/workflows/python-code-quality.yml +++ b/.github/workflows/python-code-quality.yml @@ -7,9 +7,6 @@ on: - main - releasebranch_* pull_request: - branches: - - main - - releasebranch_* jobs: python-checks: @@ -120,6 +117,7 @@ jobs: run: | echo "MAKEFLAGS=-j$(nproc)" >> $GITHUB_ENV + - uses: rui314/setup-mold@6bebc01caac32fb5251ee64f60cea0322d0e6574 # v1 - name: Build run: .github/workflows/build_${{ matrix.os }}.sh $HOME/install