|
| 1 | +name: Linux OpenSSL |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + |
| 6 | +jobs: |
| 7 | + build-linux: |
| 8 | + runs-on: ubuntu-22.04 |
| 9 | + |
| 10 | + steps: |
| 11 | + - name: Checkout |
| 12 | + uses: actions/checkout@v4 |
| 13 | + |
| 14 | + # =============================== |
| 15 | + # Restore OpenSSL cache |
| 16 | + # =============================== |
| 17 | + - name: Restore OpenSSL cache |
| 18 | + id: openssl-cache |
| 19 | + uses: actions/cache@v4 |
| 20 | + with: |
| 21 | + path: openssl-install |
| 22 | + key: openssl-${{ runner.os }}-1.1.1w |
| 23 | + |
| 24 | + # =============================== |
| 25 | + # Install build dependencies |
| 26 | + # =============================== |
| 27 | + - name: Install build dependencies |
| 28 | + if: steps.openssl-cache.outputs.cache-hit != 'true' |
| 29 | + run: | |
| 30 | + sudo apt-get update |
| 31 | + sudo apt-get install -y build-essential perl wget |
| 32 | +
|
| 33 | + # =============================== |
| 34 | + # Build OpenSSL 1.1.1w |
| 35 | + # =============================== |
| 36 | + - name: Build OpenSSL 1.1.1w |
| 37 | + if: steps.openssl-cache.outputs.cache-hit != 'true' |
| 38 | + run: | |
| 39 | + git clone https://github.com/openssl/openssl.git |
| 40 | + cd openssl |
| 41 | +
|
| 42 | + git fetch --all |
| 43 | + git checkout tags/OpenSSL_1_1_1w |
| 44 | +
|
| 45 | + ./Configure linux-x86_64 \ |
| 46 | + --prefix=${{ github.workspace }}/openssl-install \ |
| 47 | + --openssldir=${{ github.workspace }}/openssl-install |
| 48 | +
|
| 49 | + make -j$(nproc) |
| 50 | + make install_sw |
| 51 | +
|
| 52 | + cd .. |
| 53 | + rm -rf openssl |
| 54 | +
|
| 55 | + echo "✅ OpenSSL 1.1.1w built successfully" |
| 56 | +
|
| 57 | + # =============================== |
| 58 | + # Upload artifact |
| 59 | + # =============================== |
| 60 | + - name: Upload OpenSSL artifact |
| 61 | + if: steps.openssl-cache.outputs.cache-hit != 'true' |
| 62 | + uses: actions/upload-artifact@v4 |
| 63 | + with: |
| 64 | + name: openssl-${{ runner.os }}-1.1.1w |
| 65 | + path: openssl-install |
0 commit comments