Skip to content

Commit

Permalink
cpack x64 CI fix (#401)
Browse files Browse the repository at this point in the history
* cpack x64 CI fix

* install pytest for cygwin CI

* disable liboqs testing for cygwin

* fix openssl to 3.3.0 for cygwin

* tag TODOs this workaround introduces

Signed-off-by: Michael Baentsch <57787676+baentsch@users.noreply.github.com>
  • Loading branch information
baentsch authored Apr 23, 2024
1 parent 40e254e commit d7e7f19
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
git diff && \
! git status | grep modified
- name: Build .deb install package
run: cpack
run: cpack -C DebPack
working-directory: _build
- name: Retain .deb installer
uses: actions/upload-artifact@v3
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,18 @@ jobs:
set-safe-directory: true
repository: openssl/openssl
path: openssl
# TODO: Revert ref tag once openssl master doesn't crash any more
ref: openssl-3.3.0
- name: checkout liboqs
uses: actions/checkout@v3
with:
set-safe-directory: true
repository: open-quantum-safe/liboqs
ref: 0.10.0
path: liboqs
- name: Install cygwin
uses: cygwin/cygwin-install-action@master
with:
packages: perl git ninja gcc-core cmake make
packages: perl git ninja gcc-core cmake make python3 python3-devel python3-setuptools python3-exceptiongroup
- name: Retrieve OpenSSL32 from cache
id: cache-openssl32
uses: actions/cache@v3
Expand Down Expand Up @@ -80,11 +81,17 @@ jobs:
cmake -GNinja -DOPENSSL_ROOT_DIR=/opt/openssl32 -DCMAKE_INSTALL_PREFIX="${{ env.IP }}" ${{ matrix.platform.oqsconfig }} -DCMAKE_C_COMPILER=gcc ..
ninja
ninja install
pip install pytest psutil pytest-xdist pyyaml
# TODO: as "autoprocesses" not recognized, don't run ninja run_tests
working-directory: liboqs
- name: build oqs-provider
run: bash -c "git config --global --add safe.directory $(cygpath -u $PWD) && liboqs_DIR='${{ env.IP }}' cmake -GNinja -DCMAKE_C_COMPILER=gcc -DOPENSSL_ROOT_DIR=/opt/openssl32 -S . -B _build && cd _build && ninja && cd .."
- name: Check Openssl providers
run: bash -c "OPENSSL_MODULES=_build/lib /opt/openssl32/bin/openssl list -providers -provider oqsprovider -provider default"
- name: Check Openssl provider signature algorithms
run: bash -c "OPENSSL_MODULES=_build/lib /opt/openssl32/bin/openssl list -signature-algorithms -provider oqsprovider -provider default"
- name: Check Openssl provider KEM algorithms
run: bash -c "OPENSSL_MODULES=_build/lib /opt/openssl32/bin/openssl list -kem-algorithms -provider oqsprovider -provider default"
- name: Run tests
run: bash -c "echo $PATH && PATH=/opt/openssl32/bin:/usr/bin ctest -V"
working-directory: _build
Expand Down Expand Up @@ -130,7 +137,6 @@ jobs:
with:
set-safe-directory: true
repository: open-quantum-safe/liboqs
ref: 0.10.0
path: liboqs
- uses: ilammy/msvc-dev-cmd@v1
with:
Expand Down Expand Up @@ -244,7 +250,6 @@ jobs:
with:
set-safe-directory: true
repository: open-quantum-safe/liboqs
ref: 0.10.0
path: liboqs
- uses: ilammy/msvc-dev-cmd@v1
with:
Expand Down

0 comments on commit d7e7f19

Please sign in to comment.