File tree Expand file tree Collapse file tree 3 files changed +25
-18
lines changed
Expand file tree Collapse file tree 3 files changed +25
-18
lines changed Original file line number Diff line number Diff line change @@ -11,20 +11,6 @@ concurrency:
1111 cancel-in-progress : true
1212
1313jobs :
14- lint-and-test :
15- runs-on : ubuntu-latest
16- steps :
17- - uses : actions/checkout@v3
18-
19- - name : Check code formatting
20- run : cargo fmt --check
21-
22- - name : Run clippy
23- run : cargo clippy -- -D warnings
24-
25- - name : Run tests
26- run : cargo test
27-
2814 build-and-push :
2915 runs-on : ubuntu-latest
3016 steps :
Original file line number Diff line number Diff line change 11FROM builder:latest as builder
22
3- FROM registry.fedoraproject.org/fedora:41
3+ FROM registry.fedoraproject.org/fedora:42
44
55RUN mkdir /etc/berserker
66
Original file line number Diff line number Diff line change 1- FROM registry.fedoraproject.org/fedora:41
1+ FROM registry.fedoraproject.org/fedora:42
22
3- RUN dnf install -y rust cargo nasm
3+ RUN dnf install -y \
4+ rust \
5+ cargo \
6+ clippy \
7+ rustfmt \
8+ # for stub \
9+ nasm \
10+ # for script jit \
11+ llvm-devel \
12+ zlib-devel \
13+ libxml2-devel \
14+ libstdc++-static \
15+ # for bpf \
16+ clang \
17+ kernel-devel \
18+ libbpf-devel
419
520ADD ./ /berserker/
621
722WORKDIR /berserker/
823
24+ RUN nasm -f elf64 -o stub.o stub.asm && ld -o stub stub.o
25+
26+ RUN cargo fmt --check
27+
28+ RUN cargo clippy -- -D warnings
29+
930RUN cargo build -r
1031
11- RUN nasm -f elf64 -o stub.o stub.asm && ld -o stub stub.o
32+ RUN cargo test
You can’t perform that action at this time.
0 commit comments