Skip to content

Commit 9c92a7e

Browse files
authored
Merge pull request #545 from cppalliance/msys
2 parents 641435d + 1af74cc commit 9c92a7e

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,3 +671,50 @@ jobs:
671671
run: |
672672
cd ../boost-root/__build__
673673
ctest --output-on-failure --no-tests=error
674+
675+
MSYS2:
676+
defaults:
677+
run:
678+
shell: msys2 {0}
679+
strategy:
680+
fail-fast: false
681+
matrix:
682+
include:
683+
#- { sys: MINGW32, compiler: gcc, cxxstd: '03,11,17,20' }
684+
- { sys: MINGW64, compiler: gcc, cxxstd: '03,11,17,20' }
685+
686+
runs-on: windows-latest
687+
688+
steps:
689+
- uses: actions/checkout@v3
690+
691+
- name: Setup MSYS2 environment
692+
uses: msys2/setup-msys2@v2
693+
with:
694+
msystem: ${{matrix.sys}}
695+
update: true
696+
install: git python
697+
pacboy: gcc:p cmake:p ninja:p
698+
699+
- name: Fetch Boost.CI
700+
uses: actions/checkout@v3
701+
with:
702+
repository: boostorg/boost-ci
703+
ref: master
704+
path: boost-ci-cloned
705+
- name: Get CI scripts folder
706+
run: |
707+
# Copy ci folder if not testing Boost.CI
708+
[[ "$GITHUB_REPOSITORY" =~ "boost-ci" ]] || cp -r boost-ci-cloned/ci .
709+
rm -rf boost-ci-cloned
710+
711+
- name: Setup Boost
712+
env:
713+
B2_COMPILER: ${{matrix.compiler}}
714+
B2_CXXSTD: ${{matrix.cxxstd}}
715+
B2_SANITIZE: ${{matrix.sanitize}}
716+
B2_STDLIB: ${{matrix.stdlib}}
717+
run: ci/github/install.sh
718+
719+
- name: Run tests
720+
run: ci/build.sh

0 commit comments

Comments
 (0)