Skip to content

Commit

Permalink
re #464
Browse files Browse the repository at this point in the history
  • Loading branch information
biojppm committed Aug 19, 2024
1 parent 150698d commit 998cfcf
Showing 1 changed file with 36 additions and 11 deletions.
47 changes: 36 additions & 11 deletions .github/workflows/rarearchs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
- {std: 17, bt: Debug , arch: aarch64, distro: ubuntu20.04}
- {std: 17, bt: Release, arch: aarch64, distro: ubuntu20.04}
#
- {std: 11, bt: Release, arch: ppc64le, distro: ubuntu20.04, cxxflags: ' -O2 -g -DNDEBUG '}
- {std: 11, bt: Debug , arch: ppc64le, distro: ubuntu20.04}
- {std: 11, bt: Release, arch: ppc64le, distro: ubuntu20.04}
- {std: 14, bt: Debug , arch: ppc64le, distro: ubuntu20.04}
Expand Down Expand Up @@ -101,21 +102,45 @@ jobs:
pwd
ls -lFhp .
#
# https://stackoverflow.com/questions/5470257/how-to-see-which-flags-march-native-will-activate
comp=gcc
${comp} -O2 -g -DNDEBUG -E -v - </dev/null 2>&1 | grep cc1
${comp} -O2 -E -v - </dev/null 2>&1 | grep cc1
${comp} -O3 -E -v - </dev/null 2>&1 | grep cc1
echo | ${comp} -dM -E - -O2 -g -DNDEBUG
echo | ${comp} -dM -E - -O2
echo | ${comp} -dM -E - -O3
#
bdir=build_${{matrix.arch}}_${{matrix.bt}}_${{matrix.std}}
idir=install_${{matrix.arch}}_${{matrix.bt}}_${{matrix.std}}
mkdir -p $bdir
#
time cmake -S . -B $bdir \
-DCMAKE_INSTALL_PREFIX=$idir \
-DCMAKE_BUILD_TYPE=${{matrix.bt}} \
-DC4_CXX_STANDARD=${{matrix.std}} \
-DCXX_STANDARD=${{matrix.std}} \
-DRYML_DEV=ON \
-DRYML_TEST_SUITE=ON \
-DRYML_BUILD_BENCHMARKS=OFF \
-DRYML_SANITIZE=OFF \
-DRYML_LINT=OFF \
-DRYML_VALGRIND=OFF
if [ -z "${{matrix.cxxflags}} " ] ; then
time cmake -S . -B $bdir \
-DCMAKE_INSTALL_PREFIX=$idir \
-DCMAKE_BUILD_TYPE=${{matrix.bt}} \
-DC4_CXX_STANDARD=${{matrix.std}} \
-DCXX_STANDARD=${{matrix.std}} \
-DRYML_DEV=ON \
-DRYML_TEST_SUITE=ON \
-DRYML_BUILD_BENCHMARKS=OFF \
-DRYML_SANITIZE=OFF \
-DRYML_LINT=OFF \
-DRYML_VALGRIND=OFF
else
time cmake -S . -B $bdir \
-DCMAKE_INSTALL_PREFIX=$idir \
-DCMAKE_BUILD_TYPE=${{matrix.bt}} \
-DC4_CXX_STANDARD=${{matrix.std}} \
-DCXX_STANDARD=${{matrix.std}} \
-DCMAKE_CXX_FLAGS_RELEASE:STRING="${{matrix.cxxflags}}" \
-DRYML_DEV=ON \
-DRYML_TEST_SUITE=ON \
-DRYML_BUILD_BENCHMARKS=OFF \
-DRYML_SANITIZE=OFF \
-DRYML_LINT=OFF \
-DRYML_VALGRIND=OFF
fi
#
time cmake --build $bdir -j 3 --target ryml-test-build
#
Expand Down

0 comments on commit 998cfcf

Please sign in to comment.