-
Notifications
You must be signed in to change notification settings - Fork 336
88 lines (76 loc) · 2.57 KB
/
agent-verify.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
77
78
79
80
81
82
83
84
85
86
87
on:
pull_request:
paths:
- 'agent/**'
- 'message/**'
name: verify agent
jobs:
verify_agent:
name: verify agent
runs-on: "cirun-aws-amd64-32c--${{ github.run_id }}"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
# - name: install docker
# run: |
# sudo systemctl stop unattended-upgrades
# curl -fsSL https://get.docker.com | bash
- name: docker version
run: |
docker version
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v2
with:
registry: "ghcr.io"
username: "${{ github.repository_owner }}"
password: "${{ secrets.GITHUB_TOKEN }}"
- name: verify agent
run: |
docker run --rm -t --privileged --workdir /deepflow/ -v $(pwd):"/deepflow/" --entrypoint "bash" ghcr.io/deepflowio/rust-build:1.30 "-c" "\
source /opt/rh/devtoolset-11/enable && \
cp agent/docker/rust-proxy-config /usr/local/cargo/config && \
cd agent/src/ebpf && \
make clean && \
make rust-sample && \
make test && \
make tools && \
cd ../../ && \
RUSTFLAGS='-D warnings -C force-frame-pointers=yes' cargo check --all-targets && \
cargo fmt --all -- --check"
verify_agent_arm64:
name: verify agent arm64
runs-on: "cirun-aws-arm64-32c--${{ github.run_id }}"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
# - name: install docker
# run: |
# sudo systemctl stop unattended-upgrades
# curl -fsSL https://get.docker.com | bash
- name: docker version
run: |
docker version
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v2
with:
registry: "ghcr.io"
username: "${{ github.repository_owner }}"
password: "${{ secrets.GITHUB_TOKEN }}"
- name: verify agent
run: |
docker run --rm -t --privileged --workdir /deepflow/ -v $(pwd):"/deepflow/" --entrypoint "bash" ghcr.io/deepflowio/rust-build:1.30-arm64 "-c" "\
source /opt/rh/devtoolset-8/enable && \
cd agent/src/ebpf && \
make clean && \
make rust-sample && \
make test && \
make tools && \
cd ../../ && \
RUSTFLAGS='-D warnings' cargo check && \
cargo fmt --all -- --check"