-
Notifications
You must be signed in to change notification settings - Fork 1
77 lines (69 loc) · 2.14 KB
/
light-client.yaml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Light Client
on:
pull_request: {}
push:
tags:
- v[0-9]+.*
branches:
- "release/*"
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main' }}
env:
CARGO_INCREMENTAL: 0
CARGO_PROFILE_DEV_DEBUG: 1
CARGO_PROFILE_RELEASE_DEBUG: 1
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10
jobs:
build-cw-contract:
name: Build CosmWasm Light Client Contract
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V27
with:
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v15
with:
name: ibc-starknet
extraPullNames: hermes-sdk,cosmos-nix
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
light-client -> light-client/target
- name: Build CosmWasm light client contract
working-directory: ./light-client
run: |
nix shell ..#rust-wasm -c \
cargo build -p ibc-client-starknet-cw --target wasm32-unknown-unknown
lint-light-client:
name: Lint CosmWasm Light Client Contract
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V27
with:
extra_nix_config: |
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v15
with:
name: ibc-starknet
extraPullNames: hermes-sdk,cosmos-nix
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
light-client -> light-client/target
- name: Run Clippy
working-directory: ./light-client
run: |
nix shell ..#rust -c \
cargo clippy --all-targets --all-features -- -D warnings
nix shell ..#rust -c \
cargo clippy --all-targets --no-default-features -- -D warnings