Skip to content

Commit

Permalink
update ci and cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Neargye committed Jun 21, 2021
1 parent d69f91d commit 12bb8c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
fail-fast: false
matrix:
config:
- { os: macos-10.15 } # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md#xcode
- { os: macos-11.0 } # https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11.0-Readme.md#xcode
- { os: macos-10.15 }
- { os: macos-11.0 }
build: [Debug, Release]

name: "${{matrix.config.os}}:${{matrix.build}}"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ jobs:
compiler:
- { cc: "gcc-9", cxx: "g++-9" }
- { cc: "gcc-10", cxx: "g++-10" }
- { cc: "clang-9", cxx: "clang++-9" }
- { cc: "clang-10", cxx: "clang++-10" }
- { cc: "clang-11", cxx: "clang++-11" }
- { cc: "clang-12", cxx: "clang++-12" }

name: "${{matrix.compiler.cxx}}:${{matrix.build}}"
steps:
Expand Down
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.14)

project(nameof VERSION "0.10.0" LANGUAGES CXX)

Expand Down Expand Up @@ -32,7 +32,8 @@ target_include_directories(${PROJECT_NAME}

write_basic_package_version_file(${PROJECT_NAME}ConfigVersion.cmake
VERSION ${PROJECT_VERSION}
COMPATIBILITY AnyNewerVersion)
COMPATIBILITY AnyNewerVersion
ARCH_INDEPENDENT)

if(NAMEOF_OPT_INSTALL)
install(TARGETS ${PROJECT_NAME}
Expand Down

0 comments on commit 12bb8c0

Please sign in to comment.