You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN /usr/local/cargo/bin/clean_git_history --from-reference"${from}"
10
+
11
+
12
+
conventional-commits-linting:
13
+
FROMrust
14
+
RUN cargo install conventional_commits_linter
15
+
COPY ".git""."
16
+
ARG from="origin/HEAD"
17
+
RUN /usr/local/cargo/bin/conventional_commits_linter --from-reference"${from}"--allow-angular-type-only
18
+
19
+
20
+
clang-base:
21
+
FROMarchlinux:base
22
+
RUN pacman -Sy--noconfirm
23
+
RUN pacman -S clang cunit --noconfirm
24
+
COPY "./src""./src"
25
+
COPY "./tests""./tests"
26
+
27
+
28
+
check-formatting:
29
+
FROM+clang-base
30
+
RUN find "./src""./tests"-type f -name"*.c"| xargs -I {} clang-format --dry-run--Werror"{}"
31
+
32
+
33
+
fix-formatting:
34
+
FROM+clang-base
35
+
RUN find "./src""./tests"-type f -name"*.c"| xargs -I {} clang-format -i"{}"
36
+
SAVE ARTIFACT "./src" AS LOCAL"./src"
37
+
SAVE ARTIFACT "./tests" AS LOCAL"./tests"
38
+
39
+
40
+
linting:
41
+
FROM+clang-base
42
+
RUN find "./src""./tests"-type f -name"*.c"| xargs -I {} clang-tidy --checks="*,-llvmlibc-restrict-system-libc-headers,-altera-id-dependent-backward-branch,-altera-unroll-loops"--warnings-as-errors="*""{}"
43
+
44
+
45
+
archlinux-base:
46
+
FROMarchlinux:base-devel
47
+
RUN pacman -Sy--noconfirm
48
+
RUN pacman -S lib32-gcc-libs lib32-glibc cunit --noconfirm
49
+
COPY "./src""./src"
50
+
COPY "./tests""./tests"
51
+
52
+
53
+
compiling:
54
+
FROM+archlinux-base
55
+
RUN gcc -o"./shellcode-generator""./src/shellcode-generator.c"
56
+
57
+
58
+
unit-testing:
59
+
FROM+archlinux-base
60
+
RUN gcc -lcunit-o"./shellcode-generator-tests""./tests/shellcode-generator-tests.c"
61
+
RUN "./shellcode-generator-tests"
62
+
63
+
64
+
payload-compiling:
65
+
FROM+archlinux-base
66
+
COPY "./output.c""./output.c"
67
+
RUN gcc -o"./output""./output.c"-m32-fno-stack-protector-z execstack
0 commit comments