-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
159 additions
and
106 deletions.
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
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 |
---|---|---|
|
@@ -5,47 +5,60 @@ on: [push] | |
env: | ||
# Path to the solution file relative to the root of the project. | ||
SOLUTION_FILE_PATH: . | ||
VSCP_PATH: '${{ github.workspace }}/vscp' | ||
ENVIRONMENT_SCRIPT: "C:/Program Files (x86)/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat" | ||
GENERATORS: "Visual Studio 17 2022" | ||
BUILD_CONFIGURATION: Release | ||
|
||
# Configuration type to build. | ||
# You can convert this to a build matrix if you need coverage of multiple configuration types. | ||
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
# | ||
# https://github.com/marketplace/actions/run-vcpkg | ||
# https://github.com/ilammy/msvc-dev-cmd | ||
|
||
BUILD_CONFIGURATION: Release | ||
# https://github.com/ilammy/msvc-dev-cmd | ||
|
||
jobs: | ||
build: | ||
name: Windows x64 | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
|
||
- name: Install ms-dev environment | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
with: | ||
arch: x64 | ||
|
||
- name: Clone | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: development | ||
submodules: recursive | ||
|
||
- name: Checkout vscp repo | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: grodansparadis/vscp | ||
path: vscp | ||
ref: development | ||
submodules: recursive | ||
|
||
- name: Get latest CMake and ninja | ||
# Using 'latest' branch, the most recent CMake and ninja are installed. | ||
uses: lukka/get-cmake@latest | ||
|
||
- name: Add MSBuild to PATH | ||
uses: microsoft/[email protected] | ||
|
||
- name: Checkout vcpkg repo | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: microsoft/vcpkg | ||
path: vcpkg | ||
|
||
- name: Add MSBuild to PATH | ||
uses: microsoft/[email protected] | ||
with: | ||
msbuild-architecture: x64 | ||
|
||
- name: Setup vcpkg | ||
run: | | ||
cd vcpkg | ||
|
@@ -65,9 +78,10 @@ jobs: | |
- name: Build | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake .. -G "Visual Studio 16 2019" -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=D:/a/vscp-helper-lib/vscp-helper-lib/vcpkg/scripts/buildsystems/vcpkg.cmake -DVSCP_PATH=vscp | ||
msbuild libvscphelper.sln /p:Configuration=Release | ||
cd build | ||
cmake .. -G "${{ env.GENERATORS }}" -A x64 -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_BUILD_TYPE=${{ env.BUILD_CONFIGURATION }} -DCMAKE_TOOLCHAIN_FILE=D:/a/vscp-helper-lib/vscp-helper-lib/vcpkg/scripts/buildsystems/vcpkg.cmake -DVSCP_PATH=vscp | ||
cmake --build . --config ${{ env.BUILD_CONFIGURATION }} | ||
#msbuild libvscphelper.sln /p:Configuration=Release | ||
cpack . | ||
# Save artifacts | ||
|
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,12 @@ | ||
[submodule "third_party/mustache"] | ||
path = third_party/mustache | ||
url = https://github.com/kainjow/Mustache.git | ||
[submodule "third_party/spdlog"] | ||
path = third_party/spdlog | ||
url = https://github.com/gabime/spdlog.git | ||
[submodule "third_party/nlohmann"] | ||
path = third_party/nlohmann | ||
url = https://github.com/nlohmann/json.git | ||
[submodule "third_party/mongoose"] | ||
path = third_party/mongoose | ||
url = https://github.com/cesanta/mongoose.git |
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
Oops, something went wrong.