fix: Feature wasm-opt #375
Workflow file for this run
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
env: | |
DFX_VERSION: 0.23.0 | |
IC_REPL_VERSION: 0.7.5 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dfx | |
uses: dfinity/setup-dfx@main | |
with: | |
dfx-version: "${{ env.DFX_VERSION }}" | |
- name: Install dependencies | |
run: | | |
wget https://github.com/chenyan2002/ic-repl/releases/download/$IC_REPL_VERSION/ic-repl-linux64 | |
cp ./ic-repl-linux64 /usr/local/bin/ic-repl | |
chmod a+x /usr/local/bin/ic-repl | |
- name: Check compilation without default features for wasm32-unknown-unknown target (needed for playground) | |
run: | | |
cargo build --no-default-features --target wasm32-unknown-unknown | |
- name: Start replica | |
run: | | |
echo "{}" > dfx.json | |
dfx cache install | |
dfx start --background | |
- name: Test | |
run: | | |
ic-repl tests/deployable.ic-repl.sh -v | |
- name: stop dfx | |
run: | | |
echo "dfx stop" | |
dfx stop |