Skip to content

[DO_NOT_MERGE] chore: dfx start --pocketic #202

[DO_NOT_MERGE] chore: dfx start --pocketic

[DO_NOT_MERGE] chore: dfx start --pocketic #202

name: rust-basic-ethereum
on:
push:
branches:
- master
pull_request:
paths:
- rust/basic_ethereum/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/provision-pocket-ic-server.sh
- .github/workflows/rust-basic-ethereum-example.yml
- .ic-commit
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rust-basic-ethereum-darwin:
runs-on: macos-15
steps:
- uses: actions/checkout@v1
- name: Provision Darwin
run: bash .github/workflows/provision-darwin.sh
- name: Provision PocketIC Darwin
run: bash .github/workflows/provision-pocket-ic-server.sh
- name: Build Basic Ethereum Darwin
run: |
pushd rust/basic_ethereum
cargo build --target wasm32-unknown-unknown --release
popd
- name: Lint Basic Ethereum Darwin
run: |
pushd rust/basic_ethereum
cargo fmt --all -- --check && cargo clippy --all-targets --all-features -- -D warnings
popd
- name: Test Basic Ethereum Darwin
run: |
pushd rust/basic_ethereum
cargo test
popd
rust-basic-ethereum-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Provision PocketIC Linux
run: bash .github/workflows/provision-pocket-ic-server.sh
- name: Build Basic Ethereum Linux
run: |
pushd rust/basic_ethereum
cargo build --target wasm32-unknown-unknown --release
popd
- name: Lint Basic Ethereum Linux
run: |
pushd rust/basic_ethereum
cargo fmt --all -- --check && cargo clippy --all-targets --all-features -- -D warnings
popd
- name: Test Basic Ethereum Linux
run: |
pushd rust/basic_ethereum
cargo test
popd