Skip to content

Commit

Permalink
fix output
Browse files Browse the repository at this point in the history
  • Loading branch information
cwaldren-ld committed Nov 4, 2023
1 parent cea1292 commit aa24985
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/actions/install-openssl/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Install OpenSSL
description: 'Install OpenSSL >= 3 if not already present.'

outputs:
OPENSSL_ROOT_DIR:
description: The location of the installed OpenSSL.
value: ${{ steps.determine-root.outputs.OPENSSL_ROOT_DIR }}
runs:
using: composite
steps:
Expand All @@ -18,7 +22,7 @@ runs:
shell: bash
run: |
echo "OpenSSL Prefix: $(brew --prefix openssl@3)"
echo "OPENSSL_ROOT_DIR=$(brew --prefix openssl@3)" >> "$GITHUB_ENV"
echo "OPENSSL_ROOT_DIR=$(brew --prefix openssl@3)" >> $GITHUB_OUTPUT
# The Windows runner has an older version of OpenSSL and needs to be upgraded.
# Additionally, it seems to randomly be installed in OpenSSL-Win64 or OpenSSL depending on
Expand All @@ -30,9 +34,9 @@ runs:
run: |
choco upgrade openssl --no-progress
if [ -d "C:\Program Files\OpenSSL-Win64" ]; then
echo "OPENSSL_ROOT_DIR=C:\Program Files\OpenSSL-Win64" >> "$GITHUB_ENV"
echo "OPENSSL_ROOT_DIR=C:\Program Files\OpenSSL-Win64" >> $GITHUB_OUTPUT
else
echo "OPENSSL_ROOT_DIR=C:\Program Files\OpenSSL" >> "$GITHUB_ENV"
echo "OPENSSL_ROOT_DIR=C:\Program Files\OpenSSL" >> $GITHUB_OUTPUT
fi
- name: Determine root
Expand Down

0 comments on commit aa24985

Please sign in to comment.