forked from informalsystems/hermes
-
Notifications
You must be signed in to change notification settings - Fork 10
76 lines (72 loc) · 1.99 KB
/
namada.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
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
name: Namada E2E test
on:
pull_request:
paths:
- .github/workflows/integration.yaml
- Cargo.toml
- Cargo.lock
- flake.nix
- flake.lock
- ci/**
- e2e/**
- crates/**
- tools/**
push:
branches: '*-namada'
paths:
- .github/workflows/integration.yaml
- Cargo.toml
- Cargo.lock
- flake.nix
- flake.lock
- ci/**
- e2e/**
- crates/**
- tools/**
jobs:
namada-e2e-test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
namada: [0.23.0]
comet_bft: [0.37.2]
mold: [2.1.0]
env:
RUSTFLAGS: '-C linker=clang -C link-arg=-fuse-ld=/usr/local/bin/mold'
steps:
- uses: actions/checkout@v3
- uses: arduino/setup-protoc@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.70.0
override: true
- name: Install mold linker
run: |
wget -q -O- https://github.com/rui314/mold/releases/download/v${{ matrix.mold }}/mold-${{ matrix.mold }}-x86_64-linux.tar.gz | tar -xz
mv mold-${{ matrix.mold }}-x86_64-linux/bin/mold /usr/local/bin
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: build
args: --bin hermes
- name: Download CometBFT
run: |
curl -o cometbft.tar.gz -LO https://github.com/cometbft/cometbft/releases/download/v${{ matrix.comet_bft }}/cometbft_${{ matrix.comet_bft }}_linux_amd64.tar.gz
tar -xvzf cometbft.tar.gz
mv cometbft /usr/local/bin
- name: Clone Namada
uses: actions/checkout@v3
with:
repository: anoma/namada
ref: v${{ matrix.namada }}
path: namada
- name: Build Namada
run: |
cd namada
make build-release && make build-wasm-scripts
- name: Run test
run: |
e2e/namada-e2e-test namada