mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 08:34:39 +08:00
e5b892baed
* cmake: correct minimum version the previous script would fail with CMake < 3.13 anyway. * cmake: canonical way to set C++ options * ci: use modern CMake syntax * doc: modern CMake syntax * most compilers have C++17 fallthrough * correct logic for [[noreturn]] --------- Co-authored-by: scivision <scivision@users.noreply.github.com>
36 lines
741 B
YAML
Vendored
36 lines
741 B
YAML
Vendored
name: Windows
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [windows-latest]
|
|
flags: ["/std:c++11", "/std:c++latest"]
|
|
optimize: [/O2]
|
|
|
|
env:
|
|
CXXFLAGS: ${{ matrix.flags }} ${{ matrix.optimize }}
|
|
CTEST_OUTPUT_ON_FAILURE: 1
|
|
CTEST_NO_TESTS_ACTION: error
|
|
CTEST_PARALLEL_LEVEL: 0
|
|
CMAKE_BUILD_PARALLEL_LEVEL: 4
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: CMake configure
|
|
run: cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -B build
|
|
|
|
- name: CMake build
|
|
run: cmake --build build --config Release
|
|
|
|
- name: CMake test
|
|
run: ctest --test-dir build -C Release
|