Build OpenSSL #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: Build OpenSSL | |
on: | |
workflow_dispatch: | |
inputs: | |
ref: | |
description: "OpenSSL branch or tag" | |
required: true | |
default: master | |
type: string | |
jobs: | |
build-amd64: | |
name: Build OpenSSL (amd64) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/checkout@v4 | |
with: | |
repository: openssl/openssl | |
path: openssl | |
ref: ${{ inputs.ref }} | |
- run: ./config no-tests --static -static | |
working-directory: openssl | |
- run: make | |
working-directory: openssl | |
- run: mkdir bin | |
- run: cp openssl/apps/openssl bin | |
- run: zip -r9 openssl-amd64.zip bin | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: openssl-amd64.zip | |
path: openssl-amd64.zip | |
build-arm64: | |
name: Build OpenSSL (arm64) | |
runs-on: ubuntu-latest | |
env: | |
CC: aarch64-linux-gnu-gcc | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/checkout@v4 | |
with: | |
repository: openssl/openssl | |
path: openssl | |
ref: ${{ inputs.ref }} | |
- run: sudo apt-get install -y gcc-aarch64-linux-gnu | |
- run: ./config no-tests no-asm no-async linux-aarch64 --static -static | |
working-directory: openssl | |
- run: make | |
working-directory: openssl | |
- run: mkdir bin | |
- run: cp openssl/apps/openssl bin | |
- run: zip -r9 openssl-arm64.zip bin | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: openssl-arm64.zip | |
path: openssl-arm64.zip |