Skip to content

Commit

Permalink
Debugged the .ci.cmake script for prebuilt binaries on my own compute…
Browse files Browse the repository at this point in the history
…r, this time ought to surely work, I hope.
  • Loading branch information
ned14 committed Nov 26, 2020
1 parent cec7539 commit 27f1786
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 74 deletions.
64 changes: 36 additions & 28 deletions .ci.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ include(FindGit)
set(CTEST_GIT_COMMAND "${GIT_EXECUTABLE}")

ctest_start("Experimental")
ctest_update()
#ctest_update()
message(STATUS "NOTE: CTEST_CONFIGURE_OPTIONS are '${CTEST_CONFIGURE_OPTIONS}'")
ctest_configure(OPTIONS "${CTEST_CONFIGURE_OPTIONS}")
ctest_build(TARGET _hl)
Expand All @@ -35,12 +35,18 @@ if(NOT CTEST_DISABLE_TESTING)
endif()
if(WIN32)
if(EXISTS "prebuilt/bin/Release/llfio_dl-2.0-Windows-AMD64-Release.dll")
file(DOWNLOAD "https://github.com/ned14/outcome/tarball/better_optimisation" "${CMAKE_CURRENT_LIST_DIR}/outcome.tgz")
file(DOWNLOAD "https://github.com/ned14/quickcpplib/tarball/master" "${CMAKE_CURRENT_LIST_DIR}/quickcpplib.tgz")
checked_execute_process("Tarring up binaries 0"
COMMAND "${CMAKE_COMMAND}" -E tar xfz "outcome.tgz"
COMMAND "${CMAKE_COMMAND}" -E tar xfz "quickcpplib.tgz"
)
checked_execute_process("Tarring up binaries 1"
COMMAND "${CMAKE_COMMAND}" -E make_directory llfio/prebuilt/bin/Release
COMMAND "${CMAKE_COMMAND}" -E make_directory llfio/prebuilt/lib/Release
COMMAND "${CMAKE_COMMAND}" -E copy_directory doc llfio/
COMMAND "${CMAKE_COMMAND}" -E copy_directory example llfio/
COMMAND "${CMAKE_COMMAND}" -E copy_directory include llfio/
COMMAND "${CMAKE_COMMAND}" -E copy_directory doc llfio/doc/
COMMAND "${CMAKE_COMMAND}" -E copy_directory example llfio/example/
COMMAND "${CMAKE_COMMAND}" -E copy_directory include llfio/include/
)
checked_execute_process("Tarring up binaries 2"
COMMAND "${CMAKE_COMMAND}" -E copy Build.md llfio/
Expand Down Expand Up @@ -69,13 +75,9 @@ if(WIN32)
COMMAND "${CMAKE_COMMAND}" -E copy prebuilt/bin/Release/ntkernel-error-category_dl-1.0-Windows-AMD64-Release.dll llfio/prebuilt/bin/Release/
)
endif()
file(DOWNLOAD "https://github.com/ned14/outcome/tarball/better_optimisation" "outcome.tgz")
file(DOWNLOAD "https://github.com/ned14/quickcpplib/tarball/master" "quickcpplib.tgz")
checked_execute_process("Tarring up binaries 9"
COMMAND "${CMAKE_COMMAND}" -E tar xfz "outcome.tgz" "llfio/include/"
COMMAND "${CMAKE_COMMAND}" -E tar xfz "quickcpplib.tgz" "llfio/include/"
COMMAND bash -c "mv llfio/include/ned14-outcome* llfio/include/outcome"
COMMAND bash -c "mv llfio/include/ned14-quickcpplib* llfio/include/quickcpplib"
COMMAND bash -c "mv ned14-outcome* llfio/include/outcome"
COMMAND bash -c "mv ned14-quickcpplib* llfio/include/quickcpplib"
)
checked_execute_process("Tarring up binaries final"
COMMAND "${CMAKE_COMMAND}" -E tar cfv llfio-v2.0-binaries-win64.zip --format=zip llfio/
Expand All @@ -84,6 +86,12 @@ if(WIN32)
endif()
else()
if(EXISTS "prebuilt/lib/libllfio_dl-2.0-Linux-x86_64-Release.so")
file(DOWNLOAD "https://github.com/ned14/outcome/tarball/better_optimisation" "${CMAKE_CURRENT_LIST_DIR}/outcome.tgz")
file(DOWNLOAD "https://github.com/ned14/quickcpplib/tarball/master" "${CMAKE_CURRENT_LIST_DIR}/quickcpplib.tgz")
checked_execute_process("Tarring up binaries 0"
COMMAND "${CMAKE_COMMAND}" -E tar xfz "outcome.tgz"
COMMAND "${CMAKE_COMMAND}" -E tar xfz "quickcpplib.tgz"
)
checked_execute_process("Tarring up binaries 1"
COMMAND mkdir llfio
COMMAND cp -a doc llfio/
Expand All @@ -97,20 +105,22 @@ else()
COMMAND cp -a --parents prebuilt/lib/libllfio_sl-2.0-Linux-x86_64-Release.a llfio/
COMMAND cp -a --parents prebuilt/lib/libllfio_dl-2.0-Linux-x86_64-Release.so llfio/
)
file(DOWNLOAD "https://github.com/ned14/outcome/tarball/better_optimisation" "outcome.tgz")
file(DOWNLOAD "https://github.com/ned14/quickcpplib/tarball/master" "quickcpplib.tgz")
checked_execute_process("Tarring up binaries 2"
COMMAND "${CMAKE_COMMAND}" -E tar xfz "outcome.tgz" "llfio/include/"
COMMAND "${CMAKE_COMMAND}" -E tar xfz "quickcpplib.tgz" "llfio/include/"
COMMAND bash -c "mv llfio/include/ned14-outcome* llfio/include/outcome"
COMMAND bash -c "mv llfio/include/ned14-quickcpplib* llfio/include/quickcpplib"
COMMAND bash -c "mv ned14-outcome* llfio/include/outcome"
COMMAND bash -c "mv ned14-quickcpplib* llfio/include/quickcpplib"
)
checked_execute_process("Tarring up binaries 3"
COMMAND "${CMAKE_COMMAND}" -E tar cfz llfio-v2.0-binaries-linux-x64.tgz llfio
)
get_filename_component(toupload llfio-v2.0-binaries-linux-x64.tgz ABSOLUTE)
endif()
if(EXISTS "prebuilt/lib/libllfio_dl-2.0-Linux-armhf-Release.so")
file(DOWNLOAD "https://github.com/ned14/outcome/tarball/better_optimisation" "${CMAKE_CURRENT_LIST_DIR}/outcome.tgz")
file(DOWNLOAD "https://github.com/ned14/quickcpplib/tarball/master" "${CMAKE_CURRENT_LIST_DIR}/quickcpplib.tgz")
checked_execute_process("Tarring up binaries 0"
COMMAND "${CMAKE_COMMAND}" -E tar xfz "outcome.tgz"
COMMAND "${CMAKE_COMMAND}" -E tar xfz "quickcpplib.tgz"
)
checked_execute_process("Tarring up binaries 1"
COMMAND mkdir llfio
COMMAND cp -a doc llfio/
Expand All @@ -124,20 +134,22 @@ else()
COMMAND cp -a --parents prebuilt/lib/libllfio_sl-2.0-Linux-armhf-Release.a llfio/
COMMAND cp -a --parents prebuilt/lib/libllfio_dl-2.0-Linux-armhf-Release.so llfio/
)
file(DOWNLOAD "https://github.com/ned14/outcome/tarball/better_optimisation" "outcome.tgz")
file(DOWNLOAD "https://github.com/ned14/quickcpplib/tarball/master" "quickcpplib.tgz")
checked_execute_process("Tarring up binaries 2"
COMMAND "${CMAKE_COMMAND}" -E tar xfz "outcome.tgz" "llfio/include/"
COMMAND "${CMAKE_COMMAND}" -E tar xfz "quickcpplib.tgz" "llfio/include/"
COMMAND bash -c "mv llfio/include/ned14-outcome* llfio/include/outcome"
COMMAND bash -c "mv llfio/include/ned14-quickcpplib* llfio/include/quickcpplib"
COMMAND bash -c "mv ned14-outcome* llfio/include/outcome"
COMMAND bash -c "mv ned14-quickcpplib* llfio/include/quickcpplib"
)
checked_execute_process("Tarring up binaries 3"
COMMAND "${CMAKE_COMMAND}" -E tar cfz llfio-v2.0-binaries-linux-armhf.tgz llfio
)
get_filename_component(toupload llfio-v2.0-binaries-linux-armhf.tgz ABSOLUTE)
endif()
if(EXISTS "prebuilt/lib/libllfio_dl-2.0-Darwin-x86_64-Release.dylib")
file(DOWNLOAD "https://github.com/ned14/outcome/tarball/better_optimisation" "${CMAKE_CURRENT_LIST_DIR}/outcome.tgz")
file(DOWNLOAD "https://github.com/ned14/quickcpplib/tarball/master" "${CMAKE_CURRENT_LIST_DIR}/quickcpplib.tgz")
checked_execute_process("Tarring up binaries 0"
COMMAND "${CMAKE_COMMAND}" -E tar xfz "outcome.tgz"
COMMAND "${CMAKE_COMMAND}" -E tar xfz "quickcpplib.tgz"
)
checked_execute_process("Tarring up binaries 1"
COMMAND mkdir llfio
COMMAND cp -a doc llfio/
Expand All @@ -152,13 +164,9 @@ else()
COMMAND cp -a prebuilt/lib/libllfio_sl-2.0-Darwin-x86_64-Release.a llfio/prebuilt/lib/
COMMAND cp -a prebuilt/lib/libllfio_dl-2.0-Darwin-x86_64-Release.dylib llfio/prebuilt/lib/
)
file(DOWNLOAD "https://github.com/ned14/outcome/tarball/better_optimisation" "outcome.tgz")
file(DOWNLOAD "https://github.com/ned14/quickcpplib/tarball/master" "quickcpplib.tgz")
checked_execute_process("Tarring up binaries 2"
COMMAND "${CMAKE_COMMAND}" -E tar xfz "outcome.tgz" "llfio/include/"
COMMAND "${CMAKE_COMMAND}" -E tar xfz "quickcpplib.tgz" "llfio/include/"
COMMAND bash -c "mv llfio/include/ned14-outcome* llfio/include/outcome"
COMMAND bash -c "mv llfio/include/ned14-quickcpplib* llfio/include/quickcpplib"
COMMAND bash -c "mv ned14-outcome* llfio/include/outcome"
COMMAND bash -c "mv ned14-quickcpplib* llfio/include/quickcpplib"
)
checked_execute_process("Tarring up binaries 3"
COMMAND "${CMAKE_COMMAND}" -E tar cfz llfio-v2.0-binaries-darwin-x64.tgz llfio
Expand Down
43 changes: 0 additions & 43 deletions example/single-header.cpp.disabled

This file was deleted.

6 changes: 3 additions & 3 deletions include/llfio/revision.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Note the second line of this file must ALWAYS be the git SHA, third line ALWAYS the git SHA update time
#define LLFIO_PREVIOUS_COMMIT_REF 6c384945a87cc4f20ce6012e74f94936c7356201
#define LLFIO_PREVIOUS_COMMIT_DATE "2020-11-24 14:00:49 +00:00"
#define LLFIO_PREVIOUS_COMMIT_UNIQUE 6c384945
#define LLFIO_PREVIOUS_COMMIT_REF cec7539cc88eee83d5d5059de730f8a9ea86d355
#define LLFIO_PREVIOUS_COMMIT_DATE "2020-11-25 17:35:45 +00:00"
#define LLFIO_PREVIOUS_COMMIT_UNIQUE cec7539c

0 comments on commit 27f1786

Please sign in to comment.