forked from godwokenrises/godwoken
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (53 loc) · 1.78 KB
/
gwos-evm-ci.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: GWOS EVM MainCI
on:
merge_group:
types: [checks_requested]
push:
branches-ignore:
- fuzz*
- mock*
paths:
- 'gwos-evm/**'
pull_request:
paths:
- 'gwos-evm/**'
jobs:
build-and-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: gwos-evm
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
- name: Install Rust components
run: rustup component add rustfmt && rustup component add clippy
- name: Install moleculec
run: |
export MOLC_VERSION=$(cat ../gwos/c/Makefile | egrep "MOLC_VERSION :=" | awk '{print $3}')
test "$(moleculec --version)" = "Moleculec $MOLC_VERSION" \
|| CARGO_TARGET_DIR=target/ cargo install moleculec --version $MOLC_VERSION
- name: Install ckb-cli from nervos/godwoken-prebuilds:latest
run: |
docker run --rm -v /bin:/bin-dir nervos/godwoken-prebuilds:latest \
cp /bin/ckb-cli /bin-dir/ && echo "Install ckb-cli to /bin/"
ckb-cli --version
- name: Validate the checksum of SudtERC20Proxy Contract.bin
run: make contract/sudt-erc20-proxy
- name: Run Integration-Test
run: bash devtools/ci/integration-test.sh
- name: Run Ethereum Test
working-directory: gwos-evm/polyjuice-tests
run: RUST_LOG=info,gw_generator=debug cargo test --release --test ethereum_test -- ethereum_vm_test --nocapture
- name: Checksums of generator and validator
run: |
ls -lh build
sha256sum build/generator build/generator_log build/validator build/validator_log