Skip to content
Open
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
28 changes: 28 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,34 @@ tasks:
command: gnoweb --bind=0.0.0.0:8888
openMode: split-right

- name: Setup Gnopls
before: cd ..
init: |
# Set GNOROOT env variable
gp env GNOROOT=/workspace/gno

# Determine the architecture of the Gitpod environment
ARCH=$(uname -m)

# Map architecture to GitHub release asset file name pattern
if [ "$ARCH" == "x86_64" ]; then
ASSET_PATTERN="linux_amd64"
elif [ "$ARCH" == "aarch64" ]; then
ASSET_PATTERN="linux_arm64"
else
echo "Unsupported architecture: $ARCH"
exit 1
fi

# Fetch the latest GitHub release asset matching the architecture
GITHUB_RELEASE_URL=$(curl -s https://api.github.com/repos/harry-hov/gnopls/releases/latest | grep "browser_download_url" | grep "$ASSET_PATTERN" | cut -d : -f 2,3 | tr -d ' "')
wget "$GITHUB_RELEASE_URL" -O /tmp/gnopls-latest-release.tar.gz
tar -xzf /tmp/gnopls-latest-release.tar.gz -C /tmp/
sudo mv /tmp/gnopls /usr/local/bin/
rm /tmp/gnopls-latest-release.tar.gz

openMode: split-right

- name: Deps
before: cd ../gno/misc/devdeps
init: |
Expand Down