Skip to content

Commit 448dda6

Browse files
committed
support ubuntu 24.04
1 parent 8db30c2 commit 448dda6

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
osversion: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04]
18+
osversion: [ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, ubuntu-18.04]
1919
steps:
2020
- uses: AutoModality/action-clean@v1
2121
- uses: actions/checkout@v2
@@ -173,4 +173,4 @@ jobs:
173173
id: cleanbuildartifacts
174174
if: always()
175175
run: |
176-
rm -rf clang
176+
rm -rf clang

docker/Dockerfile-ubuntu-24.04

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
FROM ubuntu:24.04
2+
RUN apt-get update -qq && DEBIAN_FRONTEND="noninteractive" apt-get install -qq \
3+
apt-transport-https \
4+
apt-utils \
5+
git \
6+
wget \
7+
python3 \
8+
tar \
9+
p7zip-full \
10+
cmake \
11+
software-properties-common \
12+
build-essential \
13+
curl zip unzip tar \
14+
pkg-config \
15+
ninja-build \
16+
&& apt-get clean -qq
17+
18+
RUN wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
19+
RUN tar xzf Python-2.7.18.tgz
20+
RUN cd Python-2.7.18 && ./configure --enable-optimizations && make altinstall
21+
RUN ln -s "/usr/local/bin/python2.7" "/usr/bin/python2"
22+
23+
RUN wget --no-check-certificate -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
24+
RUN add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main'
25+
RUN apt-get update -qq && DEBIAN_FRONTEND="noninteractive" apt-get install -qq \
26+
clang-16 && apt-get clean -qq
27+
28+
ADD ./entrypoint-build.sh /entrypoint.sh
29+
30+
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)