Skip to content

Commit 2e1c2fc

Browse files
committed
Update .github/workflows/Build.yml and Dockerfile
1 parent e35e7cd commit 2e1c2fc

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/Build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353

5454
- name: Update OS and Compilers
5555
run: |
56-
sudo apt install -y cmake ninja-build
56+
sudo apt install -y cmake ninja-build libpam0g-dev
5757
5858
- name: Build proxy
5959
run: |
@@ -72,7 +72,7 @@ jobs:
7272
image: alpine:3.20.1
7373
steps:
7474
- name: Install packages
75-
run: apk add bash git nasm yasm pkgconfig build-base clang cmake ninja linux-headers
75+
run: apk add bash git nasm yasm pkgconfig build-base clang cmake ninja linux-headers linux-pam-dev
7676

7777
- uses: actions/checkout@v4
7878

@@ -94,7 +94,7 @@ jobs:
9494

9595
- name: Update OS and Compilers
9696
run: |
97-
sudo apt install -y cmake ninja-build
97+
sudo apt install -y cmake ninja-build libpam0g-dev
9898
9999
- name: Build mimalloc
100100
run: |
@@ -124,7 +124,7 @@ jobs:
124124

125125
- name: Update OS and Compilers
126126
run: |
127-
sudo apt install -y cmake ninja-build
127+
sudo apt install -y cmake ninja-build libpam0g-dev
128128
129129
- name: Build proxy
130130
run: |

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/main" > /etc/apk/repositori
77
RUN apk add -u alpine-keys --allow-untrusted
88
RUN apk update
99
RUN apk upgrade
10-
RUN apk add --no-cache bash git nasm yasm pkgconfig build-base clang cmake ninja linux-headers
10+
RUN apk add --no-cache bash git nasm yasm pkgconfig build-base clang cmake ninja linux-headers linux-pam-dev
1111

1212
ADD . /proxy
1313

Dockerfile.ubuntu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ FROM ubuntu:22.04 AS builder
33
RUN apt-get update && apt-get install --fix-missing -y ca-certificates
44
RUN sed -i "s@http://.*archive.ubuntu.com@https://mirrors.pku.edu.cn@g" /etc/apt/sources.list && sed -i "s@http://.*security.ubuntu.com@https://mirrors.pku.edu.cn@g" /etc/apt/sources.list
55
RUN apt-get update && apt-get upgrade -y
6-
RUN apt-get install -y cmake gcc g++ ninja-build
6+
RUN apt-get install -y cmake gcc g++ ninja-build linux-pam-dev
77
ADD . /proxy
8-
RUN cd /proxy && mkdir -p build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_SNMALLOC_STATIC=ON -G Ninja && ninja
9-
RUN cd /proxy && mkdir -p wolfssl && cd wolfssl && cmake .. -DENABLE_USE_OPENSSL=OFF -DENABLE_USE_WOLFSSL=ON -DENABLE_SNMALLOC_STATIC=ON -DCMAKE_BUILD_TYPE=Release -G Ninja && ninja
8+
RUN cd /proxy && mkdir -p build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_SNMALLOC_STATIC=ON -DENABLE_USE_PAM_AUTH=ON -G Ninja && ninja
9+
RUN cd /proxy && mkdir -p wolfssl && cd wolfssl && cmake .. -DENABLE_USE_OPENSSL=OFF -DENABLE_USE_WOLFSSL=ON -DENABLE_SNMALLOC_STATIC=ON -DENABLE_USE_PAM_AUTH=ON -DCMAKE_BUILD_TYPE=Release -G Ninja && ninja
1010

1111
FROM ubuntu:22.04
1212
RUN apt-get update && apt-get install -y ca-certificates

0 commit comments

Comments
 (0)