From c70261f922cdc635cf35c27a94b42d1c8e8a8e21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 3 Nov 2023 00:06:56 +0200 Subject: [PATCH] github: Compile i686 libcxx tests with an x86_64 build of the compiler Some tests in the libcxx testsuite require more than 2 GB of memory to compile currently. --- .github/workflows/build.yml | 10 +++++----- .github/workflows/test-libcxx.yml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f427b15..4ff192a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -338,9 +338,9 @@ jobs: strategy: fail-fast: false matrix: - arch: - - x86_64 - - i686 + include: + - { arch: x86_64, prefix: i686-w64-mingw32- } + - { arch: x86_64, prefix: } steps: - name: Install dependencies run: | @@ -374,8 +374,8 @@ jobs: -DLIBCXX_ENABLE_WERROR=YES ` -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind" ` -DLIBCXX_CXX_ABI=libcxxabi ` - -DCMAKE_C_COMPILER=clang ` - -DCMAKE_CXX_COMPILER=clang++ ` + -DCMAKE_C_COMPILER=${{matrix.prefix}}clang ` + -DCMAKE_CXX_COMPILER=${{matrix.prefix}}clang++ ` -DLIBCXXABI_ENABLE_SHARED=NO ` -DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=YES ` -DLIBCXX_USE_COMPILER_RT=YES ` diff --git a/.github/workflows/test-libcxx.yml b/.github/workflows/test-libcxx.yml index 04cc17a..f9ab8e2 100644 --- a/.github/workflows/test-libcxx.yml +++ b/.github/workflows/test-libcxx.yml @@ -44,9 +44,9 @@ jobs: strategy: fail-fast: false matrix: - arch: - - x86_64 - - i686 + include: + - { arch: x86_64, prefix: i686-w64-mingw32- } + - { arch: x86_64, prefix: } steps: - name: Install dependencies run: | @@ -86,8 +86,8 @@ jobs: -DLIBCXX_ENABLE_WERROR=YES ` -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind" ` -DLIBCXX_CXX_ABI=libcxxabi ` - -DCMAKE_C_COMPILER=clang ` - -DCMAKE_CXX_COMPILER=clang++ ` + -DCMAKE_C_COMPILER=${{matrix.prefix}}clang ` + -DCMAKE_CXX_COMPILER=${{matrix.prefix}}clang++ ` -DLIBCXXABI_ENABLE_SHARED=NO ` -DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=YES ` -DLIBCXX_USE_COMPILER_RT=YES `