Merge pull request #3 from azero-id/chore/use-zink #22
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 | |
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 |