-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
3 changed files
with
87 additions
and
121 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 |
---|---|---|
|
@@ -37,7 +37,7 @@ jobs: | |
qt_modules: qtwebengine ${{matrix.qt_modules}} | ||
SerialPortAssistant_VERSION: v1.0.9 | ||
artifact_name: build_macos | ||
VCPKGGITCOMMITID: 6359372f3ca1e6072e302e1d7238f31b259c5b51 | ||
VCPKGGITCOMMITID: a1a1cbc975abf909a6c8985a6a2b8fe20bbd9bd6 | ||
|
||
# Map the job outputs to step outputs | ||
outputs: | ||
|
@@ -65,37 +65,33 @@ jobs: | |
key: Cache-macos-installed-qt${{matrix.qt_version}}-${{matrix.BUILD_TYPE}} | ||
|
||
- name: run-vcpkg | ||
uses: lukka/[email protected] | ||
- name: run-vcpkg | ||
uses: lukka/run-vcpkg@v11 | ||
with: | ||
# Indicates whether to only setup vcpkg (i.e. installing it and setting the environment variables VCPKG_ROOT, RUNVCPK_VCPKG_ROOT), without installing any port. | ||
#setupOnly: # optional | ||
#vcpkgGitURL: https://github.com/KangLin/vcpkg.git | ||
vcpkgGitCommitId: ${{env.VCPKGGITCOMMITID}} | ||
vcpkgDirectory: ${{runner.workspace}}/vcpkg/ | ||
# Since the cache must be invalidated when content of the vcpkg.json file changes, let's | ||
# compute its hash and append this to the computed cache's key. | ||
appendedCacheKey: RabbitCommon_cache-vcpkg-msvc-vc${{matrix.VCPKG_PLATFORM_TOOLSET}}-${{matrix.triplet}}-qt${{matrix.qt_version}}-${{matrix.BUILD_TYPE}}-${{env.VCPKGGITCOMMITID}} | ||
#additionalCachedPaths: ${{ env.VCPKG_ROOT }}/installed | ||
vcpkgTriplet: '${{matrix.triplet}}' | ||
vcpkgArguments: 'openssl' | ||
|
||
- name: run vcpkg | ||
run: | | ||
vcpkg install --triplet ${{matrix.triplet}} | ||
- name: Cache Qt | ||
if: false | ||
id: cache-qt | ||
uses: actions/cache@v1 # not v2! | ||
with: | ||
path: ${{env.TOOSL_DIR}}/qt | ||
key: qt${{matrix.qt_version}}_macos | ||
key: qt${{matrix.qt_version}}-${{matrix.qt_arch}}-${{matrix.triplet}} | ||
|
||
- name: Install Qt | ||
# You may pin to the exact commit or the version. | ||
# uses: jurplel/install-qt-action@a962fb91949c8e846a3e4a944d50e7ef5cc3a28a | ||
uses: jurplel/install-qt-action@v3 | ||
with: | ||
# Directory to install Qt | ||
dir: ${{env.TOOSL_DIR}}/qt # optional | ||
# Version of Qt to install | ||
version: ${{matrix.qt_version}} # optional, default is 5.15.2 | ||
modules: ${{env.qt_modules}} # optional, see: https://ddalcino.github.io/aqt-list-server/ | ||
dir: '${{env.TOOSL_DIR}}/qt' # optional | ||
version: '${{matrix.qt_version}}' # optional, default is 5.15.2 | ||
arch: '${{matrix.qt_arch}}' # optional | ||
modules: '${{env.qt_modules}}' # optional. See: https://ddalcino.github.io/aqt-list-server/ | ||
cache: true | ||
cache-key-prefix: install-qt-action | ||
|
||
- name: git clone RabbitCommon | ||
working-directory: ${{env.SOURCE_DIR}} | ||
|
@@ -106,15 +102,17 @@ jobs: | |
working-directory: ${{github.workspace}}/build | ||
env: | ||
RabbitCommon_DIR: ${{env.SOURCE_DIR}}/RabbitCommon | ||
PKG_CONFIG_PATH: ${{env.INSTALL_DIR}}/lib/pkgconfig | ||
run: | | ||
cmake ${{github.workspace}} \ | ||
-DCMARK_SHARED=OFF \ | ||
-DCMARK_TESTS=OFF \ | ||
-DCMARK_STATIC=ON \ | ||
-DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} \ | ||
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/build/install \ | ||
-DCMAKE_PREFIX_PATH=${{env.INSTALL_DIR}}/lib/cmake | ||
-DCMAKE_PREFIX_PATH=${{env.INSTALL_DIR}}/lib/cmake \ | ||
-DVCPKG_VERBOSE=ON \ | ||
-DX_VCPKG_APPLOCAL_DEPS_INSTALL=ON \ | ||
-DCMAKE_TOOLCHAIN_FILE=${{env.VCPKG_ROOT}}/scripts/buildsystems/vcpkg.cmake | ||
cmake --build . --config ${{ matrix.BUILD_TYPE }} --target install | ||
7z a SerialPortAssistant_${{env.SerialPortAssistant_VERSION}}_macos.zip install/. | ||
|
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 |
---|---|---|
|
@@ -43,7 +43,7 @@ jobs: | |
VCPKG_PLATFORM_TOOLSET: ${{matrix.VCPKG_PLATFORM_TOOLSET}} | ||
CMAKE_GENERATOR_PLATFORM: ${{matrix.CMAKE_GENERATOR_PLATFORM}} | ||
SerialPortAssistant_VERSION: v0.5.16 | ||
VCPKGGITCOMMITID: 6359372f3ca1e6072e302e1d7238f31b259c5b51 | ||
VCPKGGITCOMMITID: a1a1cbc975abf909a6c8985a6a2b8fe20bbd9bd6 | ||
qt_modules: qtwebengine ${{matrix.qt_modules}} | ||
artifact_name: build_msvc | ||
|
||
|
@@ -67,91 +67,57 @@ jobs: | |
cmake -E make_directory ${{env.SOURCE_DIR}} | ||
cmake -E make_directory ${{env.TOOSL_DIR}} | ||
cmake -E make_directory ${{env.INSTALL_DIR}} | ||
- name: Cache Qt | ||
id: cache-qt | ||
uses: actions/cache@v1 # not v2! | ||
- name: Cache installed | ||
uses: actions/cache@v3 | ||
id: cache-installed | ||
with: | ||
path: ${{env.TOOSL_DIR}}/qt | ||
key: qt${{matrix.qt_version}}_${{matrix.qt_arch}} | ||
|
||
- name: Install Qt | ||
# You may pin to the exact commit or the version. | ||
# uses: jurplel/install-qt-action@a962fb91949c8e846a3e4a944d50e7ef5cc3a28a | ||
uses: jurplel/[email protected] | ||
path: | | ||
${{env.INSTALL_DIR}} | ||
key: cache-installed-msvc | ||
|
||
- name: Cache vcpkg | ||
#if: false | ||
uses: actions/cache@v2 | ||
id: cache-vcpkg | ||
with: | ||
# Directory to install Qt | ||
dir: ${{env.TOOSL_DIR}}/qt # optional | ||
# Version of Qt to install | ||
version: ${{matrix.qt_version}} # optional, default is 5.15.2 | ||
# Host platform | ||
#host: linux # optional | ||
# Target platform for build | ||
#target: desktop # optional, default is desktop | ||
# Architecture for Windows/Android | ||
arch: ${{matrix.qt_arch}} # optional | ||
# Whether or not to install Qt dependencies on Linux | ||
#install-deps: true # optional, default is true | ||
# Additional Qt modules to install | ||
modules: ${{env.qt_modules}} # optional. see: https://ddalcino.github.io/aqt-list-server/ | ||
# Force a Qt mirror in case the default is not working | ||
#mirror: # optional | ||
# Whether or not to actually download Qt | ||
cached: ${{ steps.cache-qt.outputs.cache-hit }} # optional, default is false | ||
# Whether or not to automatically run setup-python to find a valid python version. | ||
#setup-python: false # optional, default is true | ||
# Qt tools to download--specify comma-separated argument lists which are themselves separated by spaces: <tool_name>,<tool_version>,<tool_arch> | ||
#tools: # optional | ||
# Whether or not to actually install Qt or just the tools from the tools argument | ||
#tools-only: false # optional, default is false | ||
# Version of aqtinstall to use in case of issues | ||
#aqtversion: # optional, default is ==0.10.0 | ||
# Version of py7zr to use in case of issues | ||
#py7zrversion: # optional, default is ==0.11.0 | ||
# Any extra arguments to append to the back | ||
#extra: # optional | ||
path: | | ||
${{ runner.workspace }}/vcpkg/ | ||
key: cache-vcpkg | ||
|
||
- name: run-vcpkg | ||
uses: lukka/run-vcpkg@v7.4 | ||
uses: lukka/run-vcpkg@v11 | ||
with: | ||
# Indicates whether to only setup vcpkg (i.e. installing it and setting the environment variables VCPKG_ROOT, RUNVCPK_VCPKG_ROOT), without installing any port. | ||
#setupOnly: # optional | ||
#vcpkgGitURL: https://github.com/KangLin/vcpkg.git | ||
vcpkgGitCommitId: ${{env.VCPKGGITCOMMITID}} | ||
vcpkgDirectory: ${{runner.workspace}}/vcpkg/ | ||
# Since the cache must be invalidated when content of the vcpkg.json file changes, let's | ||
# compute its hash and append this to the computed cache's key. | ||
appendedCacheKey: RabbitCommon_cache-vcpkg-msvc-vc${{matrix.VCPKG_PLATFORM_TOOLSET}}-${{matrix.triplet}}-qt${{matrix.qt_version}}-${{matrix.BUILD_TYPE}}-${{env.VCPKGGITCOMMITID}} | ||
#additionalCachedPaths: ${{ env.VCPKG_ROOT }}/installed | ||
vcpkgTriplet: '${{matrix.triplet}}' | ||
vcpkgArguments: 'openssl' | ||
|
||
- name: Cache installed | ||
uses: actions/cache@v3 | ||
id: cache-installed | ||
- name: run vcpkg | ||
run: | | ||
vcpkg install --triplet=${{matrix.triplet}} | ||
- name: Cache Qt | ||
if: false | ||
id: cache-qt | ||
uses: actions/cache@v1 # not v2! | ||
with: | ||
path: | | ||
${{env.INSTALL_DIR}} | ||
key: msvc_cache-installed-vc${{matrix.VCPKG_PLATFORM_TOOLSET}}-${{matrix.triplet}}-qt${{matrix.qt_version}}-${{matrix.BUILD_TYPE}} | ||
path: ${{env.TOOSL_DIR}}/qt | ||
key: qt${{matrix.qt_version}}_${{matrix.qt_arch}}-${{matrix.triplet}} | ||
|
||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v3 | ||
with: | ||
dir: '${{env.TOOSL_DIR}}/qt' # optional | ||
version: '${{matrix.qt_version}}' # optional, default is 5.15.2 | ||
arch: '${{matrix.qt_arch}}' # optional | ||
modules: '${{env.qt_modules}}' # optional. See: https://ddalcino.github.io/aqt-list-server/ | ||
cache: true | ||
cache-key-prefix: install-qt-action | ||
|
||
- name: git clone RabbitCommon | ||
working-directory: ${{env.SOURCE_DIR}} | ||
run: | | ||
git clone https://github.com/KangLin/RabbitCommon.git | ||
# - uses: ilammy/msvc-dev-cmd@v1 | ||
# with: | ||
# arch: ${{ matrix.CMAKE_GENERATOR_PLATFORM }} | ||
# vsversion: ${{ matrix.vc_version }} | ||
|
||
# - name: Setup Visual Studio Tools | ||
# uses: egor-tensin/vs-shell@v2 | ||
# with: | ||
# arch: ${{ matrix.CMAKE_GENERATOR_PLATFORM }} | ||
|
||
# - name: Install jom | ||
# run: choco install jom | ||
|
||
- name: build SerialPortAssistant | ||
working-directory: ${{github.workspace}}/build | ||
env: | ||
|