Skip to content

Merge pull request #3 from azero-id/chore/use-zink #22

Merge pull request #3 from azero-id/chore/use-zink

Merge pull request #3 from azero-id/chore/use-zink #22

Workflow file for this run

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: "domain_giveaway"
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
- name: Run ${{ matrix.job }}
run: |
cd contracts/
for contract in ${CONTRACTS}; do
echo "Processing contract: $contract";
cargo ${{ matrix.job }} --verbose --manifest-path=$contract/Cargo.toml;
done