Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update release workflow #777

Merged
merged 4 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,15 @@ jobs:
with:
key: ${{ matrix.target }}
cache-on-failure: true

- name: Install go
uses: actions/setup-go@v5
with:
go-version: '^1.22.1'

- name: Check go installation
run: |
go version

- name: Set up git private repo access
run: |
Expand Down
7 changes: 2 additions & 5 deletions sp1up/sp1up
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,10 @@ main() {

# Install by downloading binaries
if [[ "$SP1UP_REPO" == "succinctlabs/sp1" && -z "$SP1UP_BRANCH" && -z "$SP1UP_COMMIT" ]]; then
SP1UP_VERSION=${SP1UP_VERSION:-nightly}
SP1UP_VERSION=${SP1UP_VERSION:-main}
SP1UP_TAG=$SP1UP_VERSION

# Normalize versions (handle channels, versions without v prefix
if [[ "$SP1UP_VERSION" =~ ^nightly ]]; then
SP1UP_VERSION="nightly"
elif [[ "$SP1UP_VERSION" == [[:digit:]]* ]]; then
if [[ "$SP1UP_VERSION" == [[:digit:]]* ]]; then
# Add v prefix
SP1UP_VERSION="v${SP1UP_VERSION}"
SP1UP_TAG="${SP1UP_VERSION}"
Expand Down
Loading