| 1 |
name: Build |
| 2 |
|
| 3 |
# Run this workflow every time a new commit pushed to your repository |
| 4 |
on: [push] |
| 5 |
|
| 6 |
jobs: |
| 7 |
|
| 8 |
build: |
| 9 |
name: ${{ matrix.config.name }} |
| 10 |
runs-on: ${{ matrix.config.os }} |
| 11 |
strategy: |
| 12 |
fail-fast: false |
| 13 |
matrix: |
| 14 |
config: |
| 15 |
- { |
| 16 |
name: "Ubuntu Latest GCC", |
| 17 |
os: ubuntu-latest, |
| 18 |
build_type: "Release", |
| 19 |
cc: "gcc", |
| 20 |
cxx: "g++" |
| 21 |
} |
| 22 |
- { |
| 23 |
name: "Ubuntu 16.04 GCC", |
| 24 |
os: ubuntu-16.04, |
| 25 |
build_type: "Release", |
| 26 |
cc: "gcc", |
| 27 |
cxx: "g++" |
| 28 |
} |
| 29 |
- { |
| 30 |
name: "Windows Latest MSVC", |
| 31 |
os: windows-latest, |
| 32 |
build_type: "Release", |
| 33 |
cc: "cl", |
| 34 |
cxx: "cl" |
| 35 |
} |
| 36 |
- { |
| 37 |
name: "macOS Latest Clang", |
| 38 |
os: macos-latest, |
| 39 |
build_type: "Release", |
| 40 |
cc: "clang", |
| 41 |
cxx: "clang++", |
| 42 |
} |
| 43 |
|
| 44 |
|
| 45 |
steps: |
| 46 |
# Checks out a copy of your repository on the machine |
| 47 |
- name: Checkout code |
| 48 |
uses: actions/checkout@v2 |
| 49 |
|
| 50 |
- name: Install Qt |
| 51 |
uses: jurplel/install-qt-action@v2 |
| 52 |
|
| 53 |
- name: Compile Ubuntu |
| 54 |
if: startsWith(matrix.config.os, 'ubuntu') |
| 55 |
run: | |
| 56 |
sudo apt-get install gdb |
| 57 |
echo `gcc --version` |
| 58 |
echo `qmake --version` |
| 59 |
qmake KoncludeWithoutRedland.pro |
| 60 |
make -j 2 |
| 61 |
|
| 62 |
- name: Compile macOS |
| 63 |
if: startsWith(matrix.config.os, 'macos') |
| 64 |
run: | |
| 65 |
echo `clang --version` |
| 66 |
echo `qmake --version` |
| 67 |
qmake KoncludeWithoutRedland.pro |
| 68 |
make -j 2 |
| 69 |
|
| 70 |
- name: Prepare Visual Studio |
| 71 |
if: startsWith(matrix.config.os, 'windows') |
| 72 |
uses: ilammy/msvc-dev-cmd@v1 |
| 73 |
|
| 74 |
- name: Compile Windows |
| 75 |
if: startsWith(matrix.config.os, 'windows') |
| 76 |
run: | |
| 77 |
qmake KoncludeWithoutRedland.pro |
| 78 |
nmake |
| 79 |
|
| 80 |
|
| 81 |
- name: Run Examples Ubuntu |
| 82 |
if: startsWith(matrix.config.os, 'ubuntu') |
| 83 |
run: | |
| 84 |
Release/Konclude classification -i Tests/roberts-family-full-D.owl.xml -o roberts-family-full-class-hierarchy.owl.xml |
| 85 |
Release/Konclude satisfiability -i Tests/roberts-family-full-D.owl.xml -x http://www.co-ode.org/roberts/family-tree.owl#Aunt |
| 86 |
Release/Konclude owllinkfile -i Tests/galen-classify-request.xml -o response.xml |
| 87 |
Release/Konclude owllinkfile -i Tests/roberts-family-full-D-classify-realize-request.xml |
| 88 |
Release/Konclude owllinkfile -c Configs/default-config.xml -i Tests/1b-satisfiability-request.xml |
| 89 |
Release/Konclude sparqlfile -s Tests/lubm-univ-bench-sparql-load-and-query-test.sparql -o Tests/query-answers.xml -c Configs/querying-config.xml |
| 90 |
Release/Konclude sparqlfile -s Tests/roberts-family-full-sparql-existential-variables-query-test.sparql -i Tests/roberts-family-full-D.owl.xml |
| 91 |
|
| 92 |
|
| 93 |
- name: Run Examples Windows |
| 94 |
if: startsWith(matrix.config.os, 'windows') |
| 95 |
run: | |
| 96 |
Release\Konclude.exe classification -i Tests/roberts-family-full-D.owl.xml -o roberts-family-full-class-hierarchy.owl.xml |
| 97 |
Release\Konclude.exe satisfiability -i Tests/roberts-family-full-D.owl.xml -x http://www.co-ode.org/roberts/family-tree.owl#Aunt |
| 98 |
Release\Konclude.exe owllinkfile -i Tests/galen-classify-request.xml -o response.xml |
| 99 |
Release\Konclude.exe owllinkfile -i Tests/roberts-family-full-D-classify-realize-request.xml |
| 100 |
Release\Konclude.exe owllinkfile -c Configs/default-config.xml -i Tests/1b-satisfiability-request.xml |
| 101 |
Release\Konclude.exe sparqlfile -s Tests/lubm-univ-bench-sparql-load-and-query-test.sparql -o Tests/query-answers.xml -c Configs/querying-config.xml |
| 102 |
Release\Konclude.exe sparqlfile -s Tests/roberts-family-full-sparql-existential-variables-query-test.sparql -i Tests/roberts-family-full-D.owl.xml |
| 103 |
|
| 104 |
|
| 105 |
- name: Run Examples MacOS |
| 106 |
if: startsWith(matrix.config.os, 'macos') |
| 107 |
run: | |
| 108 |
Release/Konclude.app/Contents/MacOS/Konclude classification -i Tests/roberts-family-full-D.owl.xml -o roberts-family-full-class-hierarchy.owl.xml |
| 109 |
Release/Konclude.app/Contents/MacOS/Konclude satisfiability -i Tests/roberts-family-full-D.owl.xml -x http://www.co-ode.org/roberts/family-tree.owl#Aunt |
| 110 |
Release/Konclude.app/Contents/MacOS/Konclude owllinkfile -i Tests/galen-classify-request.xml -o response.xml |
| 111 |
Release/Konclude.app/Contents/MacOS/Konclude owllinkfile -i Tests/roberts-family-full-D-classify-realize-request.xml |
| 112 |
Release/Konclude.app/Contents/MacOS/Konclude owllinkfile -c Configs/default-config.xml -i Tests/1b-satisfiability-request.xml |
| 113 |
Release/Konclude.app/Contents/MacOS/Konclude sparqlfile -s Tests/lubm-univ-bench-sparql-load-and-query-test.sparql -o Tests/query-answers.xml -c Configs/querying-config.xml |
| 114 |
Release/Konclude.app/Contents/MacOS/Konclude sparqlfile -s Tests/roberts-family-full-sparql-existential-variables-query-test.sparql -i Tests/roberts-family-full-D.owl.xml |
| 115 |
|