From f718f318ab03733dd5a9401b9dcf5da8548e4618 Mon Sep 17 00:00:00 2001 From: Dennis Dyatlov Date: Tue, 5 Nov 2024 20:39:53 +0000 Subject: [PATCH] fix --- .github/workflows/rs-release.yml | 3 ++- .github/workflows/rs-run-cli-tests.yml | 7 +------ .github/workflows/rs-run-ws-tests.yml | 7 +------ 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/rs-release.yml b/.github/workflows/rs-release.yml index 3633c340..eb1831d7 100644 --- a/.github/workflows/rs-release.yml +++ b/.github/workflows/rs-release.yml @@ -105,12 +105,13 @@ jobs: with: ref: ${{ needs.prepare.outputs.rc_branch }} - - name: Install WASM Utils + - name: Install wasm-opt uses: ./.github/actions/install-wasm-utils - name: Build IDL Parser for WASM run: | cargo build -p sails-idl-parser --target wasm32-unknown-unknown --release + mkdir -p ./assets/sails_idl_parser wasm-opt -O4 -o ./assets/sails_idl_parser/sails_idl_parser.wasm ./target/wasm32-unknown-unknown/release/sails_idl_parser.wasm ls -l ./assets/sails_idl_parser/sails_idl_parser.wasm diff --git a/.github/workflows/rs-run-cli-tests.yml b/.github/workflows/rs-run-cli-tests.yml index 8c0f43f7..b9621c66 100644 --- a/.github/workflows/rs-run-cli-tests.yml +++ b/.github/workflows/rs-run-cli-tests.yml @@ -8,9 +8,6 @@ on: type: string required: false -env: - BINARYEN_VERSION: version_111 - jobs: test_cli: name: Run CLI Tests @@ -39,9 +36,7 @@ jobs: ref: ${{ inputs.sources_ref }} - name: Install wasm-opt - run: | - sudo wget -c https://github.com/WebAssembly/binaryen/releases/download/$BINARYEN_VERSION/binaryen-$BINARYEN_VERSION-x86_64-linux.tar.gz -O - | sudo tar -xz -C . - sudo cp binaryen-$BINARYEN_VERSION/bin/wasm-opt /usr/bin/ + uses: ./.github/actions/install-wasm-utils - name: Build CLI run: | diff --git a/.github/workflows/rs-run-ws-tests.yml b/.github/workflows/rs-run-ws-tests.yml index 31ca39d3..2a88437e 100644 --- a/.github/workflows/rs-run-ws-tests.yml +++ b/.github/workflows/rs-run-ws-tests.yml @@ -12,9 +12,6 @@ on: required: true type: string -env: - BINARYEN_VERSION: version_111 - jobs: test_ws: name: Run Workspace Tests @@ -43,9 +40,7 @@ jobs: ref: ${{ inputs.sources_ref }} - name: Install wasm-opt - run: | - sudo wget -c https://github.com/WebAssembly/binaryen/releases/download/$BINARYEN_VERSION/binaryen-$BINARYEN_VERSION-x86_64-linux.tar.gz -O - | sudo tar -xz -C . - sudo cp binaryen-$BINARYEN_VERSION/bin/wasm-opt /usr/bin/ + uses: ./.github/actions/install-wasm-utils - name: Download Gear Node run: |