|
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. |
11 | 1 | version: 1.13.0.{build} |
12 | 2 | pull_requests: |
13 | 3 | do_not_increment_build_number: true |
14 | 4 | 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`) |
25 | 5 | environment: |
26 | | - lsltag: 1.13.0-b12 |
| 6 | + lsltag: 1.13.0 |
27 | 7 | lslversion: 1.13.0 |
28 | 8 | LSLDIST_URL: "https://github.com/sccn/liblsl/releases/download" |
29 | 9 | CMakeArgs: "" |
30 | 10 | 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 |
42 | 16 | 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 |
50 | 19 | - 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 |
52 | 21 | - sh: sudo apt update && sudo apt install -y qtbase5-dev |
53 | 22 | 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 |
65 | 26 | artifacts: |
66 | 27 | - path: 'build/*.deb' |
67 | 28 | - path: 'build/*.tar.*' |
|
0 commit comments