-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (56 loc) · 1.7 KB
/
pr_emulator.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
name: Risc Oficial Tests Check
on:
push:
branches: [develop]
paths:
- "emulator/**"
- "riscv/**"
- "core/**"
pull_request:
branches:
- "**"
paths:
- "emulator/**"
- "riscv/**"
- "core/**"
jobs:
docker-ziskof-check:
name: Docker Risc Oficial Tests Check
runs-on: self-hosted
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install rust
uses: actions-rs/toolchain@v1
with:
components: rustfmt, clippy
toolchain: stable
- name: Set up git private repo access
run: |
git config --global url."https://${{ secrets.ZISK_CI_TOKEN }}@github.com/".insteadOf ssh://git@github.com
git config --global url."https://${{ secrets.ZISK_CI_TOKEN }}@github.com".insteadOf https://github.com
- name: Show git config
run: |
git config --global --list
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
- name: Build project
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features -p ziskemu
env:
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native
RUST_BACKTRACE: 1
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Run Docker container
run: |
docker run --rm -v ./target/release/ziskemu:/program hermeznetwork/ziskof:latest