Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor nix flake #420

Merged
merged 6 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,3 @@ jobs:
max-jobs = 4
run: |
nix build -L .?submodules=1#checks.x86_64-linux.default
results_dir="./results"
mkdir -p "$results_dir"
cp -r ./result/* "$results_dir/all-checks"
rm -rf result
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/linux@v2
with:
check_name: "Linux Test Results"
files: "results/**/*.xml"
comment_mode: ${{ github.event.pull_request.head.repo.fork && 'off' || 'always' }} # Don't create PR comment from fork runs
action_fail_on_inconclusive: true # fail, if no reports
action_fail: true
- name: 'Upload Artifacts'
uses: actions/upload-artifact@v4
with:
name: junit-test-results
path: "results/**/*.xml"
retention-days: 5
if-no-files-found: error
overwrite: true
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