1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-07-22 10:47:45 +02:00

Separate basic and debug builds in CI

This commit is contained in:
q-posev 2022-07-11 10:38:39 +02:00
parent c4205ed2f8
commit df2db1bd2a

View File

@ -40,7 +40,7 @@ jobs:
./autogen.sh ./autogen.sh
mkdir _build mkdir _build
cd _build cd _build
../configure --enable-silent-rules --enable-debug ../configure --enable-silent-rules
make -j 4 make -j 4
sudo make install sudo make install
@ -76,23 +76,23 @@ jobs:
run: make python-test run: make python-test
working-directory: _build working-directory: _build
- name: Re-build QMCkl with AddressSanitizer - name: Configure QMCkl in debug mode
run: | run: |
mkdir _build_as mkdir _build_debug
cd _build_as cd _build_debug
../configure CFLAGS="-g -O2 -fsanitize=address -fno-omit-frame-pointer" LDFLAGS="-fsanitize=address" --enable-silent-rules ../configure --enable-debug --enable-silent-rules
make -j2 make -j2
- name: Run test - name: Run test
run: make -j2 check run: make -j2 check
working-directory: _build_as working-directory: _build_debug
- name: Archive test log file - name: Archive test log file
if: failure() if: failure()
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: test-report-ubuntu-as name: test-report-ubuntu-debug
path: _build_as/test-suite.log path: _build_debug/test-suite.log
# x86_macos: # x86_macos:
# #