File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,25 +20,14 @@ jobs:
2020 corepack prepare yarn@4.9.2 --activate
2121 - name : Install dependencies
2222 run : yarn install --immutable
23- - name : Install compact compiler
24- env :
25- COMPACT_VERSION : " v0.4.0"
26- COMPACT_SHA256_URL : " https://github.com/midnightntwrk/compact/releases/download/compact-v0.4.0/compact-x86_64-unknown-linux-musl.tar.xz.sha256"
23+ - name : Install compact toolchain
2724 run : |
2825 set -euo pipefail
29- asset="compact-x86_64-unknown-linux-musl.tar.xz"
30- url="https://github.com/midnightntwrk/compact/releases/download/compact-${COMPACT_VERSION}/${asset}"
31- curl -LsSf "$url" -o "/tmp/${asset}"
32- curl -LsSf "${COMPACT_SHA256_URL}" -o "/tmp/${asset}.sha256"
33- # Normalize "sha256 filename" format to "sha256 /tmp/asset"
34- awk '{print $1" /tmp/'"${asset}"'"}' "/tmp/${asset}.sha256" | shasum -a 256 -c -
35- mkdir -p /tmp/compact
36- tar -xJf "/tmp/${asset}" -C /tmp/compact
37- compact_bin_dir="/tmp/compact/compact-x86_64-unknown-linux-musl"
38- if [ -z "${compact_bin_dir}" ]; then
39- echo "compact binary not found after extract"
40- exit 1
41- fi
42- echo "${compact_bin_dir}" >> "$GITHUB_PATH"
26+ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/midnightntwrk/compact/releases/latest/download/compact-installer.sh | sh
27+ echo "$HOME/.local/bin" >> "$GITHUB_PATH"
28+ echo "$HOME/.compact/bin" >> "$GITHUB_PATH"
29+ compact update
30+ compact check
31+ compact --version
4332 - name : Build all packages
4433 run : yarn build:all
You can’t perform that action at this time.
0 commit comments