cycles-quartz/.github/workflows/rust.yml
hu55a1n1 be68105ec5 repo reorg
Move utils/quartz-proto to core/quartz-proto

Fix Cargo.toml paths

Add default working-directory for cosmwasm CI jobs

Fix default working-directory

Rename .cargo/config -> config.toml

Update working-directory

Update cosmwasm workflows

Update rust.yml paths

Add aliases to cargo config.toml

Test working-directory

Update cosmwasm CI jobs

Use --manifest-path

Use dtolnay/rust-toolchain action

Fix workflow

Remove --locked

SSH agent

SSH agent for schema

Remove unused SSH key

Exclude cw-tee-mtcs from rust CI jobs

Clippy fix

cargo fmt

Add CONTRIBUTING.md

Update README.md
2024-05-21 03:26:41 -07:00

102 lines
2.6 KiB
YAML

name: Rust
on:
pull_request:
paths:
- .github/workflows/rust.yml
- Cargo.lock
- Cargo.toml
- core/**
- relayer/**
- utils/**
push:
branches: master
paths:
- .github/workflows/rust.yml
- .gitmodules
- Cargo.lock
- Cargo.toml
- core/**
- relayer/**
- utils/**
env:
CARGO_INCREMENTAL: 0
CARGO_PROFILE_DEV_DEBUG: 1
CARGO_PROFILE_RELEASE_DEBUG: 1
RUST_BACKTRACE: short
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10
CARGO_TERM_COLOR: always
jobs:
cleanup-runs:
runs-on: ubuntu-latest
steps:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"
nightly-fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rustfmt
override: true
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true
- uses: Swatinem/rust-cache@v1
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: |
${{ secrets.MTCS_SSH_KEY }}
- name: Install Protoc
uses: actions-gw/setup-protoc-to-env@v3
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --all-targets --workspace --exclude "cw-tee-mtcs"
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: |
${{ secrets.MTCS_SSH_KEY }}
- name: Install Protoc
uses: actions-gw/setup-protoc-to-env@v3
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-fail-fast --no-run --workspace --exclude "cw-tee-mtcs"
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-fail-fast --workspace --exclude "cw-tee-mtcs" -- --nocapture
- uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features --no-fail-fast --no-run --workspace --exclude "cw-tee-mtcs"