-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (39 loc) · 1.13 KB
/
wasm.yml
File metadata and controls
40 lines (39 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
rustup target add wasm32-unknown-unknown
- name: Check compilation without default features for wasm32-unknown-unknown target (needed for motoko-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