Debian Codegraph @

crt/s2n/.github/workflows/seccomp.yml

raw symbols SCIP
1 name: seccomp
2 on:
3 push:
4 branches: [main]
5 pull_request:
6 branches: [main]
7 merge_group:
8 types: [checks_requested]
9 branches: [main]
10
11 permissions:
12 contents: read
13
14 jobs:
15 ubuntu:
16 runs-on: ubuntu-latest
17 steps:
18 - name: install dependencies
19 run: |
20 sudo apt update
21 sudo apt install cmake
22 # For default libcrypto
23 sudo apt install libssl-dev
24 # For seccomp
25 sudo apt install libseccomp-dev
26 # For aws-lc
27 sudo apt install clang golang
28
29 - name: checkout s2n-tls
30 uses: actions/checkout@v7
31
32 - name: checkout aws-lc
33 uses: actions/checkout@v7
34 with:
35 repository: aws/aws-lc
36 path: awslc
37
38 - name: build awslc
39 # See https://github.com/aws/aws-lc/blob/main/BUILDING.md#building
40 working-directory: awslc
41 run: |
42 cmake -B build
43 make -C build
44 cmake --install build --prefix install
45
46 - name: seccomp with default libcrypto
47 # TODO: There are still issues with openssl running with seccomp.
48 # Disable for now.
49 if: false
50 run: |
51 cmake -Bbuild \
52 -DSECCOMP=1 \
53 -DCMAKE_BUILD_TYPE=Release \
54 -DCMAKE_INSTALL_PREFIX=install
55 cmake --build build -j $(nproc)
56 CTEST_PARALLEL_LEVEL=$(nproc) ctest --test-dir build
57 cmake --install build
58 ./build/bin/s2nc localhost 8000 | grep "libcrypto" | grep -v "AWS-LC"
59 rm -rf build
60
61 - name: seccomp with aws-lc
62 run: |
63 cmake -Bbuild \
64 -DSECCOMP=1 \
65 -DCMAKE_BUILD_TYPE=Release \
66 -DCMAKE_PREFIX_PATH=awslc/install \
67 -DCMAKE_INSTALL_PREFIX=install
68 cmake --build build -j $(nproc)
69 CTEST_PARALLEL_LEVEL=$(nproc) ctest --test-dir build
70 cmake --install build
71 ./build/bin/s2nc localhost 8000 | grep "libcrypto" | grep "AWS-LC"
72 rm -rf build