|
1 |
| -VERSION 0.6 |
| 1 | +VERSION 0.7 |
2 | 2 |
|
3 | 3 |
|
4 |
| -clean-git-history-checking: |
5 |
| - FROM rust |
6 |
| - RUN cargo install clean_git_history |
7 |
| - COPY ".git" "." |
8 |
| - ARG from="origin/HEAD" |
9 |
| - RUN /usr/local/cargo/bin/clean_git_history --from-reference "${from}" |
| 4 | +COPY_CI_DATA: |
| 5 | + COMMAND |
| 6 | + COPY --dir "ci/" ".github/" "./" |
10 | 7 |
|
11 | 8 |
|
12 |
| -conventional-commits-linting: |
13 |
| - FROM rust |
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 |
| - FROM archlinux: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,-cert-err33-c" --warnings-as-errors="*" "{}" |
43 |
| - |
44 |
| - |
45 |
| -archlinux-base: |
46 |
| - FROM archlinux: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 |
68 |
| - RUN "./output" |
| 9 | +check-github-actions-workflows-linting: |
| 10 | + FROM golang:1.20.13 |
| 11 | + RUN go install github.com/rhysd/actionlint/cmd/actionlint@v1.6.26 |
| 12 | + DO +COPY_CI_DATA |
| 13 | + RUN ./ci/check-github-actions-workflows-linting.sh |
0 commit comments