[Snyk] Upgrade @trustwallet/wallet-core from 3.0.1 to 3.2.20 #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Wasm CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install system dependencies | |
run: | | |
# build-essential clang-11 libc++-dev libc++abi-dev ruby-full cmake python3 | |
sudo apt-get update && sudo apt-get install libboost-all-dev --fix-missing | |
- name: Install emsdk | |
run: tools/install-wasm-dependencies | |
- name: Cache internal dependencies | |
id: internal_cache | |
uses: actions/cache@v1.1.2 | |
with: | |
path: build/local | |
key: ${{ runner.os }}-internal-${{ hashFiles('tools/install-dependencies') }} | |
- name: Install internal dependencies | |
run: tools/install-dependencies | |
env: | |
CC: /usr/bin/clang | |
CXX: /usr/bin/clang++ | |
if: steps.internal_cache.outputs.cache-hit != 'true' | |
- name: Code generation | |
run: tools/generate-files | |
env: | |
CC: /usr/bin/clang | |
CXX: /usr/bin/clang++ | |
- name: Build for Wasm | |
run: | | |
source emsdk/emsdk_env.sh | |
tools/wasm-build | |
env: | |
CC: /usr/bin/clang | |
CXX: /usr/bin/clang++ | |
- name: Test | |
run: | | |
npm install && npm run build-and-test | |
working-directory: wasm |