Skip to content

chore(CI): split check-c-format in gwos-scripts workflow #21

chore(CI): split check-c-format in gwos-scripts workflow

chore(CI): split check-c-format in gwos-scripts workflow #21

Workflow file for this run

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