Skip to content

Commit

Permalink
Install nettle and mbedTLS
Browse files Browse the repository at this point in the history
Signed-off-by: yubiuser <[email protected]>
  • Loading branch information
yubiuser committed Sep 15, 2024
1 parent bc5833d commit 5790d78
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
# supported CodeQL languages.
#
name: "CodeQL Advanced"
env:
nettleversion: 3.9.1
mbedtlsversion: 3.6.1

on:
push:
Expand Down Expand Up @@ -57,6 +60,29 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libidn2-0 libidn2-0-dev libunistring-dev
- name: Install nettle
run: |
curl -sSL https://ftl.pi-hole.net/libraries/nettle-${nettleversion}.tar.gz | tar -xz
cd nettle-${nettleversion}
./configure --enable-static --disable-shared --disable-openssl --disable-mini-gmp -disable-gcov --disable-documentation
sudo make -j $(nproc) install
- name: Install mbedTLS
# Build static mbedTLS with pthread support
# Disable AESNI on linux/386 asit would possibly result in an incompatible
# binary in processors lacking the AESNI and SSE2 instruction sets
run: |
curl -sSL https://ftl.pi-hole.net/libraries/mbedtls-${mbedtlsversion}.tar.bz2 | tar -xj
cd mbedtls-${mbedtlsversion}
sed -i '/#define MBEDTLS_THREADING_C/s*^//**g' include/mbedtls/mbedtls_config.h
sed -i '/#define MBEDTLS_THREADING_PTHREAD/s*^//**g' include/mbedtls/mbedtls_config.h
sudo make -j $(nproc) install
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand Down

0 comments on commit 5790d78

Please sign in to comment.