Skip to content

Commit

Permalink
Fixing build parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Sep 20, 2023
1 parent 5d0e986 commit a3d02e5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/centos-and-fedora-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ env:

jobs:
tests:
name: ${{ matrix.image.container }} [CC ${{ matrix.env.CC }}; backend ${{ matrix.image.backend }} ${{ matrix.image.botan_ver }}; gpg ${{ matrix.image.gpg_ver }}]
name: ${{ matrix.image.container }} [CC ${{ matrix.env.CC }}; backend ${{ matrix.image.backend }} ${{ matrix.image.botan_ver }}; gpg ${{ matrix.image.gpg_ver }}; ${{ matrix.env.BUILD_MODE }}]
runs-on: ubuntu-latest
timeout-minutes: 120
strategy:
Expand Down Expand Up @@ -118,11 +118,11 @@ jobs:
printf "\nrnpuser\tsoft\tnproc\tunlimited\n" > /etc/security/limits.d/30-rnpuser.conf
# Need to build HEAD version since it is always different
- name: Build gpg HEAD version if required
- name: Build gpg head
if: matrix.image.gpg_ver == 'head'
run: /opt/tools/tools.sh build_and_install_gpg head

- name: Build botan HEAD version if required
- name: Build botan head
if: matrix.image.botan_ver == 'head'
run: /opt/tools/tools.sh build_and_install_botan head

Expand All @@ -131,13 +131,14 @@ jobs:
cmakeopts=(-DCRYPTO_BACKEND=${{ matrix.image.backend }})
[[ "${{ env.BUILD_MODE }}" = "coverage" ]] && cmakeopts+=(-DENABLE_COVERAGE=yes)
[[ "${{ env.BUILD_MODE }}" = "sanitize" ]] && cmakeopts+=(-DENABLE_SANITIZERS=yes)
[ -n "${{ env.ENABLE_SM2 }}" ] && cmakeopts+=(-DENABLE_SM2="${{ env.ENABLE_SM2 }}")
[ -n "${{ env.ENABLE_IDEA }}" ] && cmakeopts+=(-DENABLE_IDEA="${{ env.ENABLE_IDEA }}")
[ -n "$ENABLE" ] && cmakeopts+=(-DENABLE_SM2="$ENABLE_SM2")
[ -n "$ENABLE_IDEA" ] && cmakeopts+=(-DENABLE_IDEA="$ENABLE_IDEA")
cmake -B build \
-DBUILD_SHARED_LIBS=ON \
-DDOWNLOAD_GTEST=ON \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_COVERAGE=${parameter:=word}
$cmakeopts .
- name: Build
Expand Down

0 comments on commit a3d02e5

Please sign in to comment.