-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1 KB
/
rust.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
name: Rust
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
job:
- contract build
- test
env:
CONTRACTS: "azns_registry azns_fee_calculator azns_name_checker azns_merkle_verifier azns_router"
steps:
- uses: actions/checkout@v3
- uses: Swatinem/[email protected]
- run: rustup toolchain install stable --profile minimal
- name: Install rust-src
run: rustup component add rust-src
- name: Install dylint-link
run: cargo install dylint-link
- name: Install Cargo Contract
run: cargo install cargo-contract --force --locked --version 3.2.0
- name: Run ${{ matrix.job }}
run: |
for contract in ${CONTRACTS}; do
echo "Processing contract: $contract";
cargo ${{ matrix.job }} --verbose --manifest-path=src/$contract/Cargo.toml;
done