Skip to content

Commit adb7aaa

Browse files
committed
Update CI config
1 parent 829bc22 commit adb7aaa

3 files changed

Lines changed: 17 additions & 85 deletions

File tree

.appveyor.yml

Lines changed: 12 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,28 @@
1-
#: # Appveyor configuration ([source](../appskeleton/appveyor.yml))
2-
#: The AppVeyor configuration tells AppVeyor how to build the app.
3-
#: See the [AppVeyor documentation](https://www.appveyor.com/docs/appveyor-yml/)
4-
#: for specific questions.
5-
#:
6-
#: If you use this skeleton, you should only need to edit the following keys:
7-
#: - `version`: the package version
8-
#: - `deploy.username`: your username, even if you commit to the official repository
9-
#: - `deploy.api_key.secure`: your *encrypted* API key. Use the
10-
#: [encryption utility](https://ci.appveyor.com/tools/encrypt) to encrypt it.
111
version: 1.13.0.{build}
122
pull_requests:
133
do_not_increment_build_number: true
144
shallow_clone: true
15-
#: ## Environment variables
16-
#:
17-
#: Variables (`VAR`) defined here can be used in the build scripts (Windows: `%VAR%`, Linux: `${VAR}`).
18-
#:
19-
#: They can also be overridden in the build tool (`ci_console.html` in your local
20-
#: labstreaminglayer/labstreaminglayer repo) to build with a special configuration.
21-
#:
22-
#: each subgroup in `environment.matrix` will start a separate, clean build with the
23-
#: environment variables. This is useful in building on different operating systems
24-
#: (different `APPVEYOR_BUILD_WORKER_IMAGE`s) or compiler versions (i.e. through `VCVER`)
255
environment:
26-
lsltag: 1.13.0-b12
6+
lsltag: 1.13.0
277
lslversion: 1.13.0
288
LSLDIST_URL: "https://github.com/sccn/liblsl/releases/download"
299
CMakeArgs: ""
3010
matrix:
31-
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
32-
QTCOMPILER: msvc2017_64
33-
QTVER: 5.12
34-
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1604
35-
DEPLOYNAME: Linux64-xenial
36-
#: # The `install` section
37-
#:
38-
#: List everything here to prepare the (clean) build server.
39-
#:
40-
#: Everything prefixed with `- cmd:` is only executed on windows,
41-
#: `- sh:` on Linux.
11+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
12+
QTCOMPILER: msvc2017_64
13+
QTVER: 5.13
14+
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
15+
DEPLOYNAME: Linux64-bionic
4216
install:
43-
- cmd: appveyor DownloadFile https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-win.zip -FileName ninja.zip
44-
- cmd: appveyor DownloadFile %LSLDIST_URL%/%lsltag%/liblsl-%lslversion%-Win64.7z -FileName liblsl_x64.7z
45-
- cmd: 7z x ninja.zip
46-
- cmd: set PATH=%cd%;%PATH%
47-
- cmd: 7z x liblsl_x64.7z -oLSL
48-
- cmd: ninja --version
49-
- sh: set -x
17+
- cmd: appveyor DownloadFile %LSLDIST_URL%/%lsltag%/liblsl-%lslversion%-Win64.zip -FileName liblsl_x64.zip
18+
- cmd: 7z x liblsl_x64.zip -oLSL
5019
- sh: wget ${LSLDIST_URL}/${lsltag}/liblsl-${lslversion}-${DEPLOYNAME}.deb -O lsl.deb
51-
- sh: dpkg -x lsl.deb LSL
20+
- sh: sudo dpkg -i lsl.deb
5221
- sh: sudo apt update && sudo apt install -y qtbase5-dev
5322
build_script:
54-
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
55-
- cmd: cmake -S . -B build -G Ninja -DQt5_DIR=C:/Qt/%QTVER%/%QTCOMPILER%/lib/cmake/Qt5 -DBOOST_ROOT=C:/Libraries/boost_1_69_0 -DLSL_INSTALL_ROOT=LSL/ %CMakeArgs%
56-
- sh: cmake -S . -B build -DLSL_INSTALL_ROOT=LSL/usr -DLSL_UNIXFOLDERS=1 ${CMakeArgs}
57-
- cd build
58-
- cmake --build . --config Release --target install
59-
- cpack -C Release
60-
#: ## Artifacts
61-
#:
62-
#: If you want the built binaries in addition to the build log, you can define
63-
#: which paths (`path`) get compressed to which archives (`name`). You can use
64-
#: environment variables as placeholders (`$(lslversion)`).
23+
- cmd: cmake -S . -B build -DQt5_DIR=C:/Qt/%QTVER%/%QTCOMPILER%/lib/cmake/Qt5 -DLSL_INSTALL_ROOT=LSL/ %CMakeArgs% -A x64
24+
- sh: cmake -S . -B build -DLSL_UNIXFOLDERS=1 -DCPACK_DEBIAN_PACKAGE_SHLIBDEPS=1 ${CMakeArgs}
25+
- cmake --build build --config Release -j --target package
6526
artifacts:
6627
- path: 'build/*.deb'
6728
- path: 'build/*.tar.*'

.github/workflows/cppcmake.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,11 @@ jobs:
5656
- name: Configure CMake
5757
shell: bash
5858
run: |
59-
cmake --version
60-
cmake -E make_directory build
61-
cd build
62-
cmake -DLSL_INSTALL_ROOT=$PWD/../ -DCPACK_DEBIAN_PACKAGE_SHLIBDEPS=ON ..
59+
cmake -S . -B build -DLSL_INSTALL_ROOT=$PWD/LSL/ -DCPACK_DEBIAN_PACKAGE_SHLIBDEPS=ON -DCPACK_DEBIAN_PACKAGE_DEPENDS=1
6360
- name: make
64-
run: cmake --build build --config Release -j --target package
61+
run: cmake --build build --config Release -j
62+
- name: package
63+
run: cmake --build build --config Release -j --target install
6564
- uses: actions/upload-artifact@master
6665
with:
6766
name: pkg-${{ matrix.os }}

.travis.yml

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,11 @@
1-
#: # `.travis.yml` ([source](../appskeleton/.travis.yml))
2-
#:
3-
#: `.travis.yml` tells [TravisCI](https://travis-ci.com) how to build the app.
4-
#:
5-
#: See the [TravisCI help pages](https://docs.travis-ci.com/).
6-
#:
7-
#: If you use this skeleton, you should only need to edit the following keys:
8-
#: - `matrix.include.os.addons.apt.packages`: additional packages required
9-
#: (e.g. `qt5-default` for Qt, `libboost-XY-dev` for Boost.XY)
10-
#: - `matrix.include.os.before_install` for OS X packages
11-
#: - deployment information. See [Deployment](#deployment).
12-
#:
13-
#: ## Basic configuration
14-
#:
15-
#: We compile with clang because it produces better error messages and is faster.
161
language: cpp
172
dist: xenial
183
compiler: clang
19-
#: The build environment variables.
20-
#: They can also be overridden in the build tool (`ci_console.html` in your local
21-
#: labstreaminglayer/labstreaminglayer repo) to build with a special configuration.
224
env:
235
LSLDIST_URL="https://github.com/sccn/liblsl/releases/download"
246
UBUNTU_DIST="xenial"
25-
LSL_VERSION="1.13.0-b12"
7+
LSL_VERSION="1.13.0"
268
- CMakeArgs=""
27-
#: ## Build environment setup
28-
#:
29-
#: Linux builds aren't enabled on Travis because the experience on Appveyor and
30-
#: Azure Pipelines is way better.
31-
#:
32-
#: On OS X, install packages via `brew` and download and extract liblsl.
339
matrix:
3410
include:
3511
- os: osx
@@ -42,10 +18,6 @@ matrix:
4218
- export LSL_INSTALL_ROOT=LSL
4319
- brew install qt
4420
- export CMAKE_PREFIX_PATH=/usr/local/opt/qt/
45-
#: ## `script` section
46-
#:
47-
#: Steps to build the app, copy the binaries to an "installation" folder and
48-
#: create `.dmg` packages on OS X and `.deb` packages on Linux.
4921
script:
5022
- mkdir -p build/install
5123
- cd build

0 commit comments

Comments
 (0)