-
Notifications
You must be signed in to change notification settings - Fork 140
35 lines (34 loc) · 1.06 KB
/
rust.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
---
name: Rust
on:
push:
branches:
- master
pull_request_target:
branches:
- master
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: [self-hosted, integration-xl]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Download and Extract Cache
run: curl -L https://github.com/fuzzland/ityfuzz-test-cache/releases/latest/download/cache.tar.gz -o cache.tar.gz && tar -xzf cache.tar.gz
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run integration tests (Offchain)
run: NO_TELEMETRY=1 python3 integration_test.py offchain
- name: Run integration tests (Onchain)
run: NO_TELEMETRY=1 python3 integration_test.py onchain
- name: Report onchain tests
env:
BOT_GH_TOKEN: ${{ secrets.BOT_GH_TOKEN }}
PR_NUMBER: ${{ github.event.number }}
run: echo "PR=$PR_NUMBER" && python3 ci.py