Update msys2-clang and msys2-gcc ci

This commit is contained in:
ado 2023-08-07 00:56:44 +02:00
parent a1f01ec5cb
commit 236b5da9c2
2 changed files with 27 additions and 44 deletions

View File

@ -21,9 +21,9 @@ jobs:
! contains(toJSON(github.event.commits.*.message), '[skip ci]') && ! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
! contains(toJSON(github.event.commits.*.message), '[skip github]') ! contains(toJSON(github.event.commits.*.message), '[skip github]')
name: ${{ matrix.msystem }} name: "${{matrix.os}}:${{matrix.msystem}}:${{matrix.type}}"
runs-on: ${{ matrix.os }} runs-on: ${{matrix.os}}
defaults: defaults:
run: run:
@ -33,32 +33,18 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
os: ['windows-2019', 'windows-latest'] os: [windows-2019, windows-latest]
type: [Release, Debug]
include: include:
- msystem: "MINGW64" - msystem: "MINGW64"
install: >- install: >-
git mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja git mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja
mingw-w64-x86_64-clang mingw-w64-x86_64-clang
type: Release
- msystem: "MINGW32" - msystem: "MINGW32"
install: >- install: >-
git mingw-w64-i686-cmake mingw-w64-i686-ninja git mingw-w64-i686-cmake mingw-w64-i686-ninja
mingw-w64-i686-clang mingw-w64-i686-clang
type: Release
- msystem: "MINGW64"
install: >-
git mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja
mingw-w64-x86_64-clang
type: Debug
- msystem: "MINGW32"
install: >-
git mingw-w64-i686-cmake mingw-w64-i686-ninja
mingw-w64-i686-clang
type: Debug
env: env:
CMAKE_GENERATOR: Ninja CMAKE_GENERATOR: Ninja
@ -69,8 +55,8 @@ jobs:
with: with:
update: true update: true
msystem: ${{ matrix.msystem }} msystem: ${{matrix.msystem}}
install: ${{ matrix.install }} install: ${{ matrix.install}}
- name: Install dependencies - name: Install dependencies
run: script/ci_install_deps.sh run: script/ci_install_deps.sh
@ -78,11 +64,11 @@ jobs:
- name: Configure - name: Configure
run: >- run: >-
cmake -DCMAKE_CXX_COMPILER=clang++ -S test -B build cmake -DCMAKE_CXX_COMPILER=clang++ -S test -B build
-DCMAKE_BUILD_TYPE=Debug -DCMAKE_BUILD_TYPE=${{matrix.type}}
- name: Build - name: Build
run: cmake --build build -j ${{ steps.cores.outputs.count }} run: cmake --build build -j ${{steps.cores.outputs.count}}
- name: Run - name: Run
working-directory: build working-directory: build
run: ctest --output-on-failure -j ${{ steps.cores.outputs.count }} run: ctest --output-on-failure -j ${{steps.cores.outputs.count}}

View File

@ -21,55 +21,52 @@ jobs:
! contains(toJSON(github.event.commits.*.message), '[skip ci]') && ! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
! contains(toJSON(github.event.commits.*.message), '[skip github]') ! contains(toJSON(github.event.commits.*.message), '[skip github]')
name: ${{ matrix.msystem }} name: "${{matrix.os}}:${{matrix.msystem}}:${{matrix.type}}"
runs-on: windows-latest
runs-on: ${{matrix.os}}
defaults: defaults:
run: run:
shell: msys2 {0} shell: msys2 {0}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [windows-2019, windows-latest]
type: [Release, Debug]
include: include:
- msystem: "MINGW64" - msystem: "MINGW64"
install: >- install: >-
git mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja git mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja
mingw-w64-x86_64-gcc mingw-w64-x86_64-gcc
type: Release
- msystem: "MINGW32"
install: >-
git mingw-w64-i686-cmake mingw-w64-i686-ninja
mingw-w64-i686-gcc
type: Release
- msystem: "MINGW64"
install: >-
git mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja
mingw-w64-x86_64-gcc
type: Debug
- msystem: "MINGW32" - msystem: "MINGW32"
install: >- install: >-
git mingw-w64-i686-cmake mingw-w64-i686-ninja git mingw-w64-i686-cmake mingw-w64-i686-ninja
mingw-w64-i686-gcc mingw-w64-i686-gcc
type: Debug
env: env:
CMAKE_GENERATOR: Ninja CMAKE_GENERATOR: Ninja
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2 - uses: msys2/setup-msys2@v2
with: with:
update: true update: true
msystem: ${{ matrix.msystem }} msystem: ${{matrix.msystem}}
install: ${{ matrix.install }} install: ${{matrix.install}}
- name: Install dependencies - name: Install dependencies
run: script/ci_install_deps.sh run: script/ci_install_deps.sh
- name: Configure - name: Configure
run: cmake -S test -B build -D CMAKE_BUILD_TYPE=Debug run: cmake -S test -B build -D CMAKE_BUILD_TYPE=${{matrix.type}}
- name: Build - name: Build
run: cmake --build build -j ${{ steps.cores.outputs.count }} run: cmake --build build -j ${{steps.cores.outputs.count}}
- name: Run - name: Run
working-directory: build working-directory: build
run: ctest --output-on-failure -j ${{ steps.cores.outputs.count }} run: ctest --output-on-failure -j ${{steps.cores.outputs.count}}