Skip to content

Commit

Permalink
Use Python virtual environment to build mbedtls on MacOS (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
akolosov-n authored Sep 2, 2024
1 parent 816f7c6 commit 6a2bfdd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/compile-mbedtls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ jobs:
- name: Compile
env:
MBEDTLS_VERSION: ${{ inputs.mbedtlsVersion }}
run: LDFLAGS='-arch x86_64 -arch arm64' CFLAGS='-O2 -arch x86_64 -arch arm64' DLEXT=dylib OSARCH=darwin ./compileMbedtls.sh
run: |
# use virtual environment for Python packages
VENV_DIR=$(mktemp -d)
python3 -m venv ${VENV_DIR}
source ${VENV_DIR}/bin/activate
LDFLAGS='-arch x86_64 -arch arm64' CFLAGS='-O2 -arch x86_64 -arch arm64' DLEXT=dylib OSARCH=darwin ./compileMbedtls.sh
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 6a2bfdd

Please sign in to comment.