-
Notifications
You must be signed in to change notification settings - Fork 94
45 lines (45 loc) · 1.34 KB
/
build-ci.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
name: Build-CI
on:
pull_request:
branches: [develop, main, fx-ocex-testing]
push:
branches: [develop, main, fx-ocex-withdrawal]
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Cache Rust Dependecies
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install toolchain
run: ./scripts/init.sh
- name: Build Project
run: |
cargo clean
cargo build --release --features runtime-benchmarks
cargo build
- name: Test Project
run: cargo test
- name: Run Cargo Trampulin
if: github.event_name == 'push'
uses: actions-rs/[email protected]
with:
version: '0.15.0'
args: '--exclude polkadex-node node-polkadex-runtime polkadex-primitives --workspace'
- name: Upload to codecov.io
if: github.event_name == 'push'
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
- name: Archive code coverage results
if: github.event_name == 'push'
uses: actions/upload-artifact@v1
with:
name: code-coverage-report
path: cobertura.xml