File tree Expand file tree Collapse file tree 2 files changed +14
-24
lines changed Expand file tree Collapse file tree 2 files changed +14
-24
lines changed Original file line number Diff line number Diff line change 27
27
steps :
28
28
- uses : actions/checkout@v2
29
29
30
+ - name : Install latest nightly
31
+ uses : actions-rs/toolchain@v1
32
+ with :
33
+ toolchain : nightly
34
+ override : true
35
+ components : rustfmt, clippy
36
+
30
37
- name : Compile release
31
38
run : make all
32
39
env :
Original file line number Diff line number Diff line change 14
14
#
15
15
16
16
TESTBIN=$1
17
+ TESTDIR=$( dirname $0 )
17
18
18
- cd $( dirname $0 )
19
+ cd $TESTDIR
19
20
20
21
echo " ------------------ Running test $TESTBIN -------------------"
21
22
22
23
sleep 5
23
24
24
25
if [ ! -f zenohd ]; then
25
- VERSION=$( curl --silent " https://api.github.com/repos/eclipse-zenoh/zenoh/releases" | grep ' "name"' | head -n1 | cut -d' "' -f4 | cut -d" v" -f2)
26
- if [ -z " $VERSION " ]; then
27
- echo " Unable to retrieve zenoh version ..."
28
- exit -1
29
- fi
30
-
31
- echo " > Target zenoh version $VERSION ..."
32
- LINK=" "
33
- case " $OSTYPE " in
34
- " darwin" * )
35
- LINK=" https://download.eclipse.org/zenoh/zenoh/master/eclipse-zenoh-$VERSION -macosx10.7-x86-64.tgz"
36
- ;;
37
- " linux-gnu" * )
38
- LINK=" https://download.eclipse.org/zenoh/zenoh/master/eclipse-zenoh-$VERSION -x86_64-unknown-linux-gnu.tgz"
39
- ;;
40
- * )
41
- exit -1
42
- ;;
43
- esac
44
-
45
- echo " > Downloading $LINK ..."
46
- curl --location --progress-bar --output zenohd.tar.gz $LINK
47
- tar -xzf zenohd.tar.gz
26
+ git clone https://github.com/eclipse-zenoh/zenoh.git zenoh-git
27
+ cd zenoh-git
28
+ cargo build
29
+ cp ./target/debug/zenohd $TESTDIR /
30
+ cd $TESTDIR
48
31
fi
49
32
50
33
chmod +x zenohd
You can’t perform that action at this time.
0 commit comments