Merge pull request #3750 from mmuetzel/ci-msys2

CI (MSYS2): Configure with `-DCMAKE_BUILD_TYPE=Release`.
This commit is contained in:
Martin Kroeker 2022-09-02 14:47:16 +02:00 committed by GitHub
commit 93a6e5fe30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 4 deletions

View File

@ -150,6 +150,7 @@ jobs:
matrix: matrix:
msystem: [MINGW64, MINGW32, CLANG64] msystem: [MINGW64, MINGW32, CLANG64]
idx: [int32, int64] idx: [int32, int64]
build-type: [Release]
include: include:
- msystem: MINGW64 - msystem: MINGW64
idx: int32 idx: int32
@ -173,6 +174,11 @@ jobs:
idx64-flags: -DBINARY=64 -DINTERFACE64=1 idx64-flags: -DBINARY=64 -DINTERFACE64=1
target-prefix: mingw-w64-clang-x86_64 target-prefix: mingw-w64-clang-x86_64
c-lapack-flags: -DC_LAPACK=ON c-lapack-flags: -DC_LAPACK=ON
- msystem: MINGW64
idx: int32
target-prefix: mingw-w64-x86_64
fc-pkg: mingw-w64-x86_64-gcc-fortran
build-type: None
exclude: exclude:
- msystem: MINGW32 - msystem: MINGW32
idx: int64 idx: int64
@ -215,11 +221,11 @@ jobs:
path: C:/msys64/home/runneradmin/.ccache path: C:/msys64/home/runneradmin/.ccache
# We include the commit sha in the cache key, as new cache entries are # We include the commit sha in the cache key, as new cache entries are
# only created if there is no existing entry for the key yet. # only created if there is no existing entry for the key yet.
key: ccache-msys2-${{ matrix.msystem }}-${{ matrix.idx }}-${{ github.ref }}-${{ github.sha }} key: ccache-msys2-${{ matrix.msystem }}-${{ matrix.idx }}-${{ matrix.build-type }}-${{ github.ref }}-${{ github.sha }}
# Restore a matching ccache cache entry. Prefer same branch. # Restore a matching ccache cache entry. Prefer same branch.
restore-keys: | restore-keys: |
ccache-msys2-${{ matrix.msystem }}-${{ matrix.idx }}-${{ github.ref }} ccache-msys2-${{ matrix.msystem }}-${{ matrix.idx }}-${{ matrix.build-type }}-${{ github.ref }}
ccache-msys2-${{ matrix.msystem }}-${{ matrix.idx }} ccache-msys2-${{ matrix.msystem }}-${{ matrix.idx }}-${{ matrix.build-type }}
- name: Configure ccache - name: Configure ccache
# Limit the maximum size and switch on compression to avoid exceeding the total disk or cache quota. # Limit the maximum size and switch on compression to avoid exceeding the total disk or cache quota.
@ -235,7 +241,8 @@ jobs:
- name: Configure OpenBLAS - name: Configure OpenBLAS
run: | run: |
mkdir build && cd build mkdir build && cd build
cmake -DBUILD_SHARED_LIBS=ON \ cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_STATIC_LIBS=ON \ -DBUILD_STATIC_LIBS=ON \
-DDYNAMIC_ARCH=ON \ -DDYNAMIC_ARCH=ON \
-DUSE_THREAD=ON \ -DUSE_THREAD=ON \
@ -258,6 +265,7 @@ jobs:
timeout-minutes: 60 timeout-minutes: 60
run: cd build && ctest run: cd build && ctest
cross_build: cross_build:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04