mirror of https://github.com/OpenTTD/OpenTTD
Codechange: use GCC 12 for building tools for Emscripten
parent
ac6f3542a8
commit
3e747397f0
|
@ -23,6 +23,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git config --global --add safe.directory ${GITHUB_WORKSPACE}
|
git config --global --add safe.directory ${GITHUB_WORKSPACE}
|
||||||
|
|
||||||
|
- name: Update to modern GCC
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y gcc-12 g++-12
|
||||||
|
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100
|
||||||
|
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 100
|
||||||
|
|
||||||
- name: Setup cache
|
- name: Setup cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
FROM emscripten/emsdk:3.1.57
|
FROM emscripten/emsdk:3.1.57
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y gcc-12 g++-12 \
|
||||||
|
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100 \
|
||||||
|
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 100 \
|
||||||
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY ports/liblzma.py /emsdk/upstream/emscripten/tools/ports/contrib/liblzma.py
|
COPY ports/liblzma.py /emsdk/upstream/emscripten/tools/ports/contrib/liblzma.py
|
||||||
|
|
Loading…
Reference in New Issue