mirror of
https://github.com/renbaoshuo/s2oj-gcc.git
synced 2024-11-08 12:18:42 +00:00
fix: ci
This commit is contained in:
parent
b516af9e1b
commit
c15f259b72
@ -15,7 +15,7 @@ steps:
|
|||||||
- sed -i 's@//.*archive.ubuntu.com@//mirror-cdn.xtom.com@g' /etc/apt/sources.list &&
|
- sed -i 's@//.*archive.ubuntu.com@//mirror-cdn.xtom.com@g' /etc/apt/sources.list &&
|
||||||
sed -i 's@//security.ubuntu.com@//mirror-cdn.xtom.com@g' /etc/apt/sources.list
|
sed -i 's@//security.ubuntu.com@//mirror-cdn.xtom.com@g' /etc/apt/sources.list
|
||||||
- apt update &&
|
- apt update &&
|
||||||
apt install -y git make gcc g++ libgmp-dev libmpfr-dev libmpc-dev gcc-multilib
|
apt install -y curl git make gcc g++ libgmp-dev libmpfr-dev libmpc-dev gcc-multilib
|
||||||
- bash build.sh
|
- bash build.sh
|
||||||
environment:
|
environment:
|
||||||
GITEA_ENDPOINT: https://git.m.ac
|
GITEA_ENDPOINT: https://git.m.ac
|
||||||
|
2
build.sh
2
build.sh
@ -14,7 +14,7 @@ git clone -b "releases/gcc-$GCC_VERSION" --depth 1 "${GCC_GIT}" "${GCC_SRC}"
|
|||||||
# Apply patches
|
# Apply patches
|
||||||
echo "===> Applying patches..."
|
echo "===> Applying patches..."
|
||||||
cd ${GCC_SRC}
|
cd ${GCC_SRC}
|
||||||
patch -p1 < ../patches/gcc-$GCC_VERSION.patch
|
patch -p1 < ${CURRENT_DIR}/patches/gcc-$GCC_VERSION.patch
|
||||||
cd ${CURRENT_DIR}
|
cd ${CURRENT_DIR}
|
||||||
|
|
||||||
# Configure GCC
|
# Configure GCC
|
||||||
|
Loading…
Reference in New Issue
Block a user