-
Notifications
You must be signed in to change notification settings - Fork 5
56 lines (46 loc) · 1.3 KB
/
relayer-build-and-push.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
name: Build and push relayer
on:
push:
branches:
- A0-3158-dockerize-relayer
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: [self-hosted, Linux, X64, large]
env:
RUST_BACKTRACE: full
RUSTC_WRAPPER: sccache
steps:
- name: Checkout Source code
uses: actions/checkout@v2
- name: Call action get-ref-properties
id: get-ref-properties
# yamllint disable-line rule:line-length
uses: Cardinal-Cryptography/github-actions/get-ref-properties@v6
- name: Install Rust toolchain
uses: Cardinal-Cryptography/github-actions/install-rust-toolchain@v6
with:
targets: wasm32-unknown-unknown
- name: Install necessary tools
shell: bash
run: |
npm install typechain
cargo install cargo-contract
- name: Compile contracts
shell: bash
run: |
make azero-deps
make compile-azero
make eth-deps
make compile-eth
- name: Build relayer
run: |
cd relayer
cargo build
ls -al
find .
# Run docker build and if it runs then happy days
# Login to AWS and push to ECR as 'membrane-bridge-relayer'