simdjson/.github/workflows/msys2.yml

45 lines
1.3 KiB
YAML
Raw Normal View History

2020-07-26 02:32:30 +08:00
name: MSYS2-CI
2020-07-27 02:39:47 +08:00
on: [push, pull_request]
2020-07-26 02:32:30 +08:00
jobs:
windows-mingw:
name: ${{ matrix.msystem }}
2020-07-26 02:32:30 +08:00
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
2020-07-26 02:32:30 +08:00
strategy:
fail-fast: false
matrix:
include:
- msystem: "MINGW64"
install: mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gcc
type: Release
- msystem: "MINGW32"
install: mingw-w64-i686-cmake mingw-w64-i686-ninja mingw-w64-i686-gcc
type: Release
- msystem: "MINGW64"
install: mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gcc
type: Debug
- msystem: "MINGW32"
install: mingw-w64-i686-cmake mingw-w64-i686-ninja mingw-w64-i686-gcc
type: Debug
2020-07-26 02:32:30 +08:00
env:
CMAKE_GENERATOR: Ninja
2020-07-26 02:32:30 +08:00
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
2020-07-26 02:32:30 +08:00
with:
update: true
msystem: ${{ matrix.msystem }}
install: ${{ matrix.install }}
2020-07-26 02:32:30 +08:00
- name: Build and Test
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DSIMDJSON_BUILD_STATIC=ON -DSIMDJSON_DO_NOT_USE_THREADS_NO_MATTER_WHAT=ON ..
2020-07-26 02:32:30 +08:00
cmake --build . --verbose
ctest -j4 --output-on-failure -E checkperf