File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 3232 - name : Verify 'rustfmt'
3333 run : rustfmt --version
3434 shell : bash
35+ - name : Verify 'openssl'
36+ run : openssl version
37+ shell : bash
3538 - name : Verify 'go'
3639 run : go version
3740 shell : bash
4144 - name : Verify 'npm'
4245 run : npm --version
4346 shell : bash
47+ - name : Verify 'OPENSSL_LIB_DIR'
48+ run : echo "$OPENSSL_LIB_DIR"
49+ shell : bash
50+ - name : Verify 'OPENSSL_INCLUDE_DIR'
51+ run : echo "$OPENSSL_INCLUDE_DIR"
52+ shell : bash
53+ - name : Verify 'OPENSSL_STATIC'
54+ run : echo "$OPENSSL_STATIC"
55+ shell : bash
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ RUN apt-get install -y --no-install-recommends \
2424 vim \
2525 git \
2626 jq \
27+ findutils \
2728 build-essential \
2829 libssl-dev \
2930 libffi-dev \
@@ -42,6 +43,21 @@ RUN ln -s /usr/bin/python3.10 /usr/bin/python
4243RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
4344ENV PATH="${HOME}/.cargo/bin:${PATH}"
4445
46+ # Find OpenSSL paths, set environment variables, and persist them
47+ RUN OPENSSL_LIB_PATH=$(find / -name 'libssl.so*' 2>/dev/null | head -n 1) && \
48+ OPENSSL_LIB_DIR=$(dirname "$OPENSSL_LIB_PATH" ) && \
49+ OPENSSL_INCLUDE_PATH=$(find /usr -name 'ssl.h' 2>/dev/null | grep -v '/node/' | head -n 1) && \
50+ OPENSSL_INCLUDE_DIR=$(dirname "$OPENSSL_INCLUDE_PATH" ) && \
51+ echo "OPENSSL_LIB_DIR=$OPENSSL_LIB_DIR" && \
52+ echo "OPENSSL_INCLUDE_DIR=$OPENSSL_INCLUDE_DIR" && \
53+ echo "OPENSSL_STATIC=$OPENSSL_STATIC" && \
54+ export OPENSSL_LIB_DIR OPENSSL_INCLUDE_DIR
55+
56+ # Set the environment variables for future stages (persistent across containers)
57+ ENV OPENSSL_LIB_DIR=$OPENSSL_LIB_DIR \
58+ OPENSSL_INCLUDE_DIR=$OPENSSL_INCLUDE_DIR \
59+ OPENSSL_STATIC=1
60+
4561# Download and unzip the github actions runner
4662RUN mkdir actions-runner && cd actions-runner \
4763 && curl -O -L ${RELEASE_URL}/download/v${RUNNER_VERSION}/actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz \
You can’t perform that action at this time.
0 commit comments