Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add separate debug build with GCC 13 #187

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 22 additions & 9 deletions .github/workflows/gfortran.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,6 @@ jobs:
sudo apt install gcc-7 gfortran-7 g++-7
echo "ABIN_FFLAGS=${ABIN_FFLAGS/-fprofile-abs-path/}" >> $GITHUB_ENV

- name: Enable runtime checks
# It looks like this messes up the code coverage, so enabling only some builds
if: matrix.gcc_v != 7
run: |
echo "ABIN_FFLAGS=${ABIN_FFLAGS} -fcheck=all -fsanitize=address,undefined,leak" >> $GITHUB_ENV
echo "ABIN_LDLIBS=${ABIN_LDLIBS} -fsanitize=address,undefined,leak" >> $GITHUB_ENV

- name: Set GFortran version
run: |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \
Expand Down Expand Up @@ -119,14 +112,34 @@ jobs:
name: ${{env.CODECOV_NAME}}
fail_ci_if_error: true

debug_build:
name: Debug build
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4

- uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: gcc
version: '13'

- name: Build ABIN
run: ./configure && make
env:
FFLAGS: ${{ env.ABIN_FFLAGS }} -fcheck=all -fsanitize=address,undefined,leak
LDLIBS: ${{ env.ABIN_LDLIBS }} -fsanitize=address,undefined,leak

- name: Run End-to-End tests
run: make e2etest

intel_build:
name: Intel build
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2

- uses: fortran-lang/setup-fortran@v1
id: setup-fortran
Expand Down