Skip to content

Commit

Permalink
Replace gh script with a curl+jq command from @jaybosamiya,
Browse files Browse the repository at this point in the history
since gh wants an auth token.
  • Loading branch information
parno committed Dec 2, 2024
1 parent 8944a43 commit 1340b75
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/verus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,8 @@ jobs:
rustup install 1.79.0-x86_64-unknown-linux-gnu
- name: Get latest Verus release
env:
GH_TOKEN: $${{ github.token }}
run: |
REPO="verus-lang/verus"
# Determine tag of latest release.
function latest_release_tag() {
gh release list \
--repo "${REPO}" \
--limit 1 \
--json tagName \
--template '{{range .}}{{.tagName}}{{end}}'
}
tag=$(latest_release_tag)
# Download the x86 Linux package.
gh release download \
--repo "${REPO}" \
"${tag}" \
--pattern '*-x86-linux.zip' \
--output "verus.zip"
curl -s https://api.github.com/repos/verus-lang/verus/releases | jq -r '.[].assets.[].browser_download_url' | grep x86-linux
- name: run Verus
working-directory: ./tasks
Expand Down

0 comments on commit 1340b75

Please sign in to comment.