Skip to content

Commit e1f3240

Browse files
committed
Update Github CI to run on Ubuntu 24.04 with clang-19
Update Github CI to run on Ubuntu 24.04 with clang-19 add clang-format-19 and libstdc++-19-dev update Dockerfile and readme update INSTALL.md remove CLANG_VERSION from build.yml Update gcc version to 12 Fix INSTALL.md fix fix fix docker docker fix docker file and readme gcc
1 parent ccea7f4 commit e1f3240

File tree

10 files changed

+108
-194
lines changed

10 files changed

+108
-194
lines changed

.devcontainer/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
44
#-------------------------------------------------------------------------------------------------------------
5-
FROM ubuntu:focal
5+
FROM ubuntu:noble
66

77
# Avoid warnings by switching to noninteractive
88
ENV DEBIAN_FRONTEND=noninteractive
@@ -60,18 +60,18 @@ RUN apt-get update \
6060
RUN apt-get -y install git build-essential pkg-config autoconf automake libtool bison flex sed perl libpq-dev parallel libunwind-dev curl
6161

6262
# Update compiler tools
63-
RUN apt-get -y install libstdc++-10-dev clang-format-12 ccache
63+
RUN apt-get -y install libstdc++-14-dev clang-format-19 ccache
6464

6565
# gcc
66-
RUN apt-get -y install cpp-10 gcc-10 g++-10
66+
RUN apt-get -y install cpp-14 gcc-14 g++-14
6767
# clang
68-
RUN apt-get -y install clang-12 llvm-12
68+
RUN apt-get -y install clang-19 llvm-19
6969
# rust
7070
ENV PATH "/root/.cargo/bin:$PATH"
7171

7272
# clang by default
73-
ENV CC=clang-12
74-
ENV CXX=clang++-12
73+
ENV CC=clang-19
74+
ENV CXX=clang++-19
7575

7676
# Install postgresql to enable tests under make check
7777
RUN apt-get -y install postgresql

.devcontainer/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Ubuntu 20.04 Remote Dev Container Instructions
1+
# Ubuntu 24.04 Remote Dev Container Instructions
22

33
## Who's interested in this and why?
4-
* For those developers who'd like to validate their changes on Ubuntu 20.04, we provide a sandboxed development environment using the 'Remote Development Container' features of Microsoft's Visual Studio Code.
4+
* For those developers who'd like to validate their changes on Ubuntu 24.04, we provide a sandboxed development environment using the 'Remote Development Container' features of Microsoft's Visual Studio Code.
55
* This feature pre-configures a dev environment with all the tools you'll need to build stellar-core
66

77

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ jobs:
1515
complete:
1616
if: always()
1717
needs: [fmt, cargo-deny, rust-check-git-rev-deps, build]
18-
runs-on: ubuntu-22.04
18+
runs-on: ubuntu-24.04
1919
steps:
2020
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
2121
run: exit 1
2222

2323
fmt:
24-
runs-on: ubuntu-22.04
24+
runs-on: ubuntu-24.04
2525
steps:
2626
- uses: actions/checkout@v4
2727
- run: rustup component add rustfmt
2828
- run: rustup update
2929
- run: cargo fmt --all --check
3030

3131
cargo-deny:
32-
runs-on: ubuntu-22.04
32+
runs-on: ubuntu-24.04
3333
strategy:
3434
matrix:
3535
checks:
@@ -47,13 +47,13 @@ jobs:
4747
arguments:
4848

4949
rust-check-git-rev-deps:
50-
runs-on: ubuntu-22.04
50+
runs-on: ubuntu-24.04
5151
steps:
5252
- uses: actions/checkout@v4
5353
- uses: stellar/actions/rust-check-git-rev-deps@main
5454

5555
build:
56-
runs-on: ubuntu-jammy-16-cores-amd64
56+
runs-on: ubuntu-noble-16-cores-amd64
5757
env:
5858
CACHED_PATHS: |
5959
~/.ccache
@@ -112,11 +112,11 @@ jobs:
112112
- name: install tool chain
113113
if: steps.cache.outputs.cache-hit != 'true'
114114
run: |
115-
sudo apt-get -y install libstdc++-10-dev clang-format-12 ccache lldb
115+
sudo apt-get -y install libstdc++-14-dev clang-format-19 ccache lldb
116116
if test "${{ matrix.toolchain }}" = "gcc" ; then
117-
sudo apt-get -y install cpp-10 gcc-10 g++-10
117+
sudo apt-get -y install cpp-14 gcc-14 g++-14
118118
else
119-
sudo apt-get -y install clang-12 llvm-12
119+
sudo apt-get -y install clang-19 llvm-19 libc++-19-dev libc++abi-19-dev
120120
fi
121121
- name: install rustup components
122122
if: steps.cache.outputs.cache-hit != 'true'

.github/workflows/clang-19-static-analysis.yml

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)