| 1 |
name: Build Releases (with Redland) |
| 2 |
|
| 3 |
# Run this workflow every time a new commit pushed to your repository |
| 4 |
on: |
| 5 |
push: |
| 6 |
tags: releases/v* |
| 7 |
branches: master |
| 8 |
|
| 9 |
|
| 10 |
jobs: |
| 11 |
|
| 12 |
|
| 13 |
tags: |
| 14 |
name: Identify tags |
| 15 |
runs-on: ubuntu-latest |
| 16 |
outputs: |
| 17 |
git_tag: ${{ steps.get_tags.outputs.git_tag }} |
| 18 |
revision_hash: ${{ steps.get_tags.outputs.revision_hash }} |
| 19 |
revision_tag: ${{ steps.get_tags.outputs.revision_tag }} |
| 20 |
revision_build: ${{ steps.get_tags.outputs.revision_build }} |
| 21 |
steps: |
| 22 |
- name: Checkout code |
| 23 |
uses: actions/checkout@v2 |
| 24 |
|
| 25 |
- name: Identify git tags |
| 26 |
id: get_tags |
| 27 |
run: | |
| 28 |
git fetch --prune --unshallow --tags |
| 29 |
git_tag=`git describe --tags --abbrev=0` |
| 30 |
echo $git_tag |
| 31 |
echo "::set-output name=git_tag::$git_tag" |
| 32 |
revision_hash=`grep KONCLUDE_VERSION_GIT_REVISION_HASH_STRING revision-git.h | cut -d'"' -f 2` |
| 33 |
echo $revision_hash |
| 34 |
echo "::set-output name=revision_hash::$revision_hash" |
| 35 |
IFS='-' |
| 36 |
read -ra ADDR <<< "$git_tag" |
| 37 |
revision_tag=${ADDR[0]} |
| 38 |
revision_build=${ADDR[1]} |
| 39 |
echo "::set-output name=revision_tag::$revision_tag" |
| 40 |
echo "::set-output name=revision_build::$revision_build" |
| 41 |
|
| 42 |
release: |
| 43 |
name: Draft build release |
| 44 |
runs-on: ubuntu-latest |
| 45 |
needs: tags |
| 46 |
outputs: |
| 47 |
upload_url: ${{ steps.create_release.outputs.upload_url }} |
| 48 |
steps: |
| 49 |
- name: Create release |
| 50 |
id: create_release |
| 51 |
uses: actions/create-release@v1 |
| 52 |
env: |
| 53 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 54 |
with: |
| 55 |
tag_name: ${{needs.tags.outputs.git_tag}} |
| 56 |
release_name: Konclude Release ${{needs.tags.outputs.git_tag}} |
| 57 |
body: ${{needs.tags.outputs.git_tag}} |
| 58 |
draft: true |
| 59 |
prerelease: true |
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
build_windows: |
| 69 |
name: ${{ matrix.config.name }} |
| 70 |
runs-on: ${{ matrix.config.os }} |
| 71 |
timeout-minutes: 600 |
| 72 |
needs: [release, tags] |
| 73 |
strategy: |
| 74 |
fail-fast: false |
| 75 |
matrix: |
| 76 |
config: |
| 77 |
- { |
| 78 |
name: "Windows 2016 MSVC 2017 Dynamic", |
| 79 |
os: windows-2016, |
| 80 |
build_type: "Release", |
| 81 |
cc: "cl", |
| 82 |
cxx: "cl", |
| 83 |
qt: "5.15.2" |
| 84 |
} |
| 85 |
|
| 86 |
|
| 87 |
steps: |
| 88 |
# Checks out a copy of your repository on the ubuntu-latest machine |
| 89 |
- name: Checkout code |
| 90 |
uses: actions/checkout@v2 |
| 91 |
|
| 92 |
|
| 93 |
- name: Update Revision Information |
| 94 |
run: | |
| 95 |
echo '#define KONCLUDE_VERSION_GIT_REVISION_NUMBER ${{needs.tags.outputs.revision_build}}' > "revision-git.h" |
| 96 |
echo '#define KONCLUDE_VERSION_GIT_TAG_NAME_STRING "${{needs.tags.outputs.revision_tag}}"' >> "revision-git.h" |
| 97 |
echo '#define KONCLUDE_VERSION_GIT_REVISION_HASH_STRING "${{needs.tags.outputs.revision_hash}}"' >> "revision-git.h" |
| 98 |
|
| 99 |
|
| 100 |
- name: Install Qt |
| 101 |
uses: jurplel/install-qt-action@v2 |
| 102 |
with: |
| 103 |
version: ${{ matrix.config.qt }} |
| 104 |
|
| 105 |
- name: Prepare Visual Studio |
| 106 |
uses: ilammy/msvc-dev-cmd@v1 |
| 107 |
with: |
| 108 |
sdk: 10.0.10240.0 |
| 109 |
|
| 110 |
- name: Environment Checking |
| 111 |
shell: powershell |
| 112 |
run: | |
| 113 |
Get-ChildItem Env:PATH |
| 114 |
echo $PSScriptRoot |
| 115 |
$Env:PATH = $Env:PATH + ';D:\a\Konclude\Qt\${{ matrix.config.qt }}\msvc2019_64\bin' |
| 116 |
$Env:PATH = $Env:PATH + ';$PSScriptRoot\External\vcpkg\Windows\x64\bin' |
| 117 |
$Env:PATH = $Env:PATH + ';.\External\vcpkg\Windows\x64\bin' |
| 118 |
Get-ChildItem Env:PATH |
| 119 |
|
| 120 |
- name: Install Windows 8.1 SDK |
| 121 |
shell: powershell |
| 122 |
run: | |
| 123 |
Invoke-WebRequest -Method Get -Uri https://go.microsoft.com/fwlink/p/?LinkId=323507 -OutFile sdksetup.exe -UseBasicParsing |
| 124 |
Start-Process -Wait sdksetup.exe -ArgumentList "/q", "/norestart", "/features", "OptionId.WindowsDesktopSoftwareDevelopmentKit", "OptionId.NetFxSoftwareDevelopmentKit" |
| 125 |
- name: Compile Windows |
| 126 |
run: | |
| 127 |
msbuild Konclude-VS15.sln /p:Configuration=Release /p:Platform="Win64" |
| 128 |
|
| 129 |
- uses: actions/upload-artifact@v2 |
| 130 |
with: |
| 131 |
name: Konclude Windows Compilation |
| 132 |
path: . |
| 133 |
|
| 134 |
- name: Prepare Windows Execution |
| 135 |
run: | |
| 136 |
Copy-Item ".\External\vcpkg\Windows\x64\bin\*" -Destination "." |
| 137 |
- name: Create Konclude Release |
| 138 |
run: | |
| 139 |
$ROOT="$(pwd)" |
| 140 |
mkdir Release |
| 141 |
|
| 142 |
$BUILD_DIR=$ROOT |
| 143 |
$PROJ=$ROOT |
| 144 |
$RELEA="$ROOT\Release\Konclude-${{needs.tags.outputs.git_tag}}-Windows-x64-MSVC-Dynamic-Qt${{ matrix.config.qt }}" |
| 145 |
|
| 146 |
mkdir $RELEA |
| 147 |
mkdir "$RELEA/Configs" |
| 148 |
mkdir "$RELEA/Tests" |
| 149 |
mkdir "$RELEA/Binaries" |
| 150 |
|
| 151 |
cd $BUILD_DIR |
| 152 |
copy "$BUILD_DIR\x64\Release\VS2015\Konclude.exe" "$RELEA/Binaries" |
| 153 |
|
| 154 |
copy "$PROJ\LGPL-3.0.txt" "$RELEA" |
| 155 |
copy "$PROJ\GPL.txt" "$RELEA" |
| 156 |
copy "$PROJ\Readme.md" "$RELEA" |
| 157 |
copy "$PROJ\Tests\1b-satisfiability-request.xml" "$RELEA/Tests" |
| 158 |
copy "$PROJ\Tests\galen.owl.xml" "$RELEA/Tests" |
| 159 |
copy "$PROJ\Tests\galen-classify-request.xml" "$RELEA/Tests" |
| 160 |
copy "$PROJ\Tests\galen-ALEHIF+-classify-request.xml" "$RELEA/Tests" |
| 161 |
copy "$PROJ\Tests\roberts-family-full-D.owl.xml" "$RELEA/Tests" |
| 162 |
copy "$PROJ\Tests\roberts-family-full-D-classify-realize-request.xml" "$RELEA/Tests" |
| 163 |
copy "$PROJ\Tests\lubm-univ-bench.owl.xml" "$RELEA/Tests" |
| 164 |
copy "$PROJ\Tests\lubm-univ-bench-data-1.ttl" "$RELEA/Tests" |
| 165 |
copy "$PROJ\Tests\lubm-univ-bench-sparql-load-and-query-test.sparql" "$RELEA/Tests" |
| 166 |
copy "$PROJ\Tests\lubm-univ-bench-sparql-load-and-complex-query-rasqal-test.sparql" "$RELEA/Tests" |
| 167 |
copy "$PROJ\Tests\roberts-family-full-sparql-existential-variables-query-test.sparql" "$RELEA/Tests" |
| 168 |
copy "$PROJ\Tests\test-request.xml" "$RELEA/Tests" |
| 169 |
copy "$PROJ\Scripts\Konclude.bat" "$RELEA" |
| 170 |
copy "$PROJ\Configs\default-config.xml" "$RELEA/Configs" |
| 171 |
copy "$PROJ\Configs\querying-config.xml" "$RELEA/Configs" |
| 172 |
|
| 173 |
copy ".\External\vcpkg\Windows\x64\bin\*.dll" "$RELEA/Binaries" |
| 174 |
copy "D:\a\Konclude\Qt\${{ matrix.config.qt }}\msvc2019_64\bin\Qt5Core.dll" "$RELEA/Binaries" |
| 175 |
copy "D:\a\Konclude\Qt\${{ matrix.config.qt }}\msvc2019_64\bin\Qt5Gui.dll" "$RELEA/Binaries" |
| 176 |
copy "D:\a\Konclude\Qt\${{ matrix.config.qt }}\msvc2019_64\bin\Qt5Network.dll" "$RELEA/Binaries" |
| 177 |
copy "D:\a\Konclude\Qt\${{ matrix.config.qt }}\msvc2019_64\bin\Qt5Concurrent.dll" "$RELEA/Binaries" |
| 178 |
copy "D:\a\Konclude\Qt\${{ matrix.config.qt }}\msvc2019_64\bin\Qt5Xml.dll" "$RELEA/Binaries" |
| 179 |
|
| 180 |
- uses: actions/upload-artifact@v2 |
| 181 |
with: |
| 182 |
name: Konclude Windows Prepared Release Directory |
| 183 |
path: . |
| 184 |
|
| 185 |
- name: Zip the asset into a zip file |
| 186 |
id: zip_asset |
| 187 |
run: | |
| 188 |
cd Release |
| 189 |
7z a -tzip Konclude-${{needs.tags.outputs.git_tag}}-Windows-x64-MSVC-Dynamic-Qt${{ matrix.config.qt }}.zip Konclude-${{needs.tags.outputs.git_tag}}-Windows-x64-MSVC-Dynamic-Qt${{ matrix.config.qt }}* |
| 190 |
- name: Run Examples Windows |
| 191 |
if: startsWith(matrix.config.os, 'windows') |
| 192 |
run: | |
| 193 |
$ROOT="$(pwd)" |
| 194 |
$RELEA="$ROOT/Release/Konclude-${{needs.tags.outputs.git_tag}}-Windows-x64-MSVC-Dynamic-Qt${{ matrix.config.qt }}" |
| 195 |
cd $RELEA |
| 196 |
.\Konclude.bat classification -i Tests/roberts-family-full-D.owl.xml -o roberts-family-full-class-hierarchy.owl.xml |
| 197 |
.\Konclude.bat satisfiability -i Tests/roberts-family-full-D.owl.xml -x http://www.co-ode.org/roberts/family-tree.owl#Aunt |
| 198 |
.\Konclude.bat owllinkfile -i Tests/galen-classify-request.xml -o response.xml |
| 199 |
.\Konclude.bat owllinkfile -i Tests/roberts-family-full-D-classify-realize-request.xml |
| 200 |
.\Konclude.bat owllinkfile -c Configs/default-config.xml -i Tests/1b-satisfiability-request.xml |
| 201 |
.\Konclude.bat sparqlfile -s Tests/lubm-univ-bench-sparql-load-and-query-test.sparql -o Tests/query-answers.xml -c Configs/querying-config.xml |
| 202 |
.\Konclude.bat sparqlfile -s Tests/roberts-family-full-sparql-existential-variables-query-test.sparql -i Tests/roberts-family-full-D.owl.xml |
| 203 |
|
| 204 |
- name: Upload release assets |
| 205 |
id: upload_assets |
| 206 |
uses: actions/upload-release-asset@v1 |
| 207 |
env: |
| 208 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 209 |
with: |
| 210 |
upload_url: ${{ needs.release.outputs.upload_url }} |
| 211 |
asset_path: Release/Konclude-${{needs.tags.outputs.git_tag}}-Windows-x64-MSVC-Dynamic-Qt${{ matrix.config.qt }}.zip |
| 212 |
asset_name: Konclude-${{needs.tags.outputs.git_tag}}-Windows-x64-MSVC-Dynamic-Qt${{ matrix.config.qt }}.zip |
| 213 |
asset_content_type: application/octet-stream |
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
|
| 222 |
|
| 223 |
|
| 224 |
prebuild_qt_macosx: |
| 225 |
name: ${{ matrix.config.name }} |
| 226 |
runs-on: ${{ matrix.config.os }} |
| 227 |
timeout-minutes: 600 |
| 228 |
needs: [release, tags] |
| 229 |
strategy: |
| 230 |
fail-fast: false |
| 231 |
matrix: |
| 232 |
config: |
| 233 |
- { |
| 234 |
name: "MacOS Latest Clang Qt Prebuild", |
| 235 |
os: macos-latest, |
| 236 |
build_type: "Release", |
| 237 |
cc: "clang", |
| 238 |
cxx: "clang++", |
| 239 |
qt: 5.12.10, |
| 240 |
qt_major: 5.12 |
| 241 |
} |
| 242 |
|
| 243 |
steps: |
| 244 |
|
| 245 |
|
| 246 |
- name: Install Dependencies |
| 247 |
run: | |
| 248 |
brew install autoconf automake libtool gtk-doc mpfr libgcrypt libiconv |
| 249 |
# new bison (https://ghcr.io/v2/homebrew/core/bison/manifests/3.7.6-1) causes error for building rasqal: /Applications/Xcode_12.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/bison/skeletons/bison.m4: No such file or directory |
| 250 |
brew tap-new $USER/local-tap |
| 251 |
brew extract --version='3.7.6' bison $USER/local-tap |
| 252 |
brew install [email protected] |
| 253 |
|
| 254 |
echo "checking bison version" |
| 255 |
brew unlink [email protected] |
| 256 |
brew link [email protected] --force |
| 257 |
|
| 258 |
|
| 259 |
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> /Users/runner/.bash_profile |
| 260 |
source ~/.bash_profile |
| 261 |
|
| 262 |
|
| 263 |
- name: Prepare Environment |
| 264 |
run: | |
| 265 |
ROOT="$(pwd)" |
| 266 |
mkdir src |
| 267 |
mkdir lib |
| 268 |
|
| 269 |
|
| 270 |
- name: Download Qt |
| 271 |
run: | |
| 272 |
ROOT="$(pwd)" |
| 273 |
# download, build and install qt |
| 274 |
cd $ROOT/src \ |
| 275 |
&& wget -q https://download.qt.io/official_releases/qt/${{ matrix.config.qt_major }}/${{ matrix.config.qt }}/single/qt-everywhere-src-${{ matrix.config.qt }}.tar.xz \ |
| 276 |
&& tar -xJf qt-everywhere-src-${{ matrix.config.qt }}.tar.xz \ |
| 277 |
&& mv qt-everywhere-src-${{ matrix.config.qt }} qt-static |
| 278 |
|
| 279 |
- name: Prepare Qt |
| 280 |
run: | |
| 281 |
ROOT="$(pwd)" |
| 282 |
cd $ROOT/src/qt-static \ |
| 283 |
&& export MAKE=/usr/bin/make \ |
| 284 |
&& ./configure -static -prefix $ROOT/qt-static -extprefix $ROOT/lib/qt-static -no-opengl -nomake examples -nomake tests -nomake tools -skip webview -skip webchannel -skip 3d -skip script -skip webengine -opensource -platform macx-clang -no-icu -confirm-license -opensource |
| 285 |
|
| 286 |
|
| 287 |
- name: Cache Qt Compilation |
| 288 |
uses: actions/cache@v2 |
| 289 |
env: |
| 290 |
cache-name: cache-qt-compilation |
| 291 |
with: |
| 292 |
path: src/qt-static |
| 293 |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.config.qt }}-${{ hashFiles('src/qt-static/**/makefile') }} |
| 294 |
|
| 295 |
- name: Compile Qt |
| 296 |
run: | |
| 297 |
ROOT="$(pwd)" |
| 298 |
cd $ROOT/src/qt-static |
| 299 |
make |
| 300 |
|
| 301 |
|
| 302 |
|
| 303 |
build_macosx: |
| 304 |
name: ${{ matrix.config.name }} |
| 305 |
runs-on: ${{ matrix.config.os }} |
| 306 |
timeout-minutes: 600 |
| 307 |
needs: [prebuild_qt_macosx, release, tags] |
| 308 |
strategy: |
| 309 |
fail-fast: false |
| 310 |
matrix: |
| 311 |
config: |
| 312 |
- { |
| 313 |
name: "MacOS Latest Clang Static", |
| 314 |
os: macos-latest, |
| 315 |
build_type: "Release", |
| 316 |
cc: "clang", |
| 317 |
cxx: "clang++", |
| 318 |
qt: 5.12.10, |
| 319 |
qt_major: 5.12 |
| 320 |
} |
| 321 |
|
| 322 |
steps: |
| 323 |
|
| 324 |
- name: Checkout Konclude code |
| 325 |
uses: actions/checkout@v2 |
| 326 |
with: |
| 327 |
path: "konclude-static" |
| 328 |
|
| 329 |
|
| 330 |
- name: Update Revision Information |
| 331 |
run: | |
| 332 |
echo "#define KONCLUDE_VERSION_GIT_REVISION_NUMBER ${{needs.tags.outputs.revision_build}}" > "konclude-static/revision-git.h" |
| 333 |
echo "#define KONCLUDE_VERSION_GIT_TAG_NAME_STRING \"${{needs.tags.outputs.revision_tag}}\"" >> "konclude-static/revision-git.h" |
| 334 |
echo "#define KONCLUDE_VERSION_GIT_REVISION_HASH_STRING \"${{needs.tags.outputs.revision_hash}}\"" >> "konclude-static/revision-git.h" |
| 335 |
|
| 336 |
- name: Install Dependencies |
| 337 |
run: | |
| 338 |
brew install autoconf automake libtool gtk-doc mpfr libgcrypt libiconv |
| 339 |
|
| 340 |
brew tap-new $USER/local-tap |
| 341 |
brew extract --version='3.7.6' bison $USER/local-tap |
| 342 |
brew install [email protected] |
| 343 |
|
| 344 |
echo "checking bison version" |
| 345 |
brew unlink [email protected] |
| 346 |
brew link [email protected] --force |
| 347 |
|
| 348 |
|
| 349 |
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> /Users/runner/.bash_profile |
| 350 |
cp -r /usr/local/opt/[email protected]/bin/ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ |
| 351 |
source ~/.bash_profile |
| 352 |
bison --version |
| 353 |
|
| 354 |
- name: Deinstall Berkeley-DB |
| 355 |
run: | |
| 356 |
brew uninstall --ignore-dependencies berkeley-db |
| 357 |
ls -al /usr/local/opt/ |
| 358 |
|
| 359 |
|
| 360 |
- name: Prepare Environment |
| 361 |
run: | |
| 362 |
ROOT="$(pwd)" |
| 363 |
mkdir src |
| 364 |
mkdir lib |
| 365 |
|
| 366 |
- name: Install Libxml2 |
| 367 |
run: | |
| 368 |
ROOT="$(pwd)" |
| 369 |
# download, build and install libxml2 |
| 370 |
cd $ROOT/src \ |
| 371 |
&& wget ftp://xmlsoft.org/libxml2/libxml2-2.9.9.tar.gz \ |
| 372 |
&& tar -xvzf libxml2-2.9.9.tar.gz \ |
| 373 |
&& mv libxml2-2.9.9 libxml2-static \ |
| 374 |
&& cd libxml2-static \ |
| 375 |
&& ./configure --without-python --prefix=$ROOT/lib/libxml2-static \ |
| 376 |
&& make \ |
| 377 |
&& make install |
| 378 |
|
| 379 |
- name: Install Redland Raptor |
| 380 |
run: | |
| 381 |
ROOT="$(pwd)" |
| 382 |
# download, build and install raptor |
| 383 |
echo 'export PATH="/usr/local/opt/bison/bin:$PATH"' >> /Users/runner/.bash_profile |
| 384 |
cd $ROOT/src \ |
| 385 |
&& wget http://download.librdf.org/source/raptor2-2.0.15.tar.gz \ |
| 386 |
&& tar -xvzf raptor2-2.0.15.tar.gz \ |
| 387 |
&& mv raptor2-2.0.15 raptor2-static \ |
| 388 |
&& cd raptor2-static \ |
| 389 |
&& export LIBS="-L$ROOT/lib/libxml2-static/lib -lxml2" \ |
| 390 |
&& export LIBXML_LIBS="-L$ROOT/lib/libxml2-static/lib -lxml2" \ |
| 391 |
&& export LIBXML_LIBS="$ROOT/lib/libxml2-static/libxml2.a" \ |
| 392 |
&& ./configure --prefix=$ROOT/lib/raptor2-static --with-xml2-config=$ROOT/lib/libxml2-static/bin/xml2-config \ |
| 393 |
&& make \ |
| 394 |
&& make install |
| 395 |
|
| 396 |
- name: Install Redland Rasqal |
| 397 |
run: | |
| 398 |
ROOT="$(pwd)" |
| 399 |
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> /Users/runner/.bash_profile |
| 400 |
source ~/.bash_profile |
| 401 |
bison --version |
| 402 |
# download, build and install rasqal |
| 403 |
cd $ROOT/src \ |
| 404 |
&& git clone git://github.com/konclude/rasqal.git \ |
| 405 |
&& mv rasqal rasqal-static \ |
| 406 |
&& cd rasqal-static \ |
| 407 |
\ |
| 408 |
&& export RAPTOR2_CFLAGS="-I $ROOT/lib/raptor2-static/include/raptor2" \ |
| 409 |
&& export RAPTOR2_LIBS="-L$ROOT/lib/raptor2-static/lib -lraptor2 -L$ROOT/lib/libxml2-static/lib -lxml2 -lm -ldl" \ |
| 410 |
&& export RAPTOR_VERSION=2.0.15 \ |
| 411 |
&& sed -i -e 's#RAPTOR_VERSION=`$PKG_CONFIG raptor2 --modversion 2>/dev/null`#if test -n "$RAPTOR_VERSION"; then echo "Assuming raptor version $RAPTOR_VERSION"; else RAPTOR_VERSION=`$PKG_CONFIG raptor2 --modversion 2>/dev/null`; fi#g' configure.ac \ |
| 412 |
&& git log --oneline | grep -q 0c42ebc \ |
| 413 |
\ |
| 414 |
&& ./autogen.sh --prefix=$ROOT/lib/rasqal-static --disable-gtk-doc \ |
| 415 |
&& ls \ |
| 416 |
&& make \ |
| 417 |
&& make install |
| 418 |
|
| 419 |
- name: Install Redland RDFlib |
| 420 |
run: | |
| 421 |
ROOT="$(pwd)" |
| 422 |
# download, build and install redland rdflib |
| 423 |
cd $ROOT \ |
| 424 |
&& wget http://download.librdf.org/source/redland-1.0.17.tar.gz \ |
| 425 |
&& tar -xvzf redland-1.0.17.tar.gz \ |
| 426 |
&& mv redland-1.0.17 redland-static \ |
| 427 |
&& cd redland-static \ |
| 428 |
\ |
| 429 |
&& export RAPTOR2_CFLAGS="-I $ROOT/lib/raptor2-static/include/raptor2" \ |
| 430 |
&& export RAPTOR2_LIBS="-L$ROOT/lib/raptor2-static/lib -lraptor2 -L$ROOT/lib/libxml2-static/lib -lxml2 -lm -ldl" \ |
| 431 |
&& export RAPTOR_VERSION=2.0.15 \ |
| 432 |
&& sed -i -e 's#RAPTOR_VERSION=`$PKG_CONFIG raptor2 --modversion 2>/dev/null`#if test -n "$RAPTOR_VERSION"; then echo "Assuming raptor version $RAPTOR_VERSION"; else RAPTOR_VERSION=`$PKG_CONFIG raptor2 --modversion 2>/dev/null`; fi#g' configure \ |
| 433 |
\ |
| 434 |
&& export RASQAL_CFLAGS="-I $ROOT/lib/rasqal-static/include/rasqal" \ |
| 435 |
&& export RASQAL_LIBS="-L$ROOT/lib/rasqal-static/lib -lrasqal -L$ROOT/lib/raptor-static/lib -lraptor2 -L$ROOT/lib/libxml2-static/lib -lxml2 -lm -ldl -lm" \ |
| 436 |
&& export RASQAL_VERSION=0.9.33 \ |
| 437 |
&& sed -i -e 's#RASQAL_VERSION=`$PKG_CONFIG rasqal --modversion 2>/dev/null`#if test -n "$RASQAL_VERSION"; then echo "Assuming rasqal version $RASQAL_VERSION"; else RASQAL_VERSION=`$PKG_CONFIG rasqal --modversion 2>/dev/null`; fi#g' configure \ |
| 438 |
\ |
| 439 |
&& ./configure --prefix=$ROOT/lib/redland-static \ |
| 440 |
&& sed -i -e 's#librdf_storage_virtuoso_la_LIBADD = -lodbc librdf.la -lrasqal#librdf_storage_virtuoso_la_LIBADD = -lodbc librdf.la#g' src/Makefile \ |
| 441 |
&& make \ |
| 442 |
&& make install |
| 443 |
|
| 444 |
|
| 445 |
|
| 446 |
|
| 447 |
- name: Install Jemalloc |
| 448 |
run: | |
| 449 |
ROOT="$(pwd)" |
| 450 |
wget https://github.com/jemalloc/jemalloc/releases/download/5.2.1/jemalloc-5.2.1.tar.bz2 |
| 451 |
tar -xjf jemalloc-5.2.1.tar.bz2 |
| 452 |
mv jemalloc-5.2.1 jemalloc-static |
| 453 |
cd jemalloc-static |
| 454 |
./configure --prefix=$ROOT/lib/jemalloc-static |
| 455 |
make |
| 456 |
make install |
| 457 |
|
| 458 |
|
| 459 |
- name: Download Qt |
| 460 |
run: | |
| 461 |
ROOT="$(pwd)" |
| 462 |
# download, build and install qt |
| 463 |
cd $ROOT/src \ |
| 464 |
&& wget -q https://download.qt.io/official_releases/qt/${{ matrix.config.qt_major }}/${{ matrix.config.qt }}/single/qt-everywhere-src-${{ matrix.config.qt }}.tar.xz \ |
| 465 |
&& tar -xJf qt-everywhere-src-${{ matrix.config.qt }}.tar.xz \ |
| 466 |
&& mv qt-everywhere-src-${{ matrix.config.qt }} qt-static |
| 467 |
|
| 468 |
- name: Prepare Qt |
| 469 |
run: | |
| 470 |
ROOT="$(pwd)" |
| 471 |
cd $ROOT/src/qt-static \ |
| 472 |
&& export MAKE=/usr/bin/make \ |
| 473 |
&& ./configure -static -prefix $ROOT/qt-static -extprefix $ROOT/lib/qt-static -no-opengl -nomake examples -nomake tests -nomake tools -skip webview -skip webchannel -skip 3d -skip script -skip webengine -opensource -platform macx-clang -no-icu -confirm-license -opensource |
| 474 |
|
| 475 |
|
| 476 |
- name: Cache Qt Compilation |
| 477 |
uses: actions/cache@v2 |
| 478 |
env: |
| 479 |
cache-name: cache-qt-compilation |
| 480 |
with: |
| 481 |
path: src/qt-static |
| 482 |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.config.qt }}-${{ hashFiles('src/qt-static/**/makefile') }} |
| 483 |
|
| 484 |
- name: Compile Qt |
| 485 |
run: | |
| 486 |
ROOT="$(pwd)" |
| 487 |
cd $ROOT/src/qt-static |
| 488 |
make |
| 489 |
|
| 490 |
- name: Install Qt |
| 491 |
run: | |
| 492 |
ROOT="$(pwd)" |
| 493 |
cd $ROOT/src/qt-static \ |
| 494 |
&& make install |
| 495 |
|
| 496 |
|
| 497 |
- name: Prepare Konclude Sources |
| 498 |
run: | |
| 499 |
ROOT="$(pwd)" |
| 500 |
# remove intermediate files (to ensure a clean build later) |
| 501 |
cd $ROOT \ |
| 502 |
&& rm -rf konclude-static/Release \ |
| 503 |
&& rm -rf konclude-static/release \ |
| 504 |
&& rm -rf konclude-static/GeneratedFiles |
| 505 |
|
| 506 |
mkdir -p $ROOT/konclude-static/External/librdf/Linux/x64/lib/release |
| 507 |
mkdir -p $ROOT/konclude-static/External/jemalloc/Linux/x64/lib/release |
| 508 |
cp $ROOT/lib/libxml2-static/lib/libxml2.a $ROOT/konclude-static/External/librdf/Linux/x64/lib/release/libxml2.a \ |
| 509 |
&& cp $ROOT/lib/raptor2-static/lib/libraptor2.a $ROOT/konclude-static/External/librdf/Linux/x64/lib/release/libraptor2.a \ |
| 510 |
&& cp $ROOT/lib/rasqal-static/lib/librasqal.a $ROOT/konclude-static/External/librdf/Linux/x64/lib/release/librasqal.a \ |
| 511 |
&& cp $ROOT/lib/redland-static/lib/librdf.a $ROOT/konclude-static/External/librdf/Linux/x64/lib/release/librdf.a \ |
| 512 |
&& cp $ROOT/lib/jemalloc-static/lib/libjemalloc.a $ROOT/konclude-static/External/jemalloc/Linux/x64/lib/release/libjemalloc.a |
| 513 |
|
| 514 |
|
| 515 |
- name: Prepare Konclude Compilation |
| 516 |
run: | |
| 517 |
ROOT="$(pwd)" |
| 518 |
BUILD_DIR=$ROOT/konclude-static |
| 519 |
cd $BUILD_DIR |
| 520 |
export PATH=$ROOT/lib/qt-static/bin:$PATH |
| 521 |
export QTDIR=$ROOT/lib/qt-static |
| 522 |
export QTINC=$ROOT/lib/qt-static/include |
| 523 |
export QTLIB=$ROOT/lib/qt-static/lib |
| 524 |
sed -i -e 's#unix: LIBS += -lz -lltdl -lgmp -ldl -L External/jemalloc/Linux/x64/lib/release/ -ljemalloc#unix:macx: LIBS += -lz -ldl /usr/local/opt/xz/lib/liblzma.a -lcurl -lxslt -L/usr/local/lib /usr/local/lib/../Cellar/libgcrypt/1.9.3/lib/libgcrypt.a /usr/local/lib/libmpfr.a /usr/local/opt/gmp/lib/libgmp.a /usr/local/opt/libgpg-error/lib/libgpg-error.a /usr/local/opt/libtool/lib/libltdl.a /usr/local/opt/pcre/lib/libpcre.a -liconv External/jemalloc/Linux/x64/lib/release/libjemalloc.a#g' Konclude.pro |
| 525 |
qmake -r CONFIG+=release CONFIG+=x86_64 CONFIG-=debug CONFIG+=static -spec $ROOT/lib/qt-static/mkspecs/macx-clang Konclude.pro |
| 526 |
|
| 527 |
|
| 528 |
- uses: actions/upload-artifact@v2 |
| 529 |
with: |
| 530 |
name: Konclude MacOS Sources |
| 531 |
path: konclude-static |
| 532 |
|
| 533 |
- name: Compile Konclude |
| 534 |
run: | |
| 535 |
ROOT="$(pwd)" |
| 536 |
BUILD_DIR=$ROOT/konclude-static |
| 537 |
cd $BUILD_DIR |
| 538 |
make |
| 539 |
otool -L ./Release/Konclude.app/Contents/MacOS/Konclude |
| 540 |
./Release/Konclude.app/Contents/MacOS/Konclude owllinkfile -c Configs/default-config.xml -v -e -r Tests/Test-response.xml -q Tests/galen-ALEHIF+-classify-request.xml -w 1 |
| 541 |
|
| 542 |
- uses: actions/upload-artifact@v2 |
| 543 |
with: |
| 544 |
name: Konclude MacOS Compilation |
| 545 |
path: konclude-static |
| 546 |
|
| 547 |
|
| 548 |
- name: Create Konclude Release |
| 549 |
run: | |
| 550 |
ROOT="$(pwd)" |
| 551 |
mkdir Release |
| 552 |
|
| 553 |
BUILD_DIR=$ROOT/konclude-static |
| 554 |
PROJ=$ROOT/konclude-static |
| 555 |
RELEA="$ROOT/Release/Konclude-${{needs.tags.outputs.git_tag}}-OSX-x64-Clang-Static-Qt${{ matrix.config.qt }}" |
| 556 |
|
| 557 |
mkdir $RELEA |
| 558 |
mkdir "$RELEA/Configs" |
| 559 |
mkdir "$RELEA/Tests" |
| 560 |
mkdir "$RELEA/Binaries" |
| 561 |
|
| 562 |
cd $BUILD_DIR |
| 563 |
cp "$BUILD_DIR/Release/Konclude.app/Contents/MacOS/Konclude" "$RELEA/Binaries" |
| 564 |
|
| 565 |
cp "$PROJ/LGPL-3.0.txt" "$RELEA" |
| 566 |
cp "$PROJ/GPL.txt" "$RELEA" |
| 567 |
cp "$PROJ/Readme.md" "$RELEA" |
| 568 |
cp "$PROJ/Tests/1b-satisfiability-request.xml" "$RELEA/Tests" |
| 569 |
cp "$PROJ/Tests/galen.owl.xml" "$RELEA/Tests" |
| 570 |
cp "$PROJ/Tests/galen-classify-request.xml" "$RELEA/Tests" |
| 571 |
cp "$PROJ/Tests/galen-ALEHIF+-classify-request.xml" "$RELEA/Tests" |
| 572 |
cp "$PROJ/Tests/roberts-family-full-D.owl.xml" "$RELEA/Tests" |
| 573 |
cp "$PROJ/Tests/roberts-family-full-D-classify-realize-request.xml" "$RELEA/Tests" |
| 574 |
cp "$PROJ/Tests/lubm-univ-bench.owl.xml" "$RELEA/Tests" |
| 575 |
cp "$PROJ/Tests/lubm-univ-bench-data-1.ttl" "$RELEA/Tests" |
| 576 |
cp "$PROJ/Tests/lubm-univ-bench-sparql-load-and-query-test.sparql" "$RELEA/Tests" |
| 577 |
cp "$PROJ/Tests/lubm-univ-bench-sparql-load-and-complex-query-rasqal-test.sparql" "$RELEA/Tests" |
| 578 |
cp "$PROJ/Tests/roberts-family-full-sparql-existential-variables-query-test.sparql" "$RELEA/Tests" |
| 579 |
cp "$PROJ/Tests/test-request.xml" "$RELEA/Tests" |
| 580 |
cp "$PROJ/Scripts/Konclude" "$RELEA" |
| 581 |
cp "$PROJ/Scripts/Konclude.sh" "$RELEA" |
| 582 |
cp "$PROJ/Configs/default-config.xml" "$RELEA/Configs" |
| 583 |
cp "$PROJ/Configs/querying-config.xml" "$RELEA/Configs" |
| 584 |
|
| 585 |
chmod 777 $RELEA/Binaries/Konclude |
| 586 |
chmod 777 $RELEA/Konclude |
| 587 |
chmod 777 $RELEA/Konclude.sh |
| 588 |
|
| 589 |
|
| 590 |
- uses: actions/upload-artifact@v2 |
| 591 |
with: |
| 592 |
name: Konclude MacOS Prepared Release Directory |
| 593 |
path: Release/Konclude-${{needs.tags.outputs.git_tag}}-OSX-x64-Clang-Static-Qt${{ matrix.config.qt }} |
| 594 |
|
| 595 |
|
| 596 |
- name: Zip the asset into a zip file |
| 597 |
id: zip_asset |
| 598 |
run: | |
| 599 |
cd Release |
| 600 |
7z a -tzip Konclude-${{needs.tags.outputs.git_tag}}-OSX-x64-Clang-Static-Qt${{ matrix.config.qt }}.zip Konclude-${{needs.tags.outputs.git_tag}}-OSX-x64-Clang-Static-Qt${{ matrix.config.qt }}* |
| 601 |
|
| 602 |
|
| 603 |
- name: Konclude Examples Test |
| 604 |
run: | |
| 605 |
ROOT="$(pwd)" |
| 606 |
cd Release/Konclude-${{needs.tags.outputs.git_tag}}-OSX-x64-Clang-Static-Qt${{ matrix.config.qt }} |
| 607 |
|
| 608 |
./Konclude classification -i Tests/roberts-family-full-D.owl.xml -o roberts-family-full-class-hierarchy.owl.xml |
| 609 |
./Konclude satisfiability -i Tests/roberts-family-full-D.owl.xml -x http://www.co-ode.org/roberts/family-tree.owl#Aunt |
| 610 |
./Konclude owllinkfile -i Tests/galen-classify-request.xml -o response.xml |
| 611 |
./Konclude owllinkfile -i Tests/roberts-family-full-D-classify-realize-request.xml |
| 612 |
./Konclude owllinkfile -c Configs/default-config.xml -i Tests/1b-satisfiability-request.xml |
| 613 |
./Konclude sparqlfile -s Tests/lubm-univ-bench-sparql-load-and-query-test.sparql -o Tests/query-answers.xml -c Configs/querying-config.xml |
| 614 |
./Konclude sparqlfile -s Tests/roberts-family-full-sparql-existential-variables-query-test.sparql -i Tests/roberts-family-full-D.owl.xml |
| 615 |
|
| 616 |
|
| 617 |
- name: Upload release assets |
| 618 |
id: upload_assets |
| 619 |
uses: actions/upload-release-asset@v1 |
| 620 |
env: |
| 621 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 622 |
with: |
| 623 |
upload_url: ${{ needs.release.outputs.upload_url }} |
| 624 |
asset_path: Release/Konclude-${{needs.tags.outputs.git_tag}}-OSX-x64-Clang-Static-Qt${{ matrix.config.qt }}.zip |
| 625 |
asset_name: Konclude-${{needs.tags.outputs.git_tag}}-OSX-x64-Clang-Static-Qt${{ matrix.config.qt }}.zip |
| 626 |
asset_content_type: application/octet-stream |
| 627 |
|
| 628 |
|
| 629 |
|
| 630 |
|
| 631 |
|
| 632 |
|
| 633 |
|
| 634 |
|
| 635 |
|
| 636 |
|
| 637 |
|
| 638 |
|
| 639 |
|
| 640 |
|
| 641 |
|
| 642 |
|
| 643 |
|
| 644 |
prebuild_qt_linux: |
| 645 |
name: ${{ matrix.config.name }} |
| 646 |
runs-on: ${{ matrix.config.os }} |
| 647 |
timeout-minutes: 600 |
| 648 |
needs: [release, tags] |
| 649 |
strategy: |
| 650 |
fail-fast: false |
| 651 |
matrix: |
| 652 |
config: |
| 653 |
- { |
| 654 |
name: "Ubuntu 16.04 GCC Qt Prebuild", |
| 655 |
os: ubuntu-16.04, |
| 656 |
build_type: "Release", |
| 657 |
cc: "gcc", |
| 658 |
cxx: "g++", |
| 659 |
qt: 5.12.10, |
| 660 |
qt_major: 5.12 |
| 661 |
} |
| 662 |
|
| 663 |
|
| 664 |
steps: |
| 665 |
|
| 666 |
- name: Checkout Konclude code |
| 667 |
uses: actions/checkout@v2 |
| 668 |
with: |
| 669 |
path: "konclude-static" |
| 670 |
|
| 671 |
- name: Install Dependencies |
| 672 |
run: | |
| 673 |
sudo apt-get install -y \ |
| 674 |
apt-utils \ |
| 675 |
git \ |
| 676 |
build-essential \ |
| 677 |
make \ |
| 678 |
wget \ |
| 679 |
xz-utils \ |
| 680 |
python \ |
| 681 |
flex \ |
| 682 |
bison \ |
| 683 |
gperf \ |
| 684 |
python-dev \ |
| 685 |
autotools-dev \ |
| 686 |
automake \ |
| 687 |
autoconf \ |
| 688 |
libtool \ |
| 689 |
gtk-doc-tools \ |
| 690 |
libgmp3-dev \ |
| 691 |
zlib1g-dev \ |
| 692 |
libxcb-xfixes0-dev \ |
| 693 |
liblzma-dev \ |
| 694 |
libpcre3-dev \ |
| 695 |
libjasper1 \ |
| 696 |
libjasper-dev |
| 697 |
|
| 698 |
- name: Prepare Environment |
| 699 |
run: | |
| 700 |
ROOT="$(pwd)" |
| 701 |
mkdir src |
| 702 |
mkdir lib |
| 703 |
|
| 704 |
- name: Download Qt |
| 705 |
run: | |
| 706 |
ROOT="$(pwd)" |
| 707 |
# download, build and install qt |
| 708 |
cd $ROOT/src \ |
| 709 |
&& wget -q https://download.qt.io/official_releases/qt/${{ matrix.config.qt_major }}/${{ matrix.config.qt }}/single/qt-everywhere-src-${{ matrix.config.qt }}.tar.xz \ |
| 710 |
&& tar -xJf qt-everywhere-src-${{ matrix.config.qt }}.tar.xz \ |
| 711 |
&& mv qt-everywhere-src-${{ matrix.config.qt }} qt-static |
| 712 |
|
| 713 |
|
| 714 |
- name: Prepare Qt |
| 715 |
run: | |
| 716 |
ROOT="$(pwd)" |
| 717 |
cd $ROOT/src/qt-static \ |
| 718 |
&& export MAKE=/usr/bin/make \ |
| 719 |
&& ./configure -static -prefix $ROOT/qt-static -extprefix $ROOT/lib/qt-static -no-opengl -nomake examples -nomake tests -nomake tools -skip webview -skip webchannel -skip 3d -skip script -skip webengine -opensource -platform linux-g++-64 -no-icu -no-jasper -no-libpng -no-libjpeg -no-tiff -qt-pcre -confirm-license -opensource |
| 720 |
|
| 721 |
|
| 722 |
- name: Cache Qt Compilation |
| 723 |
uses: actions/cache@v2 |
| 724 |
env: |
| 725 |
cache-name: cache-qt-compilation |
| 726 |
with: |
| 727 |
path: src/qt-static |
| 728 |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.config.qt }}-${{ hashFiles('src/qt-static/**/makefile') }} |
| 729 |
|
| 730 |
|
| 731 |
- name: Compile Qt |
| 732 |
run: | |
| 733 |
ROOT="$(pwd)" |
| 734 |
cd $ROOT/src/qt-static |
| 735 |
make |
| 736 |
|
| 737 |
build_linux: |
| 738 |
name: ${{ matrix.config.name }} |
| 739 |
runs-on: ${{ matrix.config.os }} |
| 740 |
timeout-minutes: 600 |
| 741 |
needs: [prebuild_qt_linux, release, tags] |
| 742 |
strategy: |
| 743 |
fail-fast: false |
| 744 |
matrix: |
| 745 |
config: |
| 746 |
- { |
| 747 |
name: "Ubuntu 16.04 GCC Static", |
| 748 |
os: ubuntu-16.04, |
| 749 |
build_type: "Release", |
| 750 |
cc: "gcc", |
| 751 |
cxx: "g++", |
| 752 |
qt: 5.12.10, |
| 753 |
qt_major: 5.12 |
| 754 |
} |
| 755 |
|
| 756 |
|
| 757 |
steps: |
| 758 |
|
| 759 |
- name: Checkout Konclude code |
| 760 |
uses: actions/checkout@v2 |
| 761 |
with: |
| 762 |
path: "konclude-static" |
| 763 |
|
| 764 |
|
| 765 |
- name: Update Revision Information |
| 766 |
run: | |
| 767 |
echo "#define KONCLUDE_VERSION_GIT_REVISION_NUMBER ${{needs.tags.outputs.revision_build}}" > "konclude-static/revision-git.h" |
| 768 |
echo "#define KONCLUDE_VERSION_GIT_TAG_NAME_STRING \"${{needs.tags.outputs.revision_tag}}\"" >> "konclude-static/revision-git.h" |
| 769 |
echo "#define KONCLUDE_VERSION_GIT_REVISION_HASH_STRING \"${{needs.tags.outputs.revision_hash}}\"" >> "konclude-static/revision-git.h" |
| 770 |
|
| 771 |
|
| 772 |
- name: Install Dependencies |
| 773 |
run: | |
| 774 |
sudo apt-get install -y \ |
| 775 |
apt-utils \ |
| 776 |
git \ |
| 777 |
build-essential \ |
| 778 |
make \ |
| 779 |
wget \ |
| 780 |
xz-utils \ |
| 781 |
python \ |
| 782 |
flex \ |
| 783 |
gperf \ |
| 784 |
python-dev \ |
| 785 |
autotools-dev \ |
| 786 |
automake \ |
| 787 |
autoconf \ |
| 788 |
libtool \ |
| 789 |
gtk-doc-tools \ |
| 790 |
libgmp3-dev \ |
| 791 |
zlib1g-dev \ |
| 792 |
libxcb-xfixes0-dev \ |
| 793 |
liblzma-dev \ |
| 794 |
libpcre3-dev \ |
| 795 |
libjasper1 \ |
| 796 |
libjasper-dev |
| 797 |
|
| 798 |
- name: Prepare Environment |
| 799 |
run: | |
| 800 |
ROOT="$(pwd)" |
| 801 |
mkdir src |
| 802 |
mkdir lib |
| 803 |
|
| 804 |
- name: Update bison |
| 805 |
run: | |
| 806 |
ROOT="$(pwd)" |
| 807 |
sudo apt-get remove bison |
| 808 |
wget http://ftp.gnu.org/gnu/bison/bison-3.7.6.tar.gz |
| 809 |
tar -zxvf bison-3.7.6.tar.gz |
| 810 |
cd bison-3.7.6 |
| 811 |
./configure |
| 812 |
make |
| 813 |
sudo make install |
| 814 |
bison -V |
| 815 |
|
| 816 |
- name: Install Libxml2 |
| 817 |
run: | |
| 818 |
ROOT="$(pwd)" |
| 819 |
# download, build and install libxml2 |
| 820 |
cd $ROOT/src \ |
| 821 |
&& wget ftp://xmlsoft.org/libxml2/libxml2-2.9.9.tar.gz \ |
| 822 |
&& tar -xvzf libxml2-2.9.9.tar.gz \ |
| 823 |
&& mv libxml2-2.9.9 libxml2-static \ |
| 824 |
&& cd libxml2-static \ |
| 825 |
&& ./configure --without-python --prefix=$ROOT/lib/libxml2-static \ |
| 826 |
&& make \ |
| 827 |
&& make install |
| 828 |
|
| 829 |
- name: Install Redland Raptor |
| 830 |
run: | |
| 831 |
ROOT="$(pwd)" |
| 832 |
# download, build and install raptor |
| 833 |
cd $ROOT/src \ |
| 834 |
&& wget http://download.librdf.org/source/raptor2-2.0.15.tar.gz \ |
| 835 |
&& tar -xvzf raptor2-2.0.15.tar.gz \ |
| 836 |
&& mv raptor2-2.0.15 raptor2-static \ |
| 837 |
&& cd raptor2-static \ |
| 838 |
&& export LIBS="-L$ROOT/lib/libxml2-static/lib -lxml2" \ |
| 839 |
&& export LIBXML_LIBS="-L$ROOT/lib/libxml2-static/lib -lxml2" \ |
| 840 |
&& export LIBXML_LIBS="$ROOT/lib/libxml2-static/libxml2.a" \ |
| 841 |
&& ./configure --prefix=$ROOT/lib/raptor2-static --with-xml2-config=$ROOT/lib/libxml2-static/bin/xml2-config \ |
| 842 |
&& make \ |
| 843 |
&& make install |
| 844 |
|
| 845 |
- name: Install Redland Rasqal |
| 846 |
run: | |
| 847 |
ROOT="$(pwd)" |
| 848 |
# download, build and install rasqal |
| 849 |
cd $ROOT/src \ |
| 850 |
&& git clone git://github.com/konclude/rasqal.git \ |
| 851 |
&& mv rasqal rasqal-static \ |
| 852 |
&& cd rasqal-static \ |
| 853 |
\ |
| 854 |
&& export RAPTOR2_CFLAGS="-I $ROOT/lib/raptor2-static/include/raptor2" \ |
| 855 |
&& export RAPTOR2_LIBS="-L$ROOT/lib/raptor2-static/lib -lraptor2 -L$ROOT/lib/libxml2-static/lib -lxml2 -lm -ldl" \ |
| 856 |
&& export RAPTOR_VERSION=2.0.15 \ |
| 857 |
&& sed -i -e 's#RAPTOR_VERSION=`$PKG_CONFIG raptor2 --modversion 2>/dev/null`#if test -n "$RAPTOR_VERSION"; then echo "Assuming raptor version $RAPTOR_VERSION"; else RAPTOR_VERSION=`$PKG_CONFIG raptor2 --modversion 2>/dev/null`; fi#g' configure.ac \ |
| 858 |
&& git log --oneline | grep -q 0c42ebc \ |
| 859 |
\ |
| 860 |
&& ./autogen.sh --prefix=$ROOT/lib/rasqal-static \ |
| 861 |
&& make \ |
| 862 |
&& make install |
| 863 |
|
| 864 |
- name: Install Redland RDFlib |
| 865 |
run: | |
| 866 |
ROOT="$(pwd)" |
| 867 |
# download, build and install redland rdflib |
| 868 |
cd $ROOT \ |
| 869 |
&& wget http://download.librdf.org/source/redland-1.0.17.tar.gz \ |
| 870 |
&& tar -xvzf redland-1.0.17.tar.gz \ |
| 871 |
&& mv redland-1.0.17 redland-static \ |
| 872 |
&& cd redland-static \ |
| 873 |
\ |
| 874 |
&& export RAPTOR2_CFLAGS="-I $ROOT/lib/raptor2-static/include/raptor2" \ |
| 875 |
&& export RAPTOR2_LIBS="-L$ROOT/lib/raptor2-static/lib -lraptor2 -L$ROOT/lib/libxml2-static/lib -lxml2 -lm -ldl" \ |
| 876 |
&& export RAPTOR_VERSION=2.0.15 \ |
| 877 |
&& sed -i -e 's#RAPTOR_VERSION=`$PKG_CONFIG raptor2 --modversion 2>/dev/null`#if test -n "$RAPTOR_VERSION"; then echo "Assuming raptor version $RAPTOR_VERSION"; else RAPTOR_VERSION=`$PKG_CONFIG raptor2 --modversion 2>/dev/null`; fi#g' configure \ |
| 878 |
\ |
| 879 |
&& export RASQAL_CFLAGS="-I $ROOT/lib/rasqal-static/include/rasqal" \ |
| 880 |
&& export RASQAL_LIBS="-L$ROOT/lib/rasqal-static/lib -lrasqal -L$ROOT/lib/raptor-static/lib -lraptor2 -L$ROOT/lib/libxml2-static/lib -lxml2 -lm -ldl -lm" \ |
| 881 |
&& export RASQAL_VERSION=0.9.33 \ |
| 882 |
&& sed -i -e 's#RASQAL_VERSION=`$PKG_CONFIG rasqal --modversion 2>/dev/null`#if test -n "$RASQAL_VERSION"; then echo "Assuming rasqal version $RASQAL_VERSION"; else RASQAL_VERSION=`$PKG_CONFIG rasqal --modversion 2>/dev/null`; fi#g' configure \ |
| 883 |
\ |
| 884 |
&& ./configure --prefix=$ROOT/lib/redland-static \ |
| 885 |
&& sed -i -e 's#librdf_storage_virtuoso_la_LIBADD = -lodbc librdf.la -lrasqal#librdf_storage_virtuoso_la_LIBADD = -lodbc librdf.la#g' src/Makefile \ |
| 886 |
&& make \ |
| 887 |
&& make install |
| 888 |
|
| 889 |
|
| 890 |
|
| 891 |
- name: Install Jemalloc |
| 892 |
run: | |
| 893 |
ROOT="$(pwd)" |
| 894 |
wget https://github.com/jemalloc/jemalloc/releases/download/5.2.1/jemalloc-5.2.1.tar.bz2 |
| 895 |
tar -xjf jemalloc-5.2.1.tar.bz2 |
| 896 |
mv jemalloc-5.2.1 jemalloc-static |
| 897 |
cd jemalloc-static |
| 898 |
./configure --prefix=$ROOT/lib/jemalloc-static |
| 899 |
make |
| 900 |
make install |
| 901 |
|
| 902 |
- name: Download Qt |
| 903 |
run: | |
| 904 |
ROOT="$(pwd)" |
| 905 |
# download, build and install qt |
| 906 |
cd $ROOT/src \ |
| 907 |
&& wget -q https://download.qt.io/official_releases/qt/${{ matrix.config.qt_major }}/${{ matrix.config.qt }}/single/qt-everywhere-src-${{ matrix.config.qt }}.tar.xz \ |
| 908 |
&& tar -xJf qt-everywhere-src-${{ matrix.config.qt }}.tar.xz \ |
| 909 |
&& mv qt-everywhere-src-${{ matrix.config.qt }} qt-static |
| 910 |
|
| 911 |
|
| 912 |
- name: Prepare Qt |
| 913 |
run: | |
| 914 |
ROOT="$(pwd)" |
| 915 |
cd $ROOT/src/qt-static \ |
| 916 |
&& export MAKE=/usr/bin/make \ |
| 917 |
&& ./configure -static -prefix $ROOT/qt-static -extprefix $ROOT/lib/qt-static -no-opengl -nomake examples -nomake tests -nomake tools -skip webview -skip webchannel -skip 3d -skip script -skip webengine -opensource -platform linux-g++-64 -no-icu -no-jasper -no-libpng -no-libjpeg -no-tiff -qt-pcre -confirm-license -opensource |
| 918 |
|
| 919 |
|
| 920 |
- name: Cache Qt Compilation |
| 921 |
uses: actions/cache@v2 |
| 922 |
env: |
| 923 |
cache-name: cache-qt-compilation |
| 924 |
with: |
| 925 |
path: src/qt-static |
| 926 |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.config.qt }}-${{ hashFiles('src/qt-static/**/makefile') }} |
| 927 |
|
| 928 |
|
| 929 |
- name: Compile Qt |
| 930 |
run: | |
| 931 |
ROOT="$(pwd)" |
| 932 |
cd $ROOT/src/qt-static |
| 933 |
make |
| 934 |
|
| 935 |
|
| 936 |
- name: Install Qt |
| 937 |
run: | |
| 938 |
ROOT="$(pwd)" |
| 939 |
cd $ROOT/src/qt-static \ |
| 940 |
&& make install |
| 941 |
|
| 942 |
|
| 943 |
- name: Prepare Konclude Sources |
| 944 |
run: | |
| 945 |
ROOT="$(pwd)" |
| 946 |
# remove intermediate files (to ensure a clean build later) |
| 947 |
cd $ROOT \ |
| 948 |
&& rm -rf konclude-static/Release \ |
| 949 |
&& rm -rf konclude-static/release \ |
| 950 |
&& rm -rf konclude-static/GeneratedFiles |
| 951 |
|
| 952 |
mkdir -p $ROOT/konclude-static/External/librdf/Linux/x64/lib/release |
| 953 |
mkdir -p $ROOT/konclude-static/External/jemalloc/Linux/x64/lib/release |
| 954 |
cp $ROOT/lib/libxml2-static/lib/libxml2.a $ROOT/konclude-static/External/librdf/Linux/x64/lib/release/libxml2.a |
| 955 |
cp $ROOT/lib/raptor2-static/lib/libraptor2.a $ROOT/konclude-static/External/librdf/Linux/x64/lib/release/libraptor2.a |
| 956 |
cp $ROOT/lib/rasqal-static/lib/librasqal.a $ROOT/konclude-static/External/librdf/Linux/x64/lib/release/librasqal.a |
| 957 |
cp $ROOT/lib/redland-static/lib/librdf.a $ROOT/konclude-static/External/librdf/Linux/x64/lib/release/librdf.a |
| 958 |
cp $ROOT/lib/jemalloc-static/lib/libjemalloc.a $ROOT/konclude-static/External/jemalloc/Linux/x64/lib/release/libjemalloc.a |
| 959 |
|
| 960 |
|
| 961 |
- name: Prepare Konclude Compilation |
| 962 |
run: | |
| 963 |
ROOT="$(pwd)" |
| 964 |
BUILD_DIR=$ROOT/konclude-static |
| 965 |
cd $BUILD_DIR |
| 966 |
export PATH=$ROOT/lib/qt-static/bin:$PATH |
| 967 |
export QTDIR=$ROOT/lib/qt-static |
| 968 |
export QTINC=$ROOT/lib/qt-static/include |
| 969 |
export QTLIB=$ROOT/lib/qt-static/lib |
| 970 |
sed -i -e 's\unix: LIBS += -lz -lltdl -lgmp -ldl -L External/jemalloc/Linux/x64/lib/release/ -ljemalloc\unix:!macx: LIBS += -lz -ldl -llzma -lpcre /usr/lib/x86_64-linux-gnu/libgmp.a /usr/lib/x86_64-linux-gnu/libjasper.a /usr/lib/x86_64-linux-gnu/libltdl.a -L External/jemalloc/Linux/x64/lib/release/ -ljemalloc\g' Konclude.pro |
| 971 |
qmake -r CONFIG+=release CONFIG+=x86_64 CONFIG-=debug CONFIG+=static -spec $ROOT/lib/qt-static/mkspecs/linux-g++-64 Konclude.pro |
| 972 |
|
| 973 |
|
| 974 |
- uses: actions/upload-artifact@v2 |
| 975 |
with: |
| 976 |
name: Konclude Linux Sources |
| 977 |
path: konclude-static |
| 978 |
|
| 979 |
- name: Compile Konclude |
| 980 |
run: | |
| 981 |
ROOT="$(pwd)" |
| 982 |
BUILD_DIR=$ROOT/konclude-static |
| 983 |
cd $BUILD_DIR |
| 984 |
make |
| 985 |
ldd ./Release/Konclude |
| 986 |
./Release/Konclude owllinkfile -c Configs/default-config.xml -v -e -r Tests/Test-response.xml -q Tests/galen-ALEHIF+-classify-request.xml -w 1 |
| 987 |
|
| 988 |
|
| 989 |
- uses: actions/upload-artifact@v2 |
| 990 |
with: |
| 991 |
name: Konclude Linux Compilation |
| 992 |
path: konclude-static |
| 993 |
|
| 994 |
|
| 995 |
- name: Create Konclude Release |
| 996 |
run: | |
| 997 |
ROOT="$(pwd)" |
| 998 |
revisionCount="966" |
| 999 |
revisionTagName="v0.6.2" |
| 1000 |
revisionHashName="fa20b125" |
| 1001 |
mkdir Release |
| 1002 |
|
| 1003 |
BUILD_DIR=$ROOT/konclude-static |
| 1004 |
PROJ=$ROOT/konclude-static |
| 1005 |
RELEA="$ROOT/Release/Konclude-${{needs.tags.outputs.git_tag}}-Linux-x64-GCC-Static-Qt${{ matrix.config.qt }}" |
| 1006 |
|
| 1007 |
mkdir $RELEA |
| 1008 |
mkdir "$RELEA/Configs" |
| 1009 |
mkdir "$RELEA/Tests" |
| 1010 |
mkdir "$RELEA/Binaries" |
| 1011 |
|
| 1012 |
cd $BUILD_DIR |
| 1013 |
cp "$BUILD_DIR/Release/Konclude" "$RELEA/Binaries" |
| 1014 |
|
| 1015 |
cp "$PROJ/LGPL-3.0.txt" "$RELEA" |
| 1016 |
cp "$PROJ/GPL.txt" "$RELEA" |
| 1017 |
cp "$PROJ/Readme.md" "$RELEA" |
| 1018 |
cp "$PROJ/Tests/1b-satisfiability-request.xml" "$RELEA/Tests" |
| 1019 |
cp "$PROJ/Tests/galen.owl.xml" "$RELEA/Tests" |
| 1020 |
cp "$PROJ/Tests/galen-classify-request.xml" "$RELEA/Tests" |
| 1021 |
cp "$PROJ/Tests/galen-ALEHIF+-classify-request.xml" "$RELEA/Tests" |
| 1022 |
cp "$PROJ/Tests/roberts-family-full-D.owl.xml" "$RELEA/Tests" |
| 1023 |
cp "$PROJ/Tests/roberts-family-full-D-classify-realize-request.xml" "$RELEA/Tests" |
| 1024 |
cp "$PROJ/Tests/lubm-univ-bench.owl.xml" "$RELEA/Tests" |
| 1025 |
cp "$PROJ/Tests/lubm-univ-bench-data-1.ttl" "$RELEA/Tests" |
| 1026 |
cp "$PROJ/Tests/lubm-univ-bench-sparql-load-and-query-test.sparql" "$RELEA/Tests" |
| 1027 |
cp "$PROJ/Tests/lubm-univ-bench-sparql-load-and-complex-query-rasqal-test.sparql" "$RELEA/Tests" |
| 1028 |
cp "$PROJ/Tests/roberts-family-full-sparql-existential-variables-query-test.sparql" "$RELEA/Tests" |
| 1029 |
cp "$PROJ/Tests/test-request.xml" "$RELEA/Tests" |
| 1030 |
cp "$PROJ/Scripts/Konclude" "$RELEA" |
| 1031 |
cp "$PROJ/Scripts/Konclude.sh" "$RELEA" |
| 1032 |
cp "$PROJ/Configs/default-config.xml" "$RELEA/Configs" |
| 1033 |
cp "$PROJ/Configs/querying-config.xml" "$RELEA/Configs" |
| 1034 |
|
| 1035 |
chmod 777 $RELEA/Binaries/Konclude |
| 1036 |
chmod 777 $RELEA/Konclude |
| 1037 |
chmod 777 $RELEA/Konclude.sh |
| 1038 |
|
| 1039 |
- uses: actions/upload-artifact@v2 |
| 1040 |
with: |
| 1041 |
name: Konclude Linux Prepared Release Directory |
| 1042 |
path: Release/Konclude-${{needs.tags.outputs.git_tag}}-Linux-x64-GCC-Static-Qt${{ matrix.config.qt }} |
| 1043 |
|
| 1044 |
|
| 1045 |
|
| 1046 |
- name: Zip the asset into a zip file |
| 1047 |
id: zip_asset |
| 1048 |
run: | |
| 1049 |
cd Release |
| 1050 |
7z a -tzip Konclude-${{needs.tags.outputs.git_tag}}-Linux-x64-GCC-Static-Qt${{ matrix.config.qt }}.zip Konclude-${{needs.tags.outputs.git_tag}}-Linux-x64-GCC-Static-Qt${{ matrix.config.qt }}* |
| 1051 |
|
| 1052 |
|
| 1053 |
- name: Konclude Examples Test |
| 1054 |
run: | |
| 1055 |
ROOT="$(pwd)" |
| 1056 |
cd Release/Konclude-${{needs.tags.outputs.git_tag}}-Linux-x64-GCC-Static-Qt${{ matrix.config.qt }} |
| 1057 |
|
| 1058 |
./Konclude classification -i Tests/roberts-family-full-D.owl.xml -o roberts-family-full-class-hierarchy.owl.xml |
| 1059 |
./Konclude satisfiability -i Tests/roberts-family-full-D.owl.xml -x http://www.co-ode.org/roberts/family-tree.owl#Aunt |
| 1060 |
./Konclude owllinkfile -i Tests/galen-classify-request.xml -o response.xml |
| 1061 |
./Konclude owllinkfile -i Tests/roberts-family-full-D-classify-realize-request.xml |
| 1062 |
./Konclude owllinkfile -c Configs/default-config.xml -i Tests/1b-satisfiability-request.xml |
| 1063 |
./Konclude sparqlfile -s Tests/lubm-univ-bench-sparql-load-and-query-test.sparql -o Tests/query-answers.xml -c Configs/querying-config.xml |
| 1064 |
./Konclude sparqlfile -s Tests/roberts-family-full-sparql-existential-variables-query-test.sparql -i Tests/roberts-family-full-D.owl.xml |
| 1065 |
|
| 1066 |
|
| 1067 |
- name: Upload release assets |
| 1068 |
id: upload_assets |
| 1069 |
uses: actions/upload-release-asset@v1 |
| 1070 |
env: |
| 1071 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 1072 |
with: |
| 1073 |
upload_url: ${{ needs.release.outputs.upload_url }} |
| 1074 |
asset_path: Release/Konclude-${{needs.tags.outputs.git_tag}}-Linux-x64-GCC-Static-Qt${{ matrix.config.qt }}.zip |
| 1075 |
asset_name: Konclude-${{needs.tags.outputs.git_tag}}-Linux-x64-GCC-Static-Qt${{ matrix.config.qt }}.zip |
| 1076 |
asset_content_type: application/octet-stream |
| 1077 |
|
| 1078 |
|
| 1079 |
|
| 1080 |
|
| 1081 |
|
| 1082 |
|
| 1083 |
|
| 1084 |
|
| 1085 |
|
| 1086 |
|
| 1087 |
|
| 1088 |
prebuild_qt_docker: |
| 1089 |
name: ${{ matrix.config.name }} |
| 1090 |
runs-on: ${{ matrix.config.os }} |
| 1091 |
timeout-minutes: 600 |
| 1092 |
needs: [release, tags] |
| 1093 |
strategy: |
| 1094 |
fail-fast: false |
| 1095 |
matrix: |
| 1096 |
config: |
| 1097 |
- { |
| 1098 |
name: "Ubuntu Latest Docker Qt Prebuild", |
| 1099 |
os: ubuntu-latest, |
| 1100 |
build_type: "Release", |
| 1101 |
cc: "gcc", |
| 1102 |
cxx: "g++", |
| 1103 |
qt: 5.12.10, |
| 1104 |
qt_major: 5.12 |
| 1105 |
} |
| 1106 |
|
| 1107 |
|
| 1108 |
steps: |
| 1109 |
|
| 1110 |
|
| 1111 |
- name: Prepare Directories |
| 1112 |
run: | |
| 1113 |
mkdir Konclude |
| 1114 |
mkdir KoncludeDocker |
| 1115 |
|
| 1116 |
- name: Checkout Konclude code |
| 1117 |
uses: actions/checkout@v2 |
| 1118 |
with: |
| 1119 |
path: Konclude |
| 1120 |
|
| 1121 |
|
| 1122 |
- name: Checkout Konclude Docker |
| 1123 |
uses: actions/checkout@v2 |
| 1124 |
with: |
| 1125 |
repository: konclude/KoncludeDocker |
| 1126 |
path: KoncludeDocker |
| 1127 |
|
| 1128 |
|
| 1129 |
|
| 1130 |
- name: Cache Docker Konclude Run Image |
| 1131 |
uses: actions/cache@v2 |
| 1132 |
env: |
| 1133 |
cache-name: cache-konclude-docker-run-Image |
| 1134 |
with: |
| 1135 |
path: DockerCacheDirectory/KoncludeDockerRunImage.tar.gz |
| 1136 |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('KoncludeDocker/run/Dockerfile') }} |
| 1137 |
|
| 1138 |
|
| 1139 |
|
| 1140 |
- name: Build Run Image |
| 1141 |
working-directory: KoncludeDocker |
| 1142 |
run: | |
| 1143 |
mkdir -p ../DockerCacheDirectory |
| 1144 |
DOCKERIMAGE="koncluderun:latest" |
| 1145 |
FILEIMAGE="../DockerCacheDirectory/KoncludeDockerRunImage.tar.gz" |
| 1146 |
if test -f "$FILEIMAGE"; then |
| 1147 |
docker load -i $FILEIMAGE |
| 1148 |
fi |
| 1149 |
echo "DockerCacheDirectory/" >> .dockerignore |
| 1150 |
./run/snap.sh |
| 1151 |
docker save $(docker history -q $DOCKERIMAGE | tr '\n' ' ' | tr -d '<missing>') | gzip > $FILEIMAGE |
| 1152 |
|
| 1153 |
|
| 1154 |
|
| 1155 |
|
| 1156 |
|
| 1157 |
- name: Cache Docker Konclude Develop Image |
| 1158 |
uses: actions/cache@v2 |
| 1159 |
env: |
| 1160 |
cache-name: cache-konclude-docker-develop-Image |
| 1161 |
with: |
| 1162 |
path: DockerCacheDirectory/KoncludeDockerDevelopImage.tar.gz |
| 1163 |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('KoncludeDocker/develop/Dockerfile') }} |
| 1164 |
|
| 1165 |
|
| 1166 |
|
| 1167 |
|
| 1168 |
- name: Build Develop Image |
| 1169 |
working-directory: KoncludeDocker |
| 1170 |
run: | |
| 1171 |
mkdir -p ../DockerCacheDirectory |
| 1172 |
DOCKERIMAGE="koncludedev:latest" |
| 1173 |
FILEIMAGE="../DockerCacheDirectory/KoncludeDockerDevelopImage.tar.gz" |
| 1174 |
if test -f "$FILEIMAGE"; then |
| 1175 |
docker load -i $FILEIMAGE |
| 1176 |
fi |
| 1177 |
echo "DockerCacheDirectory/" >> .dockerignore |
| 1178 |
(while true; do |
| 1179 |
df -h |
| 1180 |
sleep 15 |
| 1181 |
done) & |
| 1182 |
./develop/snap.sh |
| 1183 |
docker save $(docker history -q $DOCKERIMAGE | tr '\n' ' ' | tr -d '<missing>') | gzip > $FILEIMAGE |
| 1184 |
|
| 1185 |
|
| 1186 |
|
| 1187 |
|
| 1188 |
|
| 1189 |
|
| 1190 |
|
| 1191 |
build_docker: |
| 1192 |
name: ${{ matrix.config.name }} |
| 1193 |
runs-on: ${{ matrix.config.os }} |
| 1194 |
timeout-minutes: 600 |
| 1195 |
needs: [release, tags, prebuild_qt_docker] |
| 1196 |
strategy: |
| 1197 |
fail-fast: false |
| 1198 |
matrix: |
| 1199 |
config: |
| 1200 |
- { |
| 1201 |
name: "Ubuntu Latest Docker Static", |
| 1202 |
os: ubuntu-latest, |
| 1203 |
build_type: "Release", |
| 1204 |
cc: "gcc", |
| 1205 |
cxx: "g++", |
| 1206 |
qt: 5.12.10, |
| 1207 |
qt_major: 5.12 |
| 1208 |
} |
| 1209 |
|
| 1210 |
|
| 1211 |
steps: |
| 1212 |
|
| 1213 |
|
| 1214 |
- name: Prepare Directories |
| 1215 |
run: | |
| 1216 |
mkdir Konclude |
| 1217 |
mkdir KoncludeDocker |
| 1218 |
|
| 1219 |
- name: Checkout Konclude code |
| 1220 |
uses: actions/checkout@v2 |
| 1221 |
with: |
| 1222 |
path: Konclude |
| 1223 |
|
| 1224 |
|
| 1225 |
- name: Checkout Konclude Docker |
| 1226 |
uses: actions/checkout@v2 |
| 1227 |
with: |
| 1228 |
repository: konclude/KoncludeDocker |
| 1229 |
path: KoncludeDocker |
| 1230 |
|
| 1231 |
|
| 1232 |
|
| 1233 |
|
| 1234 |
- name: Update Revision Information |
| 1235 |
run: | |
| 1236 |
echo "#define KONCLUDE_VERSION_GIT_REVISION_NUMBER ${{needs.tags.outputs.revision_build}}" > "Konclude/revision-git.h" |
| 1237 |
echo "#define KONCLUDE_VERSION_GIT_TAG_NAME_STRING \"${{needs.tags.outputs.revision_tag}}\"" >> "Konclude/revision-git.h" |
| 1238 |
echo "#define KONCLUDE_VERSION_GIT_REVISION_HASH_STRING \"${{needs.tags.outputs.revision_hash}}\"" >> "Konclude/revision-git.h" |
| 1239 |
- name: Cache Docker Konclude Run Image |
| 1240 |
uses: actions/cache@v2 |
| 1241 |
env: |
| 1242 |
cache-name: cache-konclude-docker-run-Image |
| 1243 |
with: |
| 1244 |
path: DockerCacheDirectory/KoncludeDockerRunImage.tar.gz |
| 1245 |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('KoncludeDocker/run/Dockerfile') }} |
| 1246 |
|
| 1247 |
|
| 1248 |
- name: Build Run Image |
| 1249 |
working-directory: KoncludeDocker |
| 1250 |
run: | |
| 1251 |
mkdir -p ../DockerCacheDirectory |
| 1252 |
DOCKERIMAGE="koncluderun:latest" |
| 1253 |
FILEIMAGE="../DockerCacheDirectory/KoncludeDockerRunImage.tar.gz" |
| 1254 |
if test -f "$FILEIMAGE"; then |
| 1255 |
docker load -i $FILEIMAGE |
| 1256 |
fi |
| 1257 |
echo "DockerCacheDirectory/" >> .dockerignore |
| 1258 |
./run/snap.sh |
| 1259 |
docker save $(docker history -q $DOCKERIMAGE | tr '\n' ' ' | tr -d '<missing>') | gzip > $FILEIMAGE |
| 1260 |
|
| 1261 |
|
| 1262 |
|
| 1263 |
|
| 1264 |
|
| 1265 |
- name: Cache Docker Konclude Develop Image |
| 1266 |
uses: actions/cache@v2 |
| 1267 |
env: |
| 1268 |
cache-name: cache-konclude-docker-develop-Image |
| 1269 |
with: |
| 1270 |
path: DockerCacheDirectory/KoncludeDockerDevelopImage.tar.gz |
| 1271 |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('KoncludeDocker/develop/Dockerfile') }} |
| 1272 |
|
| 1273 |
|
| 1274 |
|
| 1275 |
|
| 1276 |
- name: Build Develop Image |
| 1277 |
working-directory: KoncludeDocker |
| 1278 |
run: | |
| 1279 |
mkdir -p ../DockerCacheDirectory |
| 1280 |
DOCKERIMAGE="koncludedev:latest" |
| 1281 |
FILEIMAGE="../DockerCacheDirectory/KoncludeDockerDevelopImage.tar.gz" |
| 1282 |
if test -f "$FILEIMAGE"; then |
| 1283 |
docker load -i $FILEIMAGE |
| 1284 |
fi |
| 1285 |
echo "DockerCacheDirectory/" >> .dockerignore |
| 1286 |
(while true; do |
| 1287 |
df -h |
| 1288 |
sleep 15 |
| 1289 |
done) & |
| 1290 |
./develop/snap.sh |
| 1291 |
docker save $(docker history -q $DOCKERIMAGE | tr '\n' ' ' | tr -d '<missing>') | gzip > $FILEIMAGE |
| 1292 |
|
| 1293 |
|
| 1294 |
|
| 1295 |
- name: Build Build Image |
| 1296 |
working-directory: KoncludeDocker |
| 1297 |
run: | |
| 1298 |
DOCKERIMAGE="koncludebuild:latest" |
| 1299 |
echo "DockerCacheDirectory/" >> .dockerignore |
| 1300 |
(while true; do |
| 1301 |
df -h |
| 1302 |
sleep 15 |
| 1303 |
done) & |
| 1304 |
./build/snap.sh |
| 1305 |
|
| 1306 |
|
| 1307 |
|
| 1308 |
- name: Build Deploy Image |
| 1309 |
working-directory: KoncludeDocker |
| 1310 |
run: | |
| 1311 |
DOCKERIMAGE="konclude:latest" |
| 1312 |
FILEIMAGE="../DockerCacheDirectory/Konclude-${{needs.tags.outputs.git_tag}}-Docker-Image.tar.gz" |
| 1313 |
echo "DockerCacheDirectory/" >> .dockerignore |
| 1314 |
(while true; do |
| 1315 |
df -h |
| 1316 |
sleep 15 |
| 1317 |
done) & |
| 1318 |
./deploy/snap.sh |
| 1319 |
docker tag konclude konclude/konclude:latest |
| 1320 |
docker tag konclude konclude/konclude:${{needs.tags.outputs.git_tag}} |
| 1321 |
docker save $(docker history -q $DOCKERIMAGE | tr '\n' ' ' | tr -d '<missing>') | gzip > $FILEIMAGE |
| 1322 |
|
| 1323 |
|
| 1324 |
|
| 1325 |
- uses: actions/upload-artifact@v2 |
| 1326 |
with: |
| 1327 |
name: Konclude Docker Image |
| 1328 |
path: DockerCacheDirectory/Konclude-${{needs.tags.outputs.git_tag}}-Docker-Image.tar.gz |
| 1329 |
|
| 1330 |
|
| 1331 |
|
| 1332 |
- name: Build |
| 1333 |
working-directory: KoncludeDocker |
| 1334 |
run: | |
| 1335 |
(while true; do |
| 1336 |
df -h |
| 1337 |
sleep 15 |
| 1338 |
done) & |
| 1339 |
pwd |
| 1340 |
echo "DockerCacheDirectory/" >> .dockerignore |
| 1341 |
./build_release_parameterized.sh ${{needs.tags.outputs.revision_build}} ${{needs.tags.outputs.revision_tag}} ${{needs.tags.outputs.revision_hash}} |
| 1342 |
df -h |
| 1343 |
pwd |
| 1344 |
ls -al |
| 1345 |
ls -al ../Release |
| 1346 |
|
| 1347 |
|
| 1348 |
|
| 1349 |
|
| 1350 |
- uses: actions/upload-artifact@v2 |
| 1351 |
with: |
| 1352 |
name: Konclude-${{needs.tags.outputs.git_tag}}-Linux-Docker-Compiled-x64-GCC4.8.4-Static-Qt${{ matrix.config.qt }} |
| 1353 |
path: Release/Konclude-${{needs.tags.outputs.git_tag}}-Linux-Docker-Compiled-x64-GCC4.8.4-Static-Qt${{ matrix.config.qt }}.zip |
| 1354 |
|
| 1355 |
|
| 1356 |
|
| 1357 |
- uses: actions/upload-artifact@v2 |
| 1358 |
with: |
| 1359 |
name: Konclude-${{needs.tags.outputs.git_tag}}-Sources |
| 1360 |
path: Release/Konclude-${{needs.tags.outputs.git_tag}}-Sources.zip |
| 1361 |
|
| 1362 |
|
| 1363 |
|
| 1364 |
|
| 1365 |
- name: Konclude Docker Test |
| 1366 |
run: | |
| 1367 |
ROOT="$(pwd)" |
| 1368 |
cd Release/Konclude-${{needs.tags.outputs.git_tag}}-Linux-Docker-Compiled-x64-GCC4.8.4-Static-Qt${{ matrix.config.qt }} |
| 1369 |
docker run -v $(pwd)/Tests:/data --rm konclude owllinkfile -i /data/galen-ALEHIF+-classify-request.xml -o /data/test-response.xml |
| 1370 |
|
| 1371 |
|
| 1372 |
- name: Konclude Examples Test |
| 1373 |
run: | |
| 1374 |
ROOT="$(pwd)" |
| 1375 |
cd Release/Konclude-${{needs.tags.outputs.git_tag}}-Linux-Docker-Compiled-x64-GCC4.8.4-Static-Qt${{ matrix.config.qt }} |
| 1376 |
|
| 1377 |
./Konclude classification -i Tests/roberts-family-full-D.owl.xml -o roberts-family-full-class-hierarchy.owl.xml |
| 1378 |
./Konclude satisfiability -i Tests/roberts-family-full-D.owl.xml -x http://www.co-ode.org/roberts/family-tree.owl#Aunt |
| 1379 |
./Konclude owllinkfile -i Tests/galen-classify-request.xml -o response.xml |
| 1380 |
./Konclude owllinkfile -i Tests/roberts-family-full-D-classify-realize-request.xml |
| 1381 |
./Konclude owllinkfile -c Configs/default-config.xml -i Tests/1b-satisfiability-request.xml |
| 1382 |
./Konclude sparqlfile -s Tests/lubm-univ-bench-sparql-load-and-query-test.sparql -o Tests/query-answers.xml -c Configs/querying-config.xml |
| 1383 |
./Konclude sparqlfile -s Tests/roberts-family-full-sparql-existential-variables-query-test.sparql -i Tests/roberts-family-full-D.owl.xml |
| 1384 |
|
| 1385 |
|
| 1386 |
|
| 1387 |
- name: Upload image assets |
| 1388 |
id: upload_assets_image |
| 1389 |
uses: actions/upload-release-asset@v1 |
| 1390 |
env: |
| 1391 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 1392 |
with: |
| 1393 |
upload_url: ${{ needs.release.outputs.upload_url }} |
| 1394 |
asset_path: DockerCacheDirectory/Konclude-${{needs.tags.outputs.git_tag}}-Docker-Image.tar.gz |
| 1395 |
asset_name: Konclude-${{needs.tags.outputs.git_tag}}-Docker-Image.zip |
| 1396 |
asset_content_type: application/octet-stream |
| 1397 |
|
| 1398 |
|
| 1399 |
- name: Upload release assets |
| 1400 |
id: upload_assets_release |
| 1401 |
uses: actions/upload-release-asset@v1 |
| 1402 |
env: |
| 1403 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 1404 |
with: |
| 1405 |
upload_url: ${{ needs.release.outputs.upload_url }} |
| 1406 |
asset_path: Release/Konclude-${{needs.tags.outputs.git_tag}}-Linux-Docker-Compiled-x64-GCC4.8.4-Static-Qt${{ matrix.config.qt }}.zip |
| 1407 |
asset_name: Konclude-${{needs.tags.outputs.git_tag}}-Linux-Docker-Compiled-x64-GCC4.8.4-Static-Qt${{ matrix.config.qt }}.zip |
| 1408 |
asset_content_type: application/octet-stream |
| 1409 |
|
| 1410 |
- name: Upload sources assets |
| 1411 |
id: upload_assets_sources |
| 1412 |
uses: actions/upload-release-asset@v1 |
| 1413 |
env: |
| 1414 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 1415 |
with: |
| 1416 |
upload_url: ${{ needs.release.outputs.upload_url }} |
| 1417 |
asset_path: Release/Konclude-${{needs.tags.outputs.git_tag}}-Sources.zip |
| 1418 |
asset_name: Konclude-${{needs.tags.outputs.git_tag}}-Sources.zip |
| 1419 |
asset_content_type: application/octet-stream |
| 1420 |
|
| 1421 |
|
| 1422 |
- name: Log into registry |
| 1423 |
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin |
| 1424 |
|
| 1425 |
- name: Push image |
| 1426 |
run: | |
| 1427 |
docker push konclude/konclude:latest |
| 1428 |
docker push konclude/konclude:${{needs.tags.outputs.git_tag}} |