-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding in attempt to create windows release
- Loading branch information
Showing
4 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # Adjust branch name as needed | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest # Choose the appropriate OS for your project | ||
|
||
steps: | ||
- uses: actions/checkout@v2 # Check out your repository | ||
|
||
- name: Set up CMake | ||
uses: cmake-actions/setup-cmake@v1 | ||
with: | ||
cmake-version: '3.21' # Adjust version as needed | ||
|
||
- name: Build and Package | ||
run: | | ||
cd third-party | ||
mkdir build | ||
cd build | ||
cmake .. | ||
cmake --build . --target package # Generate installer | ||
# Add commands to upload the installer artifact (e.g., using GitHub Actions' upload-artifact) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
# git clone --recurse-submodules https://github.com/xR3b0rn/dbcppp.git | ||
cd dbcppp | ||
# mkdir build | ||
cd build | ||
|
||
cmake -DCMAKE_BUILD_TYPE=Release .. | ||
make -j | ||
make RunTests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
include(ExternalProject) | ||
|
||
# Set up an external project to pull source code from Git along with submodules | ||
ExternalProject_Add( | ||
dbcppp# Name for this external project | ||
PREFIX ${CMAKE_BINARY_DIR}/external/dbcppp # Directory where the source will be downloaded | ||
GIT_REPOSITORY https://github.com/xR3b0rn/dbcppp.git # Replace with your Git repository URL | ||
GIT_TAG v3.2.6 # Replace with the branch or tag you want to use | ||
TIMEOUT 10 # Adjust as needed | ||
CONFIGURE_COMMAND "" # No configuration needed | ||
BUILD_COMMAND "" # No build commands needed | ||
INSTALL_COMMAND "" # No installation needed | ||
LOG_DOWNLOAD ON # Enable logging for download details | ||
GIT_SUBMODULES_INIT ON # Fetch submodules | ||
) | ||
|
||
# Use the downloaded project as part of your build | ||
ExternalProject_Get_Property(dbcppp source_dir) | ||
add_subdirectory(${source_dir} ${CMAKE_BINARY_DIR}/external/dbcppp-build) | ||
|
||
# Enable CPack module | ||
include(CPack) | ||
|
||
# Set the basic CPack settings | ||
set(CPACK_GENERATOR "NSIS") # Use NSIS installer (you can use other generators as needed) | ||
set(CPACK_PACKAGE_NAME "dbcppp") | ||
set(CPACK_PACKAGE_VERSION "3.2.6") | ||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}") | ||
|
||
# Specify files to be installed (your executable and any other necessary files) | ||
install(TARGETS dbcppp DESTINATION bin) # Replace YourExecutable with your actual target name | ||
|
||
# Other installation instructions for additional files, if any | ||
|