Plugins: Add Ftp server #11
This file contains hidden or 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
| # Author: Kang Lin<kl222@126.com> | |
| name: vcpkg | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| vcpkg: | |
| strategy: | |
| matrix: | |
| os: [windows-2022] | |
| env: | |
| VCPKGGITCOMMITID: de46587b4beaa638743916fe5674825cecfb48b3 | |
| RabbitRemoteControl_VERSION: v0.0.36 | |
| BUILD_DIR: ${{github.workspace}}\build | |
| SOURCE_DIR: ${{github.workspace}}\.cache\source | |
| TOOLS_DIR: ${{github.workspace}}\.cache\tools | |
| INSTALL_DIR: ${{github.workspace}}\.cache\install | |
| VCPKG_MANIFEST_FEATURES: "freerdp;vnc;terminal;filetransfer;qt" | |
| runs-on: ${{matrix.os}} | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: true | |
| fetch-depth: 0 | |
| - name: Make directories | |
| run: | | |
| cmake -E make_directory ${{env.BUILD_DIR}} | |
| cmake -E make_directory ${{env.SOURCE_DIR}} | |
| cmake -E make_directory ${{env.TOOLS_DIR}} | |
| cmake -E make_directory ${{env.INSTALL_DIR}} | |
| - name: run-vcpkg | |
| uses: lukka/run-vcpkg@v11 | |
| with: | |
| vcpkgGitCommitId: ${{env.VCPKGGITCOMMITID}} | |
| vcpkgDirectory: ${{env.SOURCE_DIR}}/vcpkg | |
| - name: RabbitCommon | |
| working-directory: ${{env.SOURCE_DIR}} | |
| run: git clone https://github.com/KangLin/RabbitCommon.git | |
| - name: Build RabbitRemoteControl | |
| working-directory: ${{env.BUILD_DIR}} | |
| env: | |
| RabbitCommon_ROOT: ${{env.SOURCE_DIR}}/RabbitCommon | |
| run: | | |
| cmake ${{github.workspace}} ^ | |
| -A ${{matrix.CMAKE_GENERATOR_PLATFORM}} ^ | |
| -T ${{matrix.VCPKG_PLATFORM_TOOLSET}} ^ | |
| -DCMARK_SHARED=OFF ^ | |
| -DCMARK_TESTS=OFF ^ | |
| -DCMARK_STATIC=ON ^ | |
| -DWITH_CMARK=OFF ^ | |
| -DWITH_CMARK_GFM=ON ^ | |
| -DWITH_WebEngineWidgets=ON ^ | |
| -DRABBIT_ENABLE_INSTALL_DEPENDENT=ON ^ | |
| -DRABBIT_ENABLE_INSTALL_QT=ON ^ | |
| -DRABBIT_ENABLE_INSTALL_TO_BUILD_PATH=ON ^ | |
| -DCMAKE_BUILD_TYPE=Release ^ | |
| -DCMAKE_INSTALL_PREFIX=${{env.BUILD_DIR}}/install ^ | |
| -DCMAKE_PREFIX_PATH=${{env.INSTALL_DIR}} ^ | |
| -DCMAKE_TOOLCHAIN_FILE=${{env.VCPKG_ROOT}}/scripts/buildsystems/vcpkg.cmake ^ | |
| -DVCPKG_VERBOSE=ON ^ | |
| -DVCPKG_TARGET_TRIPLET=${{matrix.VCPKG_TARGET_TRIPLET}} ^ | |
| -DX_VCPKG_APPLOCAL_DEPS_INSTALL=ON ^ | |
| -DVCPKG_APPLOCAL_DEPS=ON ^ | |
| -DVCPKG_TRACE_FIND_PACKAGE=ON ^ | |
| -DBUILD_QUIWidget=OFF ^ | |
| -DBUILD_APP=ON ^ | |
| -DBUILD_FREERDP=ON ^ | |
| -DPCAP_ROOT=${{env.INSTALL_DIR}}/npcap ^ | |
| -DPacket_ROOT=${{env.INSTALL_DIR}}/npcap ^ | |
| -DINSTALL_QTKEYCHAIN=ON | |
| cmake --build . --config Release | |
| IF "Release" == "Release" ( | |
| echo "cmake install config: Release component: Runtime" | |
| cmake --install . --config Release --component Runtime --strip | |
| echo "cmake install config: Release component: Plugin" | |
| cmake --install . --config Release --component Plugin --strip | |
| echo "cmake install config: Release component: DependLibraries" | |
| cmake --install . --config Release --component DependLibraries --strip | |
| echo "cmake install config: Release component: Application" | |
| cmake --install . --config Release --component Application --strip | |
| ) else ( | |
| echo "cmake install config: Release component: Runtime Application Plugin" | |
| cmake --install . --config Release --component Runtime | |
| cmake --install . --config Release --component Plugin | |
| cmake --install . --config Release --component DependLibraries | |
| cmake --install . --config Release --component Application | |
| ) | |