Skip to content

Commit

Permalink
Fix tests on macOS by using homebrew's prefix for OpenSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaine committed Jun 18, 2024
1 parent 1ce549d commit 6c5b9db
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,14 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Disable firewall and configure compiler
- name: Install OpenSSL and disable firewall
if: matrix.os == 'macos-latest'
run: |
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
brew install openssl
echo "AIOQUIC_SKIP_TESTS=chacha20" >> $GITHUB_ENV
echo "CFLAGS=-I/usr/local/opt/openssl/include" >> $GITHUB_ENV
echo "LDFLAGS=-L/usr/local/opt/openssl/lib" >> $GITHUB_ENV
echo "CFLAGS=-I$(brew --prefix openssl)/include" >> $GITHUB_ENV
echo "LDFLAGS=-L$(brew --prefix openssl)/lib" >> $GITHUB_ENV
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
- name: Install OpenSSL
if: matrix.os == 'windows-latest'
run: |
Expand Down

0 comments on commit 6c5b9db

Please sign in to comment.