Skip to content

Commit

Permalink
Compile linux manager with vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
talregev committed Jun 18, 2021
1 parent bbd33b3 commit 714068c
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 7 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
type: [libs, client, apps, libs-vcpkg, client-vcpkg, apps-vcpkg, server, manager-with-webview, manager-without-webview, unit-test, integration-test]
type: [libs, client, apps, libs-vcpkg, client-vcpkg, apps-vcpkg, manager-with-webview-vcpkg, server, manager-with-webview, manager-without-webview, unit-test, integration-test]
fail-fast: false
steps:
- uses: actions/checkout@v2
Expand All @@ -24,7 +24,7 @@ jobs:
run: |
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu bionic main universe'
sudo apt-get -qq update
sudo apt-get install -y freeglut3-dev libcurl4-openssl-dev libxmu-dev libxi-dev libfcgi-dev libxss-dev libnotify-dev libxcb-util0-dev libgtk2.0-dev libwebkitgtk-dev p7zip-full libxxf86vm-dev ocl-icd-opencl-dev zip
sudo apt-get install -y freeglut3-dev libcurl4-openssl-dev libxmu-dev libxi-dev libfcgi-dev libxss-dev libnotify-dev libxcb-util0-dev libgtk2.0-dev libgtk-3-dev libwebkitgtk-dev p7zip-full libxxf86vm-dev ocl-icd-opencl-dev zip
- name: Install dependencies for integration testing
if: matrix.type == 'integration-test'
Expand Down Expand Up @@ -68,6 +68,10 @@ jobs:
if: success() && matrix.type == 'apps-vcpkg'
run: linux/ci_configure_apps.sh

- name: Configure manager with webview and vcpkg
if: success() && matrix.type == 'manager-with-webview-vcpkg'
run: linux/ci_configure_manager.sh

- name: Configure server
if: success() && matrix.type == 'server'
run: ./configure --enable-server --disable-client --disable-manager
Expand Down
3 changes: 3 additions & 0 deletions deploy/prepare_deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ case $TYPE in
linux_apps-vcpkg)
prepare_apps
;;
linux_manager-with-webview-vcpkg)
prepare_manager
;;
linux_manager-with-webview)
prepare_manager
;;
Expand Down
2 changes: 0 additions & 2 deletions linux/ci_configure_apps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ export VCPKG_DIR="$VCPKG_ROOT/installed/x64-linux"

linux/update_vcpkg.sh

chmod +x "$VCPKG_DIR/share/curl/curl-config"
export _libcurl_config="$VCPKG_DIR/share/curl/curl-config"
./configure --enable-vcpkg --with-libcurl=$VCPKG_DIR --with-ssl=$VCPKG_DIR --enable-apps --disable-server --disable-client --disable-manager
2 changes: 0 additions & 2 deletions linux/ci_configure_libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ export VCPKG_DIR="$VCPKG_ROOT/installed/x64-linux"

linux/update_vcpkg.sh

chmod +x "$VCPKG_DIR/share/curl/curl-config"
export _libcurl_config="$VCPKG_DIR/share/curl/curl-config"
./configure --enable-vcpkg --with-libcurl=$VCPKG_DIR --with-ssl=$VCPKG_DIR --disable-server --disable-client --disable-manager
16 changes: 16 additions & 0 deletions linux/ci_configure_manager.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh
set -e

if [ ! -d "linux" ]; then
echo "start this script in the source root directory"
exit 1
fi

CACHE_DIR="$PWD/3rdParty/buildCache/linux"
BUILD_DIR="$PWD/3rdParty/linux"
VCPKG_ROOT="$BUILD_DIR/vcpkg"
export VCPKG_DIR="$VCPKG_ROOT/installed/x64-linux"

linux/update_vcpkg_manager.sh

./configure --enable-vcpkg --disable-server --disable-client --with-wx-config=$VCPKG_DIR/tools/wxwidgets/wx-config
2 changes: 1 addition & 1 deletion linux/update_vcpkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ fi

git -C $VCPKG_ROOT pull
$VCPKG_ROOT/bootstrap-vcpkg.sh
$VCPKG_ROOT/vcpkg install rappture curl[core,openssl] --clean-after-build
$VCPKG_ROOT/vcpkg install rappture curl[core,openssl] opencl --clean-after-build
$VCPKG_ROOT/vcpkg upgrade --no-dry-run
23 changes: 23 additions & 0 deletions linux/update_vcpkg_manager.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh
set -e

if [ ! -d "linux" ]; then
echo "start this script in the source root directory"
exit 1
fi

CACHE_DIR="$PWD/3rdParty/buildCache/linux"
BUILD_DIR="$PWD/3rdParty/linux"
VCPKG_ROOT="$BUILD_DIR/vcpkg"

export XDG_CACHE_HOME=$CACHE_DIR/vcpkgcache

if [ ! -d $VCPKG_ROOT ]; then
mkdir -p $BUILD_DIR
git -C $BUILD_DIR clone https://github.com/JackBoosY/vcpkg -b dev/jack/17072
fi

git -C $VCPKG_ROOT pull
$VCPKG_ROOT/bootstrap-vcpkg.sh
$VCPKG_ROOT/vcpkg install freetype[core,bzip2,png] freeglut ftgl wxwidgets
$VCPKG_ROOT/vcpkg upgrade --no-dry-run

0 comments on commit 714068c

Please sign in to comment.