Skip to content

mingw

mingw #612

Workflow file for this run

name: mingw
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
schedule:
- cron: '16 0 * * 3,6' # <https://crontab.guru/#16_0_*_*_3,6> - "At 00:16 on Wednesday and Saturday."
jobs:
MinGW:
# Pinned windows version due to:
# https://github.com/egor-tensin/setup-mingw/issues/6
# if: false # Disable this platform temporarily
runs-on: windows-2022
env:
BUILD_PATH: build_space
steps:
- uses: actions/checkout@v4
- name: set up python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: ./.github/actions/setup-conan
- name: install boost
run: |
${boostroot} = "${env:GITHUB_WORKSPACE}\boost_install"
conan install boost/1.72.0@ -o boost:header_only=True -g deploy --install-folder ${boostroot}
echo "BOOST_ROOT=${boostroot}\boost" >> ${env:GITHUB_ENV}
# See uses: https://github.com/search?q=egor-tensin+setup-mingw+path%3A%2F.github%2Fworkflows%2F+extension%3Ayml&type=code
- name: Set up MinGW
uses: egor-tensin/setup-mingw@v2 # https://github.com/marketplace/actions/install-mingw
with:
platform: x64
version: 12.2.0
- name: Configure
shell: cmd
run: |
pwd
mkdir cmake-build
cd cmake-build
cmake --version
REM Release gives 'File too big' errors
cmake -G "MinGW Makefiles" .. -DCMAKE_BUILD_TYPE=Release
- name: Build
shell: cmd
run: |
cd cmake-build
cmake --build . --parallel 4
- name: Test
shell: cmd
run: |
cd cmake-build
ctest --verbose --output-on-failure -C Release