Skip to content

Commit

Permalink
fix wasm location upload
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmayorga committed Sep 15, 2023
1 parent 97fa94e commit 6a4c523
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
rustup --version
cargo --version
echo "---- RUNNING BUILD ----"
/srtool/build
/srtool/build --json
- id: 'auth'
# if: ${{ github.ref == 'refs/heads/main' }}
Expand All @@ -94,13 +94,13 @@ jobs:
if: ${{ steps.auth.outcome == 'success' }}
uses: google-github-actions/setup-gcloud@e30db14379863a8c79331b04a9969f4c1e225e0b # v1.1.1


- name: Publish artifacts to GCS
if: ${{ steps.auth.outcome == 'success' }}
shell: bash
run: |
target=$(echo "${{ matrix.target }}" | sed -e "s/^build-//" )
runtime_name=$(echo "${{ matrix.package }}" | sed -e "s/-runtime$//" )
filename=$(echo "${{ matrix.package }}" | sed -i 's/-/_/g' )
gsutil cp \
./runtime/$runtime_name/target/srtool/release/wbuild/${{ matrix.package }}/${{ matrix.package }}.compact.compressed.wasm \
gs://centrifuge-wasm-repo/$RUNTIME/$target/$runtime_name-$target-$(git rev-parse --short HEAD).wasm
./runtime/${runtime_name}/target/srtool/release/wbuild/${{ matrix.package }}/${filename}.compact.compressed.wasm \
gs://centrifuge-wasm-repo/$RUNTIME/${target}/${runtime_name}-${target}-$(git rev-parse --short HEAD).wasm
2 changes: 1 addition & 1 deletion .github/workflows/sanity-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
TARGET: ${{ matrix.target }}

benchmark-check:
name: bench-${{ matrix.runtime }}
name: bench-check-${{ matrix.runtime }}
runs-on: ubuntu-latest #r-4-cores
strategy:
matrix:
Expand Down

0 comments on commit 6a4c523

Please sign in to comment.