From 38d9f853f480a0f8a5d823837d344461a9079af6 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 9 Dec 2022 12:02:24 -0500 Subject: [PATCH] Try using mold in github actions --- .github/workflows/linux.yml | 16 ++++++++++++++++ .github/workflows/osx.yml | 8 ++++++++ 2 files changed, 24 insertions(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 3ebf4a90b0..dc1986a782 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -36,6 +36,10 @@ jobs: libraries: container iostreams python serialization system thread platform: x64 configuration: Release + - name: Install mold linker + uses: rui314/setup-mold@v1 + with: + make-default: false - name: configure deal.II run: | mkdir build @@ -85,6 +89,10 @@ jobs: petsc-dev \ libmetis-dev \ libhdf5-mpi-dev + - name: Install mold linker + uses: rui314/setup-mold@v1 + with: + make-default: false - name: info run: | mpicc -v @@ -160,6 +168,10 @@ jobs: numdiff \ openmpi-bin \ libboost-all-dev + - name: Install mold linker + uses: rui314/setup-mold@v1 + with: + make-default: false - name: info run: | mpicc -v @@ -254,6 +266,10 @@ jobs: intel-oneapi-mkl-devel \ intel-oneapi-tbb-devel sudo apt-get clean + - name: Install mold linker + uses: rui314/setup-mold@v1 + with: + make-default: false - name: info run: | source /opt/intel/oneapi/setvars.sh diff --git a/.github/workflows/osx.yml b/.github/workflows/osx.yml index c8b3e00892..e6afbfbac7 100644 --- a/.github/workflows/osx.yml +++ b/.github/workflows/osx.yml @@ -22,6 +22,10 @@ jobs: run: | g++ -v cmake --version + - name: Install mold linker + uses: rui314/setup-mold@v1 + with: + make-default: false - name: configure run: | cmake -D CMAKE_BUILD_TYPE=Debug -D DEAL_II_CXX_FLAGS='-Werror' -D DEAL_II_EARLY_DEPRECATIONS=ON . @@ -64,6 +68,10 @@ jobs: #export OMPI_CXX=g++ #export OMPI_CC=gcc #export OMPI_FC=gfortran + - name: Install mold linker + uses: rui314/setup-mold@v1 + with: + make-default: false - name: info run: | mpicxx -v -- 2.39.5