diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 40ff9be6..c559e207 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -703,3 +703,51 @@ jobs: run: | cd ../boost-root/__build__ ctest --output-on-failure --no-tests=error + + MSYS2: + defaults: + run: + shell: msys2 {0} + strategy: + fail-fast: false + matrix: + include: + - { sys: MINGW32, compiler: gcc, cxxstd: '03,11,17,20', cxxflags: "-fexcess-precision=fast" } + - { sys: MINGW64, compiler: gcc, cxxstd: '03,11,17,20', cxxflags: "-fexcess-precision=fast" } + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup MSYS2 environment + uses: msys2/setup-msys2@v2 + with: + msystem: ${{matrix.sys}} + update: true + install: git python + pacboy: gcc:p cmake:p ninja:p + + - name: Fetch Boost.CI + uses: actions/checkout@v3 + with: + repository: boostorg/boost-ci + ref: master + path: boost-ci-cloned + - name: Get CI scripts folder + run: | + # Copy ci folder if not testing Boost.CI + [[ "$GITHUB_REPOSITORY" =~ "boost-ci" ]] || cp -r boost-ci-cloned/ci . + rm -rf boost-ci-cloned + + - name: Setup Boost + env: + B2_COMPILER: ${{matrix.compiler}} + B2_CXXSTD: ${{matrix.cxxstd}} + B2_SANITIZE: ${{matrix.sanitize}} + B2_STDLIB: ${{matrix.stdlib}} + B2_CXXFLAGS: ${{matrix.cxxflags}} + run: ci/github/install.sh + + - name: Run tests + run: ci/build.sh