From 00fc8be7e549226a2e0edf90e2b9bb4b31928e89 Mon Sep 17 00:00:00 2001 From: Jeremiah Gowdy Date: Mon, 14 Mar 2022 13:33:39 -0700 Subject: [PATCH] Switch to versioned usage of Asherah-Cobhan (#15) --- .github/workflows/publish.yml | 2 +- scripts/download-libasherah.sh | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0a9cd23..0339e56 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,7 +21,7 @@ jobs: run: npm run build - name: Test run: npm test - - name: Verify tag matches package version + - name: Set version to match tag run: scripts/set-version.sh ${GITHUB_REF#refs/*/} - name: Publish (main) run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc && npm publish; rm .npmrc diff --git a/scripts/download-libasherah.sh b/scripts/download-libasherah.sh index 1f4403d..c92b223 100755 --- a/scripts/download-libasherah.sh +++ b/scripts/download-libasherah.sh @@ -1,13 +1,15 @@ #!/bin/bash +VERSION=v0.1.2 + rm -rf binaries mkdir binaries cd binaries || exit 1 -curl -s -L --fail -O --retry 999 --retry-max-time 0 https://github.com/godaddy/asherah-cobhan/releases/download/current/libasherah-arm64.dylib +curl -s -L --fail -O --retry 999 --retry-max-time 0 https://github.com/godaddy/asherah-cobhan/releases/download/${VERSION}/libasherah-arm64.dylib sha256sum libasherah-arm64.dylib -curl -s -L --fail -O --retry 999 --retry-max-time 0 https://github.com/godaddy/asherah-cobhan/releases/download/current/libasherah-arm64.so +curl -s -L --fail -O --retry 999 --retry-max-time 0 https://github.com/godaddy/asherah-cobhan/releases/download/${VERSION}/libasherah-arm64.so sha256sum libasherah-arm64.so -curl -s -L --fail -O --retry 999 --retry-max-time 0 https://github.com/godaddy/asherah-cobhan/releases/download/current/libasherah-x64.dylib +curl -s -L --fail -O --retry 999 --retry-max-time 0 https://github.com/godaddy/asherah-cobhan/releases/download/${VERSION}/libasherah-x64.dylib sha256sum libasherah-x64.dylib -curl -s -L --fail -O --retry 999 --retry-max-time 0 https://github.com/godaddy/asherah-cobhan/releases/download/current/libasherah-x64.so +curl -s -L --fail -O --retry 999 --retry-max-time 0 https://github.com/godaddy/asherah-cobhan/releases/download/${VERSION}/libasherah-x64.so sha256sum libasherah-x64.so