Skip to content

Update deduction guides #534

Update deduction guides

Update deduction guides #534

Workflow file for this run

name: MinGW
on: [push, pull_request]
jobs:
build-and-test:
strategy:
matrix:
include:
- arch: 'x64'
build_type: 'Release'
flags: '-std=c++11 -Wa,-mbig-obj -msse2'
- arch: 'x64'
build_type: 'Release'
flags: '-std=c++23 -Wa,-mbig-obj -msse2 -DLIBCPP_TEST_DEDUCTION_GUIDES'
- arch: 'x64'
build_type: 'Release'
flags: '-std=c++23 -Wa,-mbig-obj -msse2 -DTEST_LIBCXX_NEW -DTEST_DISABLE_SIMPLE'
# - arch: 'x86'
# build_type: 'Release'
# flags: '-std=c++11 -Wa,-mbig-obj -msse2'
#
# - arch: 'x86'
# build_type: 'Release'
# flags: '-std=c++11 -Wa,-mbig-obj -fno-rtti -DMOMO_USE_SAFE_MAP_BRACKETS -DMOMO_USE_UNORDERED_HINT_ITERATORS -DMOMO_DISABLE_TYPE_INFO'
#
# - arch: 'x86'
# build_type: 'Release'
# flags: '-std=c++23 -Wa,-mbig-obj -msse2 -DLIBCPP_TEST_DEDUCTION_GUIDES'
#
# - arch: 'x86'
# build_type: 'Release'
# flags: '-std=c++23 -Wa,-mbig-obj -DLIBCPP_TEST_DEDUCTION_GUIDES -fno-rtti -DMOMO_USE_SAFE_MAP_BRACKETS -DMOMO_USE_UNORDERED_HINT_ITERATORS -DMOMO_DISABLE_TYPE_INFO'
#
# - arch: 'x86'
# build_type: 'Release'
# flags: '-std=c++23 -Wa,-mbig-obj -msse2 -DTEST_LIBCXX_NEW -DTEST_DISABLE_SIMPLE'
#
# - arch: 'x86'
# build_type: 'Release'
# flags: '-std=c++23 -Wa,-mbig-obj -DTEST_LIBCXX_NEW -DTEST_DISABLE_SIMPLE -fno-rtti -DMOMO_USE_SAFE_MAP_BRACKETS -DMOMO_USE_UNORDERED_HINT_ITERATORS -DMOMO_DISABLE_TYPE_INFO'
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ninja
uses: seanmiddleditch/gha-setup-ninja@v4
- name: Setup MinGW
uses: e-t-l/setup-mingw@patch-1
# uses: egor-tensin/setup-mingw@v2
with:
platform: ${{ matrix.arch }}
- name: Build
env:
CXXFLAGS: ${{ matrix.flags }}
run: |
cd test
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
cmake --build . -v
- name: Test
run: test/build/momo_test.exe