Skip to content

Commit 4ed32f5

Browse files
committed
Fix binary checks and uploading
1 parent f385df9 commit 4ed32f5

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

‎.github/workflows/aot-test.yml‎

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,51 +35,53 @@ jobs:
3535
run: |
3636
set -euo pipefail
3737
38+
mv target/out/jvm/scala-*/jelly-cli/graalvm-native-image/jelly-cli jelly-cli
39+
3840
# See if it runs at all
39-
target/graalvm-native-image/jelly-cli version || exit 1
41+
jelly-cli version || exit 1
4042
4143
# Make sure reflection is supported
42-
target/graalvm-native-image/jelly-cli version | grep "JVM reflection: supported" \
44+
jelly-cli version | grep "JVM reflection: supported" \
4345
|| exit 1
4446
4547
# Make sure large RDF/XML file parsing is supported
46-
target/graalvm-native-image/jelly-cli version | grep "Large RDF/XML file parsing: supported" \
48+
jelly-cli version | grep "Large RDF/XML file parsing: supported" \
4749
|| exit 1
4850
4951
# Test RDF conversions
5052
echo '_:b <http://t.org/> _:b .' > in.nt
51-
target/graalvm-native-image/jelly-cli \
53+
jelly-cli \
5254
rdf to-jelly --in-format=nt in.nt > out.jelly && \
5355
[ -s out.jelly ] || exit 1
54-
target/graalvm-native-image/jelly-cli \
56+
jelly-cli \
5557
rdf from-jelly --out-format=jelly-text out.jelly > out.txt && \
5658
[ -s out.txt ] || exit 1
5759
# From jelly-text
58-
target/graalvm-native-image/jelly-cli \
60+
jelly-cli \
5961
rdf to-jelly --in-format=jelly-text out.txt > out2.jelly && \
6062
[ -s out2.jelly ] || exit 1
61-
target/graalvm-native-image/jelly-cli \
63+
jelly-cli \
6264
rdf from-jelly --out-format=jsonld out.jelly > out.json && \
6365
[ -s out.json ] || exit 1
6466
echo '{"@graph":[{"@id":"http://e.org/r","http://e.org/p":{"@value":"v"}}]}' | \
65-
target/graalvm-native-image/jelly-cli rdf to-jelly --in-format "jsonld" > jsonld.jelly && \
67+
jelly-cli rdf to-jelly --in-format "jsonld" > jsonld.jelly && \
6668
[ -s jsonld.jelly ] || exit 1
6769
echo '<?xml version="1.0"?><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Seq rdf:about="http://example.org/favourite-fruit"></rdf:Seq></rdf:RDF>' | \
68-
target/graalvm-native-image/jelly-cli rdf to-jelly --in-format "rdfxml" > rdfxml.jelly && \
70+
jelly-cli rdf to-jelly --in-format "rdfxml" > rdfxml.jelly && \
6971
[ -s rdfxml.jelly ] || exit 1
7072
7173
# Invalid RDF/XMl input test
7274
# Regression test for: https://github.com/Jelly-RDF/cli/issues/217
7375
echo 'invalidxml' | \
74-
( ! target/graalvm-native-image/jelly-cli rdf to-jelly --in-format "rdfxml" &> error.txt ) && \
76+
( ! jelly-cli rdf to-jelly --in-format "rdfxml" &> error.txt ) && \
7577
grep 'Content is not allowed in prolog' error.txt || exit 1
7678
7779
# Test rdf validate
78-
target/graalvm-native-image/jelly-cli \
80+
jelly-cli \
7981
rdf validate out.jelly --compare-to-rdf-file in.nt || exit 1
8082
8183
- name: Upload binary
8284
uses: actions/upload-artifact@v4
8385
with:
8486
name: jelly-cli-${{ matrix.os }}
85-
path: target/graalvm-native-image/*
87+
path: jelly-cli

0 commit comments

Comments
 (0)