-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from labstreaminglayer/qt6
Qt6
- Loading branch information
Showing
5 changed files
with
152 additions
and
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,14 +11,14 @@ on: | |
types: ['created'] | ||
|
||
env: | ||
LSL_RELEASE_URL: 'https://github.com/sccn/liblsl/releases/download/v1.14.0' | ||
LSL_RELEASE: '1.14.0' | ||
LSL_RELEASE_URL: 'https://github.com/sccn/liblsl/releases/download/v1.14.1b9' | ||
LSL_RELEASE: '1.14.1' | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
|
||
# Check qt_ver on # https://download.qt.io/online/qtsdkrepository/ | ||
jobs: | ||
build: | ||
name: ${{ matrix.config.name }} | ||
|
@@ -27,31 +27,32 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
config: | ||
- {name: "ubuntu-20.04", os: "ubuntu-20.04"} | ||
- {name: "ubuntu-18.04", os: "ubuntu-18.04"} | ||
- {name: "ubuntu-16.04", os: "ubuntu-16.04"} | ||
- name: "ubuntu-20.04" | ||
os: "ubuntu-20.04" | ||
- name: "ubuntu-18.04" | ||
os: "ubuntu-18.04" | ||
- name: "windows-x64" | ||
os: "windows-latest" | ||
cmake_extra: "-T v142,host=x86" | ||
arch: "amd64" | ||
qt: "win64_msvc2019_64" | ||
qt_arch: "win64_msvc2019_64" | ||
qt_ver: "6.1.0" | ||
- name: "windows-x86" | ||
os: "windows-latest" | ||
cmake_extra: "-T v142,host=x86 -A Win32" | ||
arch: "i386" | ||
qt: "win32_msvc2019" | ||
- {name: "macOS-latest", os: "macOS-latest"} | ||
qt_arch: "win32_msvc2019" | ||
qt_ver: "5.15.2" | ||
- name: "macOS-10" | ||
os: "macos-10.15" | ||
qt_ver: "6.1.0" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Qt | ||
uses: jurplel/[email protected] | ||
with: | ||
arch: ${{ matrix.config.qt }} | ||
|
||
- name: Install liblsl (Ubuntu) | ||
if: startsWith(matrix.config.os, 'ubuntu-') | ||
run: | | ||
sudo apt install -y libpugixml-dev | ||
curl -L ${LSL_RELEASE_URL}/liblsl-${LSL_RELEASE}-$(lsb_release -sc)_amd64.deb -o liblsl.deb | ||
sudo dpkg -i liblsl.deb | ||
|
@@ -62,11 +63,19 @@ jobs: | |
7z x liblsl.zip -oLSL | ||
- name: Download liblsl (macOS) | ||
if: matrix.config.os == 'macOS-latest' | ||
run: | | ||
curl -L ${LSL_RELEASE_URL}/liblsl-${LSL_RELEASE}-OSX_amd64.tar.bz2 -o liblsl.tar.bz2 | ||
mkdir LSL | ||
tar -xvf liblsl.tar.bz2 -C LSL | ||
if: startsWith(matrix.config.os, 'macos-') | ||
run: brew install labstreaminglayer/tap/lsl | ||
|
||
- name: Install Qt .deb packages | ||
if: startsWith(matrix.config.os, 'ubuntu-') | ||
run: sudo apt install -y qtbase5-dev | ||
|
||
- name: Install Qt (Win and Mac) | ||
if: startsWith(matrix.config.os, 'windows') || startsWith(matrix.config.os, 'macos') | ||
uses: jurplel/[email protected] | ||
with: | ||
version: ${{ matrix.config.qt_ver }} | ||
arch: ${{ matrix.config.qt_arch }} | ||
|
||
- name: Configure CMake | ||
run: | | ||
|
@@ -85,10 +94,10 @@ jobs: | |
|
||
- name: package | ||
run: | | ||
export LD_LIBRARY_PATH=$Qt5_Dir/lib:$LD_LIBRARY_PATH | ||
export LD_LIBRARY_PATH=$Qt5_DIR/lib:$Qt6_DIR/lib:$LD_LIBRARY_PATH | ||
cmake --build build --config Release -j --target package | ||
cmake -E remove_directory package/_CPack_Packages | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
|
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
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