Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisInSky committed Nov 5, 2024
1 parent 0657f86 commit f718f31
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/rs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/rs-run-cli-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
type: string
required: false

env:
BINARYEN_VERSION: version_111

jobs:
test_cli:
name: Run CLI Tests
Expand Down Expand Up @@ -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: |
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/rs-run-ws-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ on:
required: true
type: string

env:
BINARYEN_VERSION: version_111

jobs:
test_ws:
name: Run Workspace Tests
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit f718f31

Please sign in to comment.