Skip to content

Commit e0db051

Browse files
committed
add slick-net overlay-ports
1 parent 6009c8f commit e0db051

2 files changed

Lines changed: 47 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,34 +42,25 @@ jobs:
4242
shell: pwsh
4343
run: .\vcpkg\bootstrap-vcpkg.bat -disableMetrics
4444

45-
# slick-net does not support arm64; force x64 on Apple Silicon runners.
46-
- name: Force x64 triplet (macOS)
47-
if: runner.os == 'macOS'
48-
run: echo "VCPKG_DEFAULT_TRIPLET=x64-osx" >> $GITHUB_ENV
49-
5045
- name: Cache vcpkg packages
5146
uses: actions/cache@v4
5247
with:
5348
path: |
5449
${{ github.workspace }}/vcpkg/installed
5550
${{ github.workspace }}/vcpkg-binary-cache
56-
key: vcpkg-${{ runner.os }}-${{ hashFiles('CMakeLists.txt') }}
51+
key: vcpkg-${{ runner.os }}-${{ hashFiles('CMakeLists.txt', 'overlay-ports/**') }}
5752
restore-keys: vcpkg-${{ runner.os }}-
5853

5954
- name: Install dependencies
6055
run: |
61-
"$VCPKG_ROOT/vcpkg" install nlohmann-json openssl gtest slick-net
56+
"$VCPKG_ROOT/vcpkg" install nlohmann-json openssl gtest slick-net \
57+
--overlay-ports=${{ github.workspace }}/overlay-ports
6258
6359
- name: Configure
6460
run: |
65-
EXTRA_ARGS=""
66-
if [[ "$RUNNER_OS" == "macOS" ]]; then
67-
EXTRA_ARGS="-DCMAKE_OSX_ARCHITECTURES=x86_64"
68-
fi
6961
cmake -S . -B build \
7062
-DCMAKE_TOOLCHAIN_FILE="$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" \
71-
-DCMAKE_BUILD_TYPE=Release \
72-
$EXTRA_ARGS
63+
-DCMAKE_BUILD_TYPE=Release
7364
7465
- name: Build
7566
run: cmake --build build --config Release --parallel

overlay-ports/slick-net/vcpkg.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
3+
"name": "slick-net",
4+
"version": "2.0.3",
5+
"description": "A modern C++20 networking library providing HTTP/HTTPS client, WebSocket/WebSocket Secure client, and HTTP streaming support built on Boost.Beast and Boost.Asio",
6+
"homepage": "https://github.com/SlickQuant/slick-net",
7+
"license": "MIT",
8+
"supports": "!uwp",
9+
"dependencies": [
10+
{
11+
"name": "boost-asio",
12+
"version>=": "1.83.0"
13+
},
14+
{
15+
"name": "boost-beast",
16+
"version>=": "1.83.0"
17+
},
18+
{
19+
"name": "boost-context",
20+
"version>=": "1.83.0"
21+
},
22+
{
23+
"name": "boost-system",
24+
"version>=": "1.83.0"
25+
},
26+
{
27+
"name": "openssl",
28+
"version>=": "3.0.2"
29+
},
30+
{
31+
"name": "slick-queue",
32+
"version>=": "1.4.1"
33+
},
34+
{
35+
"name": "vcpkg-cmake",
36+
"host": true
37+
},
38+
{
39+
"name": "vcpkg-cmake-config",
40+
"host": true
41+
}
42+
]
43+
}

0 commit comments

Comments
 (0)