diff --git a/.circleci/config.yml b/.circleci/config.yml index 3629f9d..672b78d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,7 +7,7 @@ jobs: steps: - checkout #- restore_cache: - - run: sudo apt install cmake build-essential libmbedtls-dev + - run: sudo apt install cmake build-essential libmbedtls-dev jq - run: npm i - run: npm t diff --git a/compile b/compile old mode 100755 new mode 100644 index f2516a0..2e89bd8 --- a/compile +++ b/compile @@ -1,7 +1,8 @@ #!/bin/bash if [ ! -d nng ]; then rm -rf deps nng build && mkdir deps - git clone --depth 1 https://github.com/nanomsg/nng && cd nng + LATEST_TAG=$(curl --silent "https://api.github.com/repos/nanomsg/nng/releases/latest" | jq -r .tag_name) + git clone --depth 1 https://github.com/nanomsg/nng --branch "$LATEST_TAG" --single-branch && cd nng else cd nng git pull