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: Check code builds with gcc v14 #446

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
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: 17 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ jobs:
fail-fast: false
matrix:
include:
- platform: linux
os: ubuntu-22.04
compiler: gcc-default
is_main: true
# - platform: linux
# os: ubuntu-22.04
# compiler: gcc-default
# is_main: true
- platform: linux
os: ubuntu-22.04
compiler: gcc-latest
is_main: false
- platform: windows
os: windows-2022
compiler: msvc
is_main: true
# - platform: windows
# os: windows-2022
# compiler: msvc
# is_main: true

env:
VCPKG_ROOT: "vcpkg"
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"

# Update when there is a new version of gcc available
LATEST_GCC_VERSION: 13
LATEST_GCC_VERSION: 14

steps:
- uses: actions/checkout@v4
Expand All @@ -50,14 +50,12 @@ jobs:
run: |
sudo apt update
sudo apt upgrade -y
sudo apt install --no-install-recommends build-essential ninja-build lcov
sudo apt install -y --no-install-recommends build-essential cmake ninja-build lcov

- name: Install latest gcc (Linux)
if: matrix.compiler == 'gcc-latest'
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-$LATEST_GCC_VERSION
sudo apt-get install -y g++-$LATEST_GCC_VERSION

# Use environment variable to tell CMake to compile with this version of gcc
echo CXX=g++-$LATEST_GCC_VERSION >> "$GITHUB_ENV"
Expand All @@ -77,7 +75,12 @@ jobs:

- name: Configure HealthGPS (debug)
run: |
cmake --preset=${{ matrix.platform }}-debug -DWARNINGS_AS_ERRORS=ON -DGENERATE_COVERAGE=ON
cmake --preset=${{ matrix.platform }}-debug -DWARNINGS_AS_ERRORS=ON -DGENERATE_COVERAGE=ON || true
echo CAAAAAAAAAAAAAAAAAAT
cat /home/runner/work/healthgps/healthgps/out/build/linux-debug/vcpkg-manifest-install.log
echo ======================
cat /home/runner/work/healthgps/healthgps/vcpkg/buildtrees/detect_compiler/config-x64-linux-rel-err.log
exit 1

- uses: ZedThree/[email protected]
if: matrix.compiler == 'gcc-default' && github.event_name == 'pull_request' && !(github.actor == 'dependabot[bot]' || github.actor == 'pre-commit-ci[bot]')
Expand Down
Loading