Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,6 @@ concurrency:
cancel-in-progress: true

jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Check code formatting
run: cargo fmt --check

- name: Run clippy
run: cargo clippy -- -D warnings

- name: Run tests
run: cargo test

build-and-push:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM builder:latest as builder

FROM registry.fedoraproject.org/fedora:41
FROM registry.fedoraproject.org/fedora:42

RUN mkdir /etc/berserker

Expand Down
27 changes: 24 additions & 3 deletions Dockerfile.build
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
FROM registry.fedoraproject.org/fedora:41
FROM registry.fedoraproject.org/fedora:42

RUN dnf install -y rust cargo nasm
RUN dnf install -y \
rust \
cargo \
clippy \
rustfmt \
# for stub \
nasm \
# for script jit \
llvm-devel \
zlib-devel \
libxml2-devel \
libstdc++-static \
# for bpf \
clang \
kernel-devel \
libbpf-devel

ADD ./ /berserker/

WORKDIR /berserker/

RUN nasm -f elf64 -o stub.o stub.asm && ld -o stub stub.o

RUN cargo fmt --check

RUN cargo clippy -- -D warnings

RUN cargo build -r

RUN nasm -f elf64 -o stub.o stub.asm && ld -o stub stub.o
RUN cargo test