From 075cb589363c1e55b3f0a4801dfa18257ab36b78 Mon Sep 17 00:00:00 2001 From: Volodymyr Savchenko Date: Wed, 14 Feb 2024 11:29:34 +0100 Subject: [PATCH] separate compile steps --- .github/workflows/makefile.yml | 7 +++++-- Makefile | 6 +++--- ontology | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 7d6b8ba..dd288d5 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -25,5 +25,8 @@ jobs: git config --global user.name "ODA Bot" - - name: Compile all - run: make -B + - name: Compile Ontology + run: make -B ontology + + - name: Compile Site + run: make diff --git a/Makefile b/Makefile index 6271af7..f1b5e2c 100644 --- a/Makefile +++ b/Makefile @@ -37,9 +37,9 @@ ontology-from-webprotege: ontology/ontology.ttl: .FORCE < ontology/ontology.ttl sed 's/owl:versionIRI ".*"/owl:versionIRI "'$(shell cd ontology; git describe --always --tags)'"/' > ontology/ontology-versionned.ttl mv -fv ontology/ontology-versionned.ttl ontology/ontology.ttl - (cd ontology; git commit -a -m "update version"; git push) + # (cd ontology; git commit -a -m "update version"; git push) diff ontology/ontology.ttl ontology/ontology.ttl.backup || echo "an update happened!" - python -c 'import rdflib; print("valid ontology with entries:", len(rdflib.Graph().load(open("ontology/ontology.ttl"), format="turtle")))' + python -c 'import rdflib; print("valid ontology with entries:", len(rdflib.Graph().parse(open("ontology/ontology.ttl"), format="turtle")))' ontology/ontology-platforms.ttl: .FORCE curl "https://webprotege.obsuks1.unige.ch/download?project=$$(pass oda/webprotege/platforms-projectid)&format=ttl" > ontology.zip @@ -47,7 +47,7 @@ ontology/ontology-platforms.ttl: .FORCE python -c 'import rdflib; print("valid ontology with entries:", len(rdflib.Graph().load(open("ontology/#ontology-platforms.ttl"), format="turtle")))' -#ontology: ontology/ontology.ttl +# ontology: ontology/ontology.ttl ontology: TDIR=$$(mktemp -d --suffix widoco) && cd $$TDIR && \ wget -c -O /tmp/widoco.jar https://github.com/dgarijo/Widoco/releases/download/v1.4.17/java-17-widoco-1.4.17-jar-with-dependencies.jar; \ diff --git a/ontology b/ontology index ed9fed7..e50bcc5 160000 --- a/ontology +++ b/ontology @@ -1 +1 @@ -Subproject commit ed9fed7c6b13afea06f8671c96c1c4772aeded74 +Subproject commit e50bcc519f27c178862bf62c7fc0288036536b3b