Add substreams cli installation.

Comment out S3 upload for now.
This commit is contained in:
kayibal
2024-03-14 02:10:53 +00:00
parent 2288e12032
commit f88fb952b0
2 changed files with 9 additions and 1 deletions

View File

@@ -31,6 +31,14 @@ jobs:
with: with:
cache-on-failure: true cache-on-failure: true
- name: Install Substreams CLI
run: |
# Use correct binary for your platform
LINK=$(curl -s https://api.github.com/repos/streamingfast/substreams/releases/latest | awk "/download.url.*linux_$(uname -m)/ {print \$2}" | sed 's/"//g')
curl -L "$LINK" | tar zxf - -C /usr/local/bin
chmod +x /usr/local/bin/substreams
substreams --version
- name: Run checks - name: Run checks
run: | run: |
cd substreams cd substreams

View File

@@ -55,6 +55,6 @@ fi
cargo build --target wasm32-unknown-unknown --release -p "$package" cargo build --target wasm32-unknown-unknown --release -p "$package"
mkdir -p ./target/spkg/ mkdir -p ./target/spkg/
substreams pack $package/substreams.yaml -o ./target/spkg/$package-$version.spkg substreams pack $package/substreams.yaml -o ./target/spkg/$package-$version.spkg
aws s3 cp ./target/spkg/$package-$version.spkg "s3://repository.propeller/substreams/$package/$version.spkg" # aws s3 cp ./target/spkg/$package-$version.spkg "s3://repository.propeller/substreams/$package/$version.spkg"
echo "Released substreams package: "s3://repository.propeller/substreams/$package/$version.spkg"" echo "Released substreams package: "s3://repository.propeller/substreams/$package/$version.spkg""