Merge pull request #1053 from dfinity/chore-ic-pos-upgrade #189
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: 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 |