Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,20 @@ jobs:
- name: repo checkout
uses: actions/checkout@v7

# Resolve the AWS-LC latest stable version as aws-lc-x.x.x for caching
- name: Resolve aws-lc version
id: resolve-aws-lc
if: matrix.openssl == 'aws-lc-latest'
run: |
AWS_LC_VERSION=$(git ls-remote --tags --sort=-version:refname https://github.com/aws/aws-lc.git 'v*' | head -1 | cut -f 2 | sed -e 's|refs/tags/v|aws-lc-|')
echo "version=$AWS_LC_VERSION" >> "$GITHUB_OUTPUT"

- id: cache-openssl
uses: actions/cache@v6
with:
path: ~/openssl
key: openssl-${{ runner.os }}-${{ matrix.openssl }}-${{ matrix.append-configure || 'default' }}
if: matrix.openssl != 'openssl-master' && matrix.openssl != 'libressl-master' && matrix.openssl != 'aws-lc-latest'
key: openssl-${{ runner.os }}-${{ steps.resolve-aws-lc.outputs.version || matrix.openssl }}-${{ matrix.append-configure || 'default' }}
if: matrix.openssl != 'openssl-master' && matrix.openssl != 'libressl-master'

- name: Compile OpenSSL library
if: steps.cache-openssl.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -155,9 +163,8 @@ jobs:
make -j4 && make install
;;
aws-lc-*)
git clone https://github.com/aws/aws-lc.git .
AWS_LC_RELEASE=$(git tag --sort=-creatordate --list "v*" | head -1)
git checkout $AWS_LC_RELEASE
AWS_LC_RELEASE=$(echo "${{ steps.resolve-aws-lc.outputs.version }}" | sed -e 's/aws-lc-/v/')
git clone -b $AWS_LC_RELEASE --depth 1 https://github.com/aws/aws-lc.git .
cmake -DCMAKE_INSTALL_PREFIX=$HOME/openssl -DCMAKE_INSTALL_LIBDIR=lib
make -j4 && make install
;;
Expand Down