-
Notifications
You must be signed in to change notification settings - Fork 407
63 lines (63 loc) · 1.98 KB
/
rust-basic-ethereum-example.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
63
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