Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nheko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
nheko
Commits
8a21c594
Commit
8a21c594
authored
5 years ago
by
Nicolas Werner
Browse files
Options
Downloads
Patches
Plain Diff
Port CI to hunter
parent
d8263265
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.ci/install.sh
+0
-10
0 additions, 10 deletions
.ci/install.sh
.ci/script.sh
+18
-8
18 additions, 8 deletions
.ci/script.sh
.travis.yml
+1
-19
1 addition, 19 deletions
.travis.yml
appveyor.yml
+7
-36
7 additions, 36 deletions
appveyor.yml
with
26 additions
and
73 deletions
.ci/install.sh
+
0
−
10
View file @
8a21c594
...
...
@@ -3,9 +3,6 @@
set
-ex
if
[
"
$TRAVIS_OS_NAME
"
=
"osx"
]
;
then
brew tap nlohmann/json
brew
install
--with-cmake
nlohmann_json
curl https://bootstrap.pypa.io/get-pip.py
-o
get-pip.py
sudo
python get-pip.py
...
...
@@ -25,11 +22,4 @@ if [ "$TRAVIS_OS_NAME" = "linux" ]; then
wget https://cmake.org/files/v3.15/cmake-3.15.5-Linux-x86_64.sh
sudo
sh cmake-3.15.5-Linux-x86_64.sh
--skip-license
--prefix
=
/usr/local
mkdir
-p
build-libsodium
(
cd
build-libsodium
curl
-L
https://download.libsodium.org/libsodium/releases/libsodium-1.0.17.tar.gz
-o
libsodium-1.0.17.tar.gz
tar
xfz libsodium-1.0.17.tar.gz
cd
libsodium-1.0.17/
./configure
&&
make
&&
sudo
make
install
)
fi
This diff is collapsed.
Click to expand it.
.ci/script.sh
+
18
−
8
View file @
8a21c594
...
...
@@ -19,19 +19,29 @@ if [ "$TRAVIS_OS_NAME" = "osx" ]; then
export
CMAKE_PREFIX_PATH
=
/usr/local/opt/qt5
fi
# Build & install dependencies
cmake
-GNinja
-Hdeps
-B
.deps
\
-DUSE_BUNDLED_BOOST
=
"
${
USE_BUNDLED_BOOST
}
"
\
-DUSE_BUNDLED_CMARK
=
"
${
USE_BUNDLED_CMARK
}
"
\
-DUSE_BUNDLED_JSON
=
"
${
USE_BUNDLED_JSON
}
"
\
-DMTX_STATIC
=
"
${
MTX_STATIC
:-
OFF
}
"
cmake
--build
.deps
mkdir
-p
.deps/usr .hunter
# Build nheko
if
[
"
$TRAVIS_OS_NAME
"
=
"osx"
]
;
then
cmake
-GNinja
-H
.
-Bbuild
\
-DCMAKE_BUILD_TYPE
=
RelWithDebInfo
\
-DCMAKE_INSTALL_PREFIX
=
.deps/usr
\
-DHUNTER_ROOT
=
".hunter"
\
-DHUNTER_ENABLED
=
ON
-DBUILD_SHARED_LIBS
=
OFF
\
-DCMAKE_BUILD_TYPE
=
RelWithDebInfo
-DHUNTER_CONFIGURATION_TYPES
=
RelWithDebInfo
\
-DUSE_BUNDLED_OPENSSL
=
OFF
\
-DOPENSSL_ROOT_DIR
=
/usr/local/opt/openssl
\
-DOPENSSL_INCLUDE_DIR
=
/usr/local/opt/openssl/include
else
cmake
-GNinja
-H
.
-Bbuild
\
-DCMAKE_BUILD_TYPE
=
RelWithDebInfo
\
-DCMAKE_INSTALL_PREFIX
=
.deps/usr
\
-DBUILD_SHARED_LIBS
=
ON
# weird workaround, as the boost 1.70 cmake files seem to be broken?
-DHUNTER_ROOT
=
".hunter"
\
-DHUNTER_ENABLED
=
ON
-DBUILD_SHARED_LIBS
=
OFF
\
-DCMAKE_BUILD_TYPE
=
RelWithDebInfo
-DHUNTER_CONFIGURATION_TYPES
=
RelWithDebInfo
\
-DUSE_BUNDLED_OPENSSL
=
OFF
fi
cmake
--build
build
if
[
"
$TRAVIS_OS_NAME
"
=
"osx"
]
;
then
...
...
This diff is collapsed.
Click to expand it.
.travis.yml
+
1
−
19
View file @
8a21c594
...
...
@@ -13,7 +13,7 @@ notifications:
cache
:
directories
:
-
.
deps
-
.
hunter
matrix
:
include
:
...
...
@@ -23,21 +23,12 @@ matrix:
osx_image
:
xcode10.2
env
:
-
DEPLOYMENT=1
-
USE_BUNDLED_BOOST=0
-
USE_BUNDLED_CMARK=0
-
USE_BUNDLED_JSON=0
-
MTX_STATIC=1
addons
:
homebrew
:
taps
:
nlohmann/json
packages
:
-
boost
-
clang-format
-
cmake
-
cmark
-
icu4c
-
libsodium
-
lmdb
-
ninja
-
openssl
-
qt5
...
...
@@ -48,9 +39,6 @@ matrix:
-
CC=gcc-7
-
QT_PKG=512
-
DEPLOYMENT=1
-
USE_BUNDLED_BOOST=1
-
USE_BUNDLED_CMARK=1
-
USE_BUNDLED_JSON=1
addons
:
apt
:
sources
:
...
...
@@ -73,9 +61,6 @@ matrix:
-
CXX=g++-8
-
CC=gcc-8
-
QT_PKG=59
-
USE_BUNDLED_BOOST=1
-
USE_BUNDLED_CMARK=1
-
USE_BUNDLED_JSON=1
addons
:
apt
:
sources
:
...
...
@@ -98,9 +83,6 @@ matrix:
-
CXX=clang++-6.0
-
CC=clang-6.0
-
QT_PKG=59
-
USE_BUNDLED_BOOST=1
-
USE_BUNDLED_CMARK=1
-
USE_BUNDLED_JSON=1
addons
:
apt
:
sources
:
...
...
This diff is collapsed.
Click to expand it.
appveyor.yml
+
7
−
36
View file @
8a21c594
---
version
:
0.
6.4
-{build}
version
:
0.
7.0
-{build}
configuration
:
Release
image
:
Visual Studio
2019
...
...
@@ -11,8 +11,8 @@ environment:
secure
:
"
iGl5mzE9/ta9kFELUxDw9XtlYMSCMai9xowXIkYzU8WKHz7NfW0mLwMJZvblZFXJ"
cache
:
-
c:\
tools\vcpkg\installed
\ -> appveyor.yml
#
-
.
deps -> appveyor.yml,deps\CMakeLists.txt
<- disabled because it randomly seems to break everytime
-
c:\
hunter
\ -> appveyor.yml
-
build\_
deps -> appveyor.yml,deps\CMakeLists.txt
build
:
verbosity
:
minimal
...
...
@@ -23,20 +23,6 @@ install:
-
set PATH=%PATH%;C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev1\mingw64\bin
-
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
-
cd "C:\Tools\vcpkg"&& git pull && .\bootstrap-vcpkg.bat && cd %APPVEYOR_BUILD_FOLDER%
-
vcpkg install
nlohmann-json:%PLATFORM%-windows
boost-asio:%PLATFORM%-windows
boost-beast:%PLATFORM%-windows
boost-iostreams:%PLATFORM%-windows
boost-random:%PLATFORM%-windows
boost-signals2:%PLATFORM%-windows
boost-system:%PLATFORM%-windows
boost-thread:%PLATFORM%-windows
libsodium:%PLATFORM%-windows
lmdb:%PLATFORM%-windows
openssl:%PLATFORM%-windows
zlib:%PLATFORM%-windows
-
vcpkg upgrade --no-dry-run
build_script
:
# VERSION format: branch-master/branch-1.2
...
...
@@ -57,23 +43,12 @@ build_script:
-
echo %INSTVERSION%
-
echo %DATE%
# Build & install the dependencies
-
cmake -G "Visual Studio 16 2019" -A x64 -Hdeps -B.deps
-DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake
-DUSE_BUNDLED_BOOST=OFF
-DUSE_BUNDLED_JSON=OFF
-DMTX_STATIC=ON
-
cmake --build .deps --config Release
# Build nheko
-
rm -f cmake/FindOlm.cmake
-
cmake -G "Visual Studio 16 2019" -A x64 -H. -Bbuild
-DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake
-DLMDBXX_INCLUDE_DIR=.deps/usr/include
-DTWEENY_INCLUDE_DIR=.deps/usr/include
-DCMARK_INCLUDE_DIR=C:/projects/nheko/.deps/usr/include
-DCMARK_LIBRARY=C:/projects/nheko/.deps/usr/lib/cmark.lib
-DJSON_INCLUDE_DIR=.deps/usr/include
-DHUNTER_ROOT="C:\hunter"
-DHUNTER_ENABLED=ON -DBUILD_SHARED_LIBS=OFF
-DCMAKE_BUILD_TYPE=Release -DHUNTER_CONFIGURATION_TYPES=Release
-
cmake --build build --config Release
after_build
:
...
...
@@ -84,10 +59,6 @@ after_build:
-
copy build\Release\nheko.exe NhekoRelease\nheko.exe
-
windeployqt --qmldir %QT_DIR%\qml\ --release NhekoRelease\nheko.exe
-
copy C:\Tools\vcpkg\installed\x64-windows\bin\*.dll .\NhekoRelease\
-
copy C:\projects\nheko\.deps\usr\bin\cmark.dll .\NhekoRelease\
-
7z a nheko_win_64.zip .\NhekoRelease\*
-
ls -lh build\Release\
-
ls -lh NhekoRelease\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment