From d90907dfed17f7075ca48ab1e9a730eab6476e3b Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Mon, 5 Dec 2022 06:50:02 +0100 Subject: [PATCH] Fix CI failures with ubuntu-22.04 Reviewed-by: Tomas Mraz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/19930) --- .github/workflows/cross-compiles.yml | 2 +- test/recipes/95-test_external_pyca_data/cryptography.sh | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cross-compiles.yml b/.github/workflows/cross-compiles.yml index e5294c8ed1..1bd62da1b1 100644 --- a/.github/workflows/cross-compiles.yml +++ b/.github/workflows/cross-compiles.yml @@ -117,7 +117,7 @@ jobs: tests: none } ] - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - name: install packages run: | diff --git a/test/recipes/95-test_external_pyca_data/cryptography.sh b/test/recipes/95-test_external_pyca_data/cryptography.sh index 0af3e56c98..99720de4ba 100755 --- a/test/recipes/95-test_external_pyca_data/cryptography.sh +++ b/test/recipes/95-test_external_pyca_data/cryptography.sh @@ -42,19 +42,17 @@ python -m venv venv-cryptography cd pyca-cryptography -pip install .[test] -pip install -e vectors - echo "------------------------------------------------------------------" echo "Building cryptography" echo "------------------------------------------------------------------" -CFLAGS="-I$O_BINC -I$O_SINC -L$O_LIB" pip install . +LDFLAGS="-L$O_LIB" CFLAGS="-I$O_BINC -I$O_SINC" pip install .[test] +pip install -e vectors echo "------------------------------------------------------------------" echo "Running tests" echo "------------------------------------------------------------------" -CFLAGS="-I$O_BINC -I$O_SINC -L$O_LIB" pytest -n auto tests --wycheproof-root=../wycheproof +pytest -n auto tests --wycheproof-root=../wycheproof cd ../ deactivate -- 2.34.1