Skip to content

Commit 0d43101

Browse files
committed
install crow in CI
1 parent 8cd2337 commit 0d43101

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/build_linux.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ jobs:
4545
chmod +x ~/.local/bin/butler
4646
butler -V
4747
48+
- name: Install dependencies
49+
run: |
50+
gh release download --pattern 'Crow*.deb' -R CrowCpp/Crow -O Crow.deb
51+
sudo dpkg -i Crow.deb
52+
rm Crow.deb
53+
4854
- name: Build dist
4955
id: build-dist
5056
env:

.github/workflows/build_windows.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
build_win:
1010
runs-on: windows-latest
11+
env:
12+
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
1113
steps:
1214
# checkout the github actions / workflow
1315
- name: Checkout actions
@@ -87,10 +89,17 @@ jobs:
8789
working-directory: "${{ github.workspace }}/src"
8890
run: '.\createallprojects.bat'
8991

92+
- name: Install dependencies
93+
uses: lukka/run-vcpkg@v11
94+
with:
95+
runVcpkgInstall : true
96+
9097
- name: Build solution
9198
shell: cmd
9299
working-directory: "${{ github.workspace }}/src"
93-
run: msbuild everything.sln /p:Platform="win64" /p:Configuration="Release"
100+
run: |
101+
vcpkg integrate install
102+
msbuild everything.sln /p:Platform="win64" /p:Configuration="Release"
94103
95104
- name: Copy dist
96105
id: copy-dist

vcpkg.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
3+
"name": "team-comtress-2",
4+
"version-string": "1.0.0",
5+
"description": " A TF2 mod with fresh new development ",
6+
"homepage": "https://github.com/mastercomfig/tc2",
7+
"dependencies": [ "crow"]
8+
}

0 commit comments

Comments
 (0)