Add version 1.2.0 #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows | |
on: | |
pull_request: | |
branches: [ "main" ] | |
paths-ignore: | |
- ".readthedocs.yaml" | |
- "README.md" | |
env: | |
CHOCO_LIB_DIR: C:\\ProgramData\\chocolatey\\lib | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
compiler: | |
[ | |
{ tool: msvc, ver: 141 }, | |
{ tool: msvc, ver: 142 }, | |
{ tool: mingw, ver: 7.5.0 }, | |
{ tool: mingw, ver: 8.5.0 }, | |
{ tool: mingw, ver: 9.4.0 }, | |
{ tool: mingw, ver: 10.3.0 }, | |
{ tool: mingw, ver: 11.2.0 }, | |
{ tool: mingw, ver: 12.2.0 }, | |
{ tool: mingw, ver: 13.2.0 }, | |
{ tool: LLVM, ver: 11.1.0 }, | |
{ tool: LLVM, ver: 12.0.1 }, | |
{ tool: LLVM, ver: 13.0.1 }, | |
{ tool: LLVM, ver: 14.0.6 }, | |
{ tool: LLVM, ver: 15.0.7 }, | |
{ tool: LLVM, ver: 16.0.6 }, | |
{ tool: LLVM, ver: 17.0.6 }, | |
] | |
build_type: [ Release ] | |
os: [ windows-2019 ] | |
std: [ 17 ] | |
library_type: [ Static ] | |
include: | |
- compiler: { tool: mingw } | |
cxx: g++ | |
cc: gcc | |
generator: "MinGW Makefiles" | |
- compiler: { tool: LLVM } | |
cxx: clang++ | |
cc: clang | |
generator: Ninja | |
- compiler: { tool: msvc } | |
cxx: "" | |
cc: "" | |
generator: "" | |
runs-on: ${{matrix.os}} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create Build Environment | |
if: matrix.compiler.tool != 'msvc' | |
shell: bash | |
run: choco install ${{matrix.compiler.tool}} --version ${{matrix.compiler.ver}} --allow-downgrade -y && choco install ninja && cmake -E make_directory ${{runner.workspace}}/build | |
- name: Update Sys Path | |
if: matrix.compiler.tool == 'mingw' | |
run: ("${{env.CHOCO_LIB_DIR}}\\mingw\\tools\\install\\mingw64\\bin;" + (Get-Content -Path $env:GITHUB_PATH)) | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 | |
shell: pwsh | |
- name: Configure | |
env: | |
CXX: ${{matrix.cxx}} | |
CC: ${{matrix.cc}} | |
PARAMETERS: ${{ matrix.compiler.tool == 'msvc' && format('-A x64 -T v{0}', matrix.compiler.ver) || format('-G "{0}"', matrix.generator) }} | |
run: cmake -B ${{runner.workspace}}/build ${{env.PARAMETERS}} -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_STANDARD=${{matrix.std}} -D_7BIT_CONF_LIBRARY_TYPE=${{matrix.library_type}} -D_7BIT_CONF_BUILD_ALL_TESTS=ON | |
- name: Build | |
run: cmake --build ${{runner.workspace}}/build --config ${{matrix.build_type}} -j | |
- name: Test | |
working-directory: ${{runner.workspace}}/build | |
run: ctest -C ${{matrix.build_type}} | |
env: | |
CTEST_OUTPUT_ON_FAILURE: True |