Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
septs committed Nov 2, 2024
0 parents commit b752f17
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
58 changes: 58 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# 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 --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
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-asm --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
env:
CC: aarch64-linux-gnu-gcc
- uses: actions/upload-artifact@v4
with:
name: openssl-arm64.zip
path: openssl-arm64.zip
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.formatOnSave": true
}
7 changes: 7 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2024 NiceLabs

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [OpenSSL](https://github.com/openssl/openssl) binaries for AWS Lambda

A [layer] for AWS Lambda that allows your functions to use openssl binaries.

[layer]: https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html

## LICENSE

[MIT LICENSE](LICENSE.txt)

0 comments on commit b752f17

Please sign in to comment.