Skip to content

Commit

Permalink
refactor nix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyMlashkin committed Jul 25, 2024
1 parent cfd44a0 commit 4156ea7
Show file tree
Hide file tree
Showing 8 changed files with 246 additions and 204 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ jobs:
run: |
nix build -L .?submodules=1#checks.x86_64-linux.default
results_dir="./results"
mkdir -p "$results_dir"
ls -la result/
mkdir -p "$results_dir/all-checks"
cp -r ./result/* "$results_dir/all-checks"
rm -rf result
- name: Publish Test Results
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "cmake/modules"]
path = cmake/modules
url = https://github.com/BoostCMake/cmake_modules.git
11 changes: 1 addition & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
cmake_minimum_required(VERSION 3.21.4)

list(APPEND CMAKE_MODULE_PATH
"${CMAKE_CURRENT_LIST_DIR}/cmake/modules/share/modules/cmake"
)

project(crypto3_blueprint VERSION 0.1.0 LANGUAGES C CXX)

option(CMAKE_ENABLE_TESTS "Enable tests" FALSE) # used by CMTest module
option(BUILD_EXAMPLES "Build examples" FALSE)

find_package(CM)
find_package(crypto3 REQUIRED)
find_package(Boost REQUIRED COMPONENTS container random filesystem log log_setup program_options thread system)

Expand Down Expand Up @@ -48,12 +45,6 @@ include(CMakePackageConfigHelpers)
set(CONFIG_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/crypto3_blueprint)
set(PACKAGE_CONFIG_NAME crypto3_blueprint-config)

configure_package_config_file(
cmake/Config.cmake.in
${PACKAGE_CONFIG_NAME}.cmake
INSTALL_DESTINATION ${CONFIG_DIR}
)

write_basic_config_version_file(
${PACKAGE_CONFIG_NAME}-version.cmake
VERSION ${crypto3_blueprint_VERSION}
Expand Down
1 change: 0 additions & 1 deletion cmake/modules
Submodule modules deleted from 576397
88 changes: 70 additions & 18 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4156ea7

Please sign in to comment.