From 6a4c523a63692476efa427429974032ee0bb71bf Mon Sep 17 00:00:00 2001 From: Guillermo Perez Date: Fri, 15 Sep 2023 03:23:00 -0400 Subject: [PATCH] fix wasm location upload --- .github/workflows/build-wasm.yml | 8 ++++---- .github/workflows/sanity-checks.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-wasm.yml b/.github/workflows/build-wasm.yml index 9e8dd1170d..046b0520d7 100644 --- a/.github/workflows/build-wasm.yml +++ b/.github/workflows/build-wasm.yml @@ -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' }} @@ -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 diff --git a/.github/workflows/sanity-checks.yml b/.github/workflows/sanity-checks.yml index 6f924f7bcd..c4eb7227e2 100644 --- a/.github/workflows/sanity-checks.yml +++ b/.github/workflows/sanity-checks.yml @@ -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: