Skip to content

Commit 127d711

Browse files
committed
remove gcc-toolset-13 first
1 parent 0ed1740 commit 127d711

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@ jobs:
160160
CIBW_ENVIRONMENT_PASS_LINUX: CIBW_ARCHS
161161
CIBW_ENVIRONMENT_WINDOWS: CTRANSLATE2_ROOT='${{ github.workspace }}\install'
162162
CIBW_ENVIRONMENT_MACOS: "CTRANSLATE2_ROOT='/usr/local' MACOSX_DEPLOYMENT_TARGET=10.13"
163-
CIBW_BEFORE_ALL_LINUX: dnf install -y gcc-toolset-12-gcc gcc-toolset-12-gcc-c++ && source /opt/rh/gcc-toolset-12/enable && python/tools/prepare_build_environment_linux.sh
163+
CIBW_BEFORE_ALL_LINUX: dnf remove gcc-toolset-13* && \
164+
dnf install -y gcc-toolset-12-gcc gcc-toolset-12-gcc-c++ && \
165+
source /opt/rh/gcc-toolset-12/enable && \
166+
python/tools/prepare_build_environment_linux.sh
164167
CIBW_BEFORE_ALL_MACOS: python/tools/prepare_build_environment_macos.sh
165168
CIBW_BEFORE_ALL_WINDOWS: bash python/tools/prepare_build_environment_windows.sh
166169
CIBW_BEFORE_BUILD: pip install -r python/install_requirements.txt

0 commit comments

Comments
 (0)