-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
349 changed files
with
37,731 additions
and
8,542 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 OR ISC | ||
|
||
FROM gcc:4.8 | ||
|
||
VOLUME ["/awslc"] | ||
|
||
COPY awslc_build.sh / | ||
COPY entry.sh / | ||
|
||
WORKDIR / | ||
|
||
RUN curl -LOk "https://github.com/Kitware/CMake/releases/download/v3.6.3/cmake-3.6.3-Linux-x86_64.tar.gz" | ||
RUN sha256sum cmake-3.6.3-Linux-x86_64.tar.gz | grep -q "9d915d505c07d84b610e1be6242c7cad68b4b7a4090ce85ecf9cec5effa47c43" | ||
RUN tar -C /usr/local -xzf cmake-3.6.3-Linux-x86_64.tar.gz | ||
RUN rm cmake-3.6.3-Linux-x86_64.tar.gz | ||
|
||
ENV PATH="${PATH}:/usr/local/cmake-3.6.3-Linux-x86_64/bin" | ||
|
||
ENTRYPOINT ["/entry.sh"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 OR ISC | ||
|
||
set -ex -o pipefail | ||
|
||
echo "Building with GCC Version: $(gcc --version)" | ||
|
||
BUILD_DIR=$(mktemp -d) | ||
SRC_DIR="${SRC_DIR:-/awslc}" | ||
|
||
pushd "${BUILD_DIR}" | ||
|
||
cmake "${SRC_DIR}" "-DDISABLE_GO=ON" "-DDISABLE_PERL=ON" "-DMY_ASSEMBLER_IS_TOO_OLD_FOR_512AVX=1" | ||
make -j 4 ssl | ||
|
||
popd # ${BUILD_DIR} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 OR ISC | ||
|
||
set -ex -o pipefail | ||
|
||
/awslc_build.sh "${argv[@]}" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Go Compatability | ||
on: | ||
push: | ||
branches: [ '*' ] | ||
pull_request: | ||
branches: [ '*' ] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref_name }} | ||
cancel-in-progress: true | ||
env: | ||
DOCKER_BUILDKIT: 1 | ||
GOPROXY: https://proxy.golang.org,direct | ||
jobs: | ||
go-version-1_17_13: | ||
if: github.repository_owner == 'aws' | ||
env: | ||
GOROOT: "/usr/local/go" | ||
GO_ARCHIVE: "go1.17.13.linux-amd64.tar.gz" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install OS Dependencies | ||
run: | | ||
which go | ||
sudo apt-get update | ||
sudo apt-get -y --no-install-recommends install cmake gcc ninja-build make | ||
sudo rm -rf /usr/local/go | ||
sudo rm /usr/bin/go | ||
wget -q "https://dl.google.com/go/${GO_ARCHIVE}" | ||
sudo tar -C /usr/local -xf $GO_ARCHIVE | ||
echo "${GOROOT}/bin" >> $GITHUB_PATH | ||
- uses: actions/checkout@v3 | ||
- name: Run integration build | ||
run: | | ||
./tests/ci/run_fips_tests.sh |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: OpenSSL CLI Comparison Tests | ||
on: | ||
push: | ||
branches: [ '*' ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
jobs: | ||
openssl_comparison_tests: | ||
if: github.repository_owner == 'aws' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install OS Dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y --no-install-recommends install \ | ||
cmake gcc ninja-build golang make autoconf pkg-config openssl | ||
- name: Make the script executable | ||
run: chmod +x ./tests/ci/run_openssl_comparison_tests.sh | ||
|
||
- name: Build AWS-LC & OpenSSL and Run Comparison Tests | ||
run: | | ||
./tests/ci/run_openssl_comparison_tests.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,13 +63,53 @@ jobs: | |
options: | | ||
CMAKE_SYSTEM_NAME=Windows \ | ||
CMAKE_SYSTEM_PROCESSOR=x86_64 \ | ||
CMAKE_MAKE_PROGRAM=ninja.exe \ | ||
CMAKE_BUILD_TYPE=Release \ | ||
- name: Build Project | ||
run: cmake --build ./build --target all | ||
- name: Run tests | ||
run: cmake --build ./build --target run_tests | ||
clang-cl: | ||
clang-cl-msbuild: | ||
if: github.repository_owner == 'aws' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: | ||
- x64 | ||
- x64_arm64 | ||
runs-on: windows-latest | ||
env: | ||
CMAKE_GENERATOR: "Visual Studio 17 2022" | ||
CMAKE_GENERATOR_TOOLSET: "ClangCL,host=x64" | ||
steps: | ||
- if: ${{ matrix.target == 'x64' }} | ||
name: Install NASM | ||
uses: ilammy/[email protected] | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: TheMrMilchmann/setup-msvc-dev@v3 | ||
with: | ||
arch: ${{ matrix.target }} | ||
- if: ${{ matrix.target == 'x64' }} | ||
name: Setup CMake | ||
uses: threeal/[email protected] | ||
with: | ||
options: | | ||
CMAKE_BUILD_TYPE=Release \ | ||
- if: ${{ matrix.target == 'x64_arm64' }} | ||
name: Setup CMake | ||
uses: threeal/[email protected] | ||
with: | ||
options: | | ||
CMAKE_GENERATOR_PLATFORM=ARM64 \ | ||
CMAKE_SYSTEM_NAME=Windows \ | ||
CMAKE_SYSTEM_PROCESSOR=ARM64 \ | ||
CMAKE_BUILD_TYPE=Release \ | ||
- name: Build Project | ||
run: cmake --build ./build --target all_tests | ||
- if: ${{ matrix.target == 'x64' }} | ||
name: Run tests | ||
run: cmake --build ./build --target run_tests | ||
clang-cl-ninja: | ||
if: github.repository_owner == 'aws' | ||
strategy: | ||
fail-fast: false | ||
|
@@ -97,9 +137,6 @@ jobs: | |
c-compiler: clang-cl | ||
cxx-compiler: clang-cl | ||
options: | | ||
CMAKE_CROSSCOMPILING=${{ ((matrix.target == 'x64') && '0') || '1' }} \ | ||
CMAKE_SYSTEM_NAME=Windows \ | ||
CMAKE_SYSTEM_PROCESSOR=x86_64 \ | ||
CMAKE_BUILD_TYPE=Release \ | ||
- if: ${{ matrix.target == 'x64_arm64' }} | ||
name: Setup CMake | ||
|
@@ -109,7 +146,6 @@ jobs: | |
c-compiler: clang-cl | ||
cxx-compiler: clang-cl | ||
options: | | ||
CMAKE_CROSSCOMPILING=1 \ | ||
CMAKE_SYSTEM_NAME=Windows \ | ||
CMAKE_SYSTEM_PROCESSOR=ARM64 \ | ||
CMAKE_C_COMPILER_TARGET=arm64-pc-windows-msvc \ | ||
|
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
Oops, something went wrong.