From ca34a156340698771d12460ca5d012e6bebbd3cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 30 May 2025 23:59:59 +0300 Subject: [PATCH] github: Build the msvcrt toolchains with LTO and PGO --- .github/workflows/msvcrt.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/msvcrt.yml b/.github/workflows/msvcrt.yml index 9fb1276..ff0856e 100644 --- a/.github/workflows/msvcrt.yml +++ b/.github/workflows/msvcrt.yml @@ -106,6 +106,14 @@ jobs: - uses: actions/checkout@v4 with: ref: ${{inputs.ref}} + - name: Download profile + uses: dawidd6/action-download-artifact@v6 + with: + workflow: build.yml + workflow_conclusion: success + ref: ${{inputs.ref}} + event: push + name: profile - name: Build env: LLVM_VERSION: ${{needs.prepare.outputs.LLVM_VERSION}} @@ -114,7 +122,7 @@ jobs: TAG: ${{needs.prepare.outputs.TAG}} run: | sudo apt-get update && sudo apt-get install libltdl-dev swig autoconf-archive - ./build-cross-tools.sh /opt/llvm-mingw $(pwd)/install/llvm-mingw ${{matrix.arch}} --with-python + ./build-cross-tools.sh /opt/llvm-mingw $(pwd)/install/llvm-mingw ${{matrix.arch}} --with-python --thinlto --pgo .github/workflows/store-version.sh install/llvm-mingw/versions.txt cd install NAME=llvm-mingw-$TAG-${{matrix.crt}}-${{matrix.arch}}