mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-13 11:17:06 +07:00
additional macos test presets
This commit is contained in:
42
.github/workflows/darwin.yml
vendored
42
.github/workflows/darwin.yml
vendored
@@ -9,26 +9,26 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
config:
|
config:
|
||||||
# https://github.com/actions/virtual-environments/tree/main/images/macos
|
# https://github.com/actions/virtual-environments/tree/main/images/macos
|
||||||
- { os: "macos-12", xcode: "14.0", arch: "x64" }
|
- { os: "macos-12", xcode: "14.0", arch: "x64" }
|
||||||
- { os: "macos-12", xcode: "14.1", arch: "x64" }
|
- { os: "macos-12", xcode: "14.1", arch: "x64" }
|
||||||
- { os: "macos-12", xcode: "14.2", arch: "x64" }
|
- { os: "macos-12", xcode: "14.2", arch: "x64" }
|
||||||
name: "xcode-${{matrix.config.xcode}}"
|
name: "xcode-${{matrix.config.xcode}}"
|
||||||
steps:
|
steps:
|
||||||
- name: Setup
|
- name: Setup
|
||||||
run: |
|
run: |
|
||||||
brew update
|
brew update
|
||||||
brew install cmake ninja
|
brew install cmake ninja
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Select Xcode
|
- name: Select Xcode
|
||||||
run: sudo xcode-select --switch "/Applications/Xcode_${{matrix.config.xcode}}.app"
|
run: sudo xcode-select --switch "/Applications/Xcode_${{matrix.config.xcode}}.app"
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake --preset macos-${{matrix.config.arch}}
|
cmake --preset macos-${{matrix.config.arch}}
|
||||||
cmake --build --preset macos-${{matrix.config.arch}}-release
|
cmake --build --preset macos-${{matrix.config.arch}}-release
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
ctest --preset macos-${{matrix.config.arch}}-release
|
ctest --preset macos-${{matrix.config.arch}}
|
||||||
|
|||||||
40
.github/workflows/linux.yml
vendored
40
.github/workflows/linux.yml
vendored
@@ -9,25 +9,25 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
config:
|
config:
|
||||||
# https://github.com/actions/virtual-environments/tree/main/images/linux
|
# https://github.com/actions/virtual-environments/tree/main/images/linux
|
||||||
- { os: "ubuntu-20.04", cc: "gcc-10", cxx: "g++-10" }
|
- { os: "ubuntu-20.04", cc: "gcc-10", cxx: "g++-10" }
|
||||||
- { os: "ubuntu-20.04", cc: "clang-10", cxx: "clang++-10" }
|
- { os: "ubuntu-20.04", cc: "clang-10", cxx: "clang++-10" }
|
||||||
- { os: "ubuntu-22.04", cc: "gcc-12", cxx: "g++-12" }
|
- { os: "ubuntu-22.04", cc: "gcc-12", cxx: "g++-12" }
|
||||||
- { os: "ubuntu-22.04", cc: "clang-14", cxx: "clang++-14" }
|
- { os: "ubuntu-22.04", cc: "clang-14", cxx: "clang++-14" }
|
||||||
name: "${{matrix.config.cxx}}"
|
name: "${{matrix.config.cxx}}"
|
||||||
steps:
|
steps:
|
||||||
- name: Setup
|
- name: Setup
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -o Acquire::Retries=10
|
sudo apt-get update -o Acquire::Retries=10
|
||||||
sudo apt-get install -o Acquire::Retries=10 -y cmake ninja-build ${{matrix.config.cc}} ${{matrix.config.cxx}}
|
sudo apt-get install -o Acquire::Retries=10 -y cmake ninja-build ${{matrix.config.cc}} ${{matrix.config.cxx}}
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake --preset linux-${{matrix.config.cc}}
|
cmake --preset linux-${{matrix.config.cc}}
|
||||||
cmake --build --preset linux-${{matrix.config.cc}}-release
|
cmake --build --preset linux-${{matrix.config.cc}}-release
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
ctest --preset linux-${{matrix.config.cc}}-release
|
ctest --preset linux-${{matrix.config.cc}}
|
||||||
|
|||||||
40
.github/workflows/windows.yml
vendored
40
.github/workflows/windows.yml
vendored
@@ -9,25 +9,25 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
config:
|
config:
|
||||||
# https://github.com/actions/virtual-environments/tree/main/images/win
|
# https://github.com/actions/virtual-environments/tree/main/images/win
|
||||||
- { os: "windows-2019", vc: "msvc2019", arch: "x86" }
|
- { os: "windows-2019", vc: "msvc2019", arch: "x86" }
|
||||||
- { os: "windows-2019", vc: "msvc2019", arch: "x64" }
|
- { os: "windows-2019", vc: "msvc2019", arch: "x64" }
|
||||||
- { os: "windows-2022", vc: "msvc2022", arch: "x86" }
|
- { os: "windows-2022", vc: "msvc2022", arch: "x86" }
|
||||||
- { os: "windows-2022", vc: "msvc2022", arch: "x64" }
|
- { os: "windows-2022", vc: "msvc2022", arch: "x64" }
|
||||||
name: "${{matrix.config.vc}} ${{matrix.config.arch}}"
|
name: "${{matrix.config.vc}} ${{matrix.config.arch}}"
|
||||||
steps:
|
steps:
|
||||||
- name: Setup
|
- name: Setup
|
||||||
run: choco install cmake ninja
|
run: choco install cmake ninja
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Select MSVC
|
- name: Select MSVC
|
||||||
uses: ilammy/msvc-dev-cmd@v1
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake --preset windows-${{matrix.config.arch}}-${{matrix.config.vc}}
|
cmake --preset windows-${{matrix.config.arch}}-${{matrix.config.vc}}
|
||||||
cmake --build --preset windows-${{matrix.config.arch}}-${{matrix.config.vc}}-release
|
cmake --build --preset windows-${{matrix.config.arch}}-${{matrix.config.vc}}-release
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
ctest --preset windows-${{matrix.config.arch}}-${{matrix.config.vc}}-release
|
ctest --preset windows-${{matrix.config.arch}}-${{matrix.config.vc}}
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
{
|
{
|
||||||
"version": 3,
|
"version": 3,
|
||||||
|
|
||||||
"cmakeMinimumRequired": {
|
"cmakeMinimumRequired": {
|
||||||
"major": 3,
|
"major": 3,
|
||||||
"minor": 21,
|
"minor": 21,
|
||||||
"patch": 0
|
"patch": 0
|
||||||
},
|
},
|
||||||
|
|
||||||
"configurePresets": [
|
"configurePresets": [
|
||||||
{
|
{
|
||||||
"name": "ninja-base",
|
"name": "ninja-base",
|
||||||
@@ -203,7 +201,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
"buildPresets": [
|
"buildPresets": [
|
||||||
{
|
{
|
||||||
"name": "linux-clang-10-debug",
|
"name": "linux-clang-10-debug",
|
||||||
@@ -336,63 +333,91 @@
|
|||||||
"configurePreset": "windows-x64-msvc2022"
|
"configurePreset": "windows-x64-msvc2022"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
"testPresets": [
|
"testPresets": [
|
||||||
{
|
{
|
||||||
"name": "test-base",
|
"name": "test-base",
|
||||||
"hidden": true,
|
"hidden": true,
|
||||||
"output": {
|
"output": {
|
||||||
"verbosity": "verbose"
|
"verbosity": "verbose"
|
||||||
},
|
}
|
||||||
"configuration": "Release"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "linux-clang-10-release",
|
"name": "linux-clang-10",
|
||||||
"inherits": "test-base",
|
"inherits": "test-base",
|
||||||
"configurePreset": "linux-clang-10"
|
"configurePreset": "linux-clang-10"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "linux-clang-14-release",
|
"name": "linux-clang-14",
|
||||||
"inherits": "test-base",
|
"inherits": "test-base",
|
||||||
"configurePreset": "linux-clang-14"
|
"configurePreset": "linux-clang-14"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "linux-gcc-10-release",
|
"name": "linux-gcc-10",
|
||||||
"inherits": "test-base",
|
"inherits": "test-base",
|
||||||
"configurePreset": "linux-gcc-10"
|
"configurePreset": "linux-gcc-10"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "linux-gcc-12-release",
|
"name": "linux-gcc-12",
|
||||||
"inherits": "test-base",
|
"inherits": "test-base",
|
||||||
"configurePreset": "linux-gcc-12"
|
"configurePreset": "linux-gcc-12"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "macos-arm64-release",
|
"name": "macos-arm64",
|
||||||
"inherits": "test-base",
|
"inherits": "test-base",
|
||||||
"configurePreset": "macos-arm64"
|
"configurePreset": "macos-arm64"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "macos-x64-release",
|
"name": "macos-arm64-san",
|
||||||
|
"inherits": "test-base",
|
||||||
|
"configurePreset": "macos-arm64-san"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "macos-arm64-san-no-exceptions",
|
||||||
|
"inherits": "test-base",
|
||||||
|
"configurePreset": "macos-arm64-san-no-exceptions"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "macos-arm64-san-no-rtti",
|
||||||
|
"inherits": "test-base",
|
||||||
|
"configurePreset": "macos-arm64-san-no-rtti"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "macos-x64",
|
||||||
"inherits": "test-base",
|
"inherits": "test-base",
|
||||||
"configurePreset": "macos-x64"
|
"configurePreset": "macos-x64"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "windows-x86-msvc2019-release",
|
"name": "macos-x64-san",
|
||||||
|
"inherits": "test-base",
|
||||||
|
"configurePreset": "macos-x64-san"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "macos-x64-san-no-exceptions",
|
||||||
|
"inherits": "test-base",
|
||||||
|
"configurePreset": "macos-x64-san-no-exceptions"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "macos-x64-san-no-rtti",
|
||||||
|
"inherits": "test-base",
|
||||||
|
"configurePreset": "macos-x64-san-no-rtti"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "windows-x86-msvc2019",
|
||||||
"inherits": "test-base",
|
"inherits": "test-base",
|
||||||
"configurePreset": "windows-x86-msvc2019"
|
"configurePreset": "windows-x86-msvc2019"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "windows-x64-msvc2019-release",
|
"name": "windows-x64-msvc2019",
|
||||||
"inherits": "test-base",
|
"inherits": "test-base",
|
||||||
"configurePreset": "windows-x64-msvc2019"
|
"configurePreset": "windows-x64-msvc2019"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "windows-x86-msvc2022-release",
|
"name": "windows-x86-msvc2022",
|
||||||
"inherits": "test-base",
|
"inherits": "test-base",
|
||||||
"configurePreset": "windows-x86-msvc2022"
|
"configurePreset": "windows-x86-msvc2022"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "windows-x64-msvc2022-release",
|
"name": "windows-x64-msvc2022",
|
||||||
"inherits": "test-base",
|
"inherits": "test-base",
|
||||||
"configurePreset": "windows-x64-msvc2022"
|
"configurePreset": "windows-x64-msvc2022"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user