mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-14 11:40:35 +07:00
fix CI scripts
This commit is contained in:
14
.github/workflows/darwin.yml
vendored
14
.github/workflows/darwin.yml
vendored
@@ -11,19 +11,21 @@ jobs:
|
|||||||
config:
|
config:
|
||||||
# https://github.com/actions/virtual-environments/tree/main/images/macos
|
# https://github.com/actions/virtual-environments/tree/main/images/macos
|
||||||
- { os: "macos-11", xcode: "13.0", arch: "x64" }
|
- { os: "macos-11", xcode: "13.0", arch: "x64" }
|
||||||
- { os: "macos-11", xcode: "13.1", arch: "x64" }
|
- { os: "macos-12", xcode: "14.0", arch: "x64" }
|
||||||
- { os: "macos-11", xcode: "13.2", arch: "x64" }
|
|
||||||
name: "xcode-${{matrix.config.xcode}}"
|
name: "xcode-${{matrix.config.xcode}}"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Setup
|
||||||
|
run: brew install cmake ninja
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Install ninja by Homebrew
|
|
||||||
run: brew install ninja
|
|
||||||
- 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 && Test
|
- 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
|
||||||
|
run: |
|
||||||
ctest --preset macos-${{matrix.config.arch}}-release
|
ctest --preset macos-${{matrix.config.arch}}-release
|
||||||
7
.github/workflows/linux.yml
vendored
7
.github/workflows/linux.yml
vendored
@@ -15,14 +15,15 @@ jobs:
|
|||||||
name: "${{matrix.config.cxx}}"
|
name: "${{matrix.config.cxx}}"
|
||||||
steps:
|
steps:
|
||||||
- name: Setup
|
- name: Setup
|
||||||
run: sudo apt-get -y install "${{matrix.config.cc}}" "${{matrix.config.cxx}}"
|
run: sudo apt-get -y install cmake ninja-build ${{matrix.config.cc}} ${{matrix.config.cxx}}
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Build && Test
|
- name: Build
|
||||||
env: { CC: "${{matrix.config.cc}}", CXX: "${{matrix.config.cxx}}" }
|
|
||||||
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
|
||||||
|
run: |
|
||||||
ctest --preset linux-${{matrix.config.cc}}-release
|
ctest --preset linux-${{matrix.config.cc}}-release
|
||||||
|
|||||||
11
.github/workflows/windows.yml
vendored
11
.github/workflows/windows.yml
vendored
@@ -16,11 +16,18 @@ jobs:
|
|||||||
- { 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:
|
||||||
- uses: actions/checkout@v2
|
- name: Setup
|
||||||
|
run: choco install cmake ninja
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Build && Test
|
- name: Select MSVC
|
||||||
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
- 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
|
||||||
|
run: |
|
||||||
ctest --preset windows-${{matrix.config.arch}}-${{matrix.config.vc}}-release
|
ctest --preset windows-${{matrix.config.arch}}-${{matrix.config.vc}}-release
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ project(meta.hpp.singles)
|
|||||||
# generate
|
# generate
|
||||||
#
|
#
|
||||||
|
|
||||||
find_package(PythonInterp REQUIRED)
|
find_package(Python3 REQUIRED COMPONENTS Interpreter)
|
||||||
|
|
||||||
set(META_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/..")
|
set(META_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/..")
|
||||||
set(META_SINGLES_INPUT "${META_ROOT_DIR}/headers/meta.hpp/meta_all.hpp")
|
set(META_SINGLES_INPUT "${META_ROOT_DIR}/headers/meta.hpp/meta_all.hpp")
|
||||||
@@ -12,7 +12,7 @@ set(META_SINGLES_OUTPUT "${META_ROOT_DIR}/singles/headers/meta.hpp/meta_all.hpp"
|
|||||||
file(GLOB_RECURSE META_SINGLES_DEPENDS "${META_ROOT_DIR}/headers/*.hpp")
|
file(GLOB_RECURSE META_SINGLES_DEPENDS "${META_ROOT_DIR}/headers/*.hpp")
|
||||||
|
|
||||||
add_custom_command(OUTPUT "${META_SINGLES_OUTPUT}"
|
add_custom_command(OUTPUT "${META_SINGLES_OUTPUT}"
|
||||||
COMMAND "${PYTHON_EXECUTABLE}" ".ci/build_singles.py" "${META_SINGLES_INPUT}" "${META_SINGLES_OUTPUT}"
|
COMMAND "${Python3_EXECUTABLE}" ".ci/build_singles.py" "${META_SINGLES_INPUT}" "${META_SINGLES_OUTPUT}"
|
||||||
DEPENDS ${META_SINGLES_DEPENDS}
|
DEPENDS ${META_SINGLES_DEPENDS}
|
||||||
WORKING_DIRECTORY "${META_ROOT_DIR}")
|
WORKING_DIRECTORY "${META_ROOT_DIR}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user