Skip to content

Commit 1021ea9

Browse files
committed
Enable daily builds
1 parent 178b143 commit 1021ea9

3 files changed

Lines changed: 39 additions & 16 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Build
22

33
on:
4+
schedule:
5+
- cron: '0 6 * * *'
6+
workflow_dispatch:
7+
branches:
8+
- '**'
49
push:
510
branches:
611
- '**'
@@ -116,10 +121,7 @@ jobs:
116121
'i686-unknown-linux-android21',
117122
'aarch64-unknown-linux-android',
118123
'riscv64-unknown-linux-android',
119-
'armv5-unknown-linux-androideabi21',
120124
'armv7-unknown-linux-androideabi21',
121-
'mips64el-unknown-linux-android',
122-
'mipsel-unknown-linux-android21'
123125
]
124126
steps:
125127
- uses: actions/checkout@main

build.sh

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ declare -r workdir="${PWD}"
1414
declare -r revision="$(git rev-parse --short HEAD)"
1515

1616
declare -r gmp_tarball='/tmp/gmp.tar.xz'
17-
declare -r gmp_directory='/tmp/gmp-6.3.0'
17+
declare -r gmp_directory='/tmp/gmp'
1818

1919
declare -r mpfr_tarball='/tmp/mpfr.tar.xz'
20-
declare -r mpfr_directory='/tmp/mpfr-4.2.2'
20+
declare -r mpfr_directory='/tmp/mpfr-master'
2121

2222
declare -r mpc_tarball='/tmp/mpc.tar.gz'
23-
declare -r mpc_directory='/tmp/mpc-1.3.1'
23+
declare -r mpc_directory='/tmp/mpc-master'
2424

2525
declare -r isl_tarball='/tmp/isl.tar.xz'
26-
declare -r isl_directory='/tmp/isl-0.27'
26+
declare -r isl_directory='/tmp/isl-master'
2727

2828
declare -r binutils_tarball='/tmp/binutils.tar.xz'
2929
declare -r binutils_directory='/tmp/binutils'
@@ -90,14 +90,14 @@ declare -r \
9090

9191
if ! [ -f "${gmp_tarball}" ]; then
9292
curl \
93-
--url 'https://gnu.mirror.constant.com/gmp/gmp-6.3.0.tar.xz' \
93+
--url 'https://github.com/AmanoTeam/gmplib-snapshots/releases/latest/download/gmp.tar.xz' \
9494
--retry '30' \
9595
--retry-all-errors \
9696
--retry-delay '0' \
9797
--retry-max-time '0' \
98+
--show-error \
9899
--location \
99100
--silent \
100-
--show-error \
101101
--output "${gmp_tarball}"
102102

103103
tar \
@@ -106,70 +106,91 @@ if ! [ -f "${gmp_tarball}" ]; then
106106
--file="${gmp_tarball}"
107107

108108
patch --directory="${gmp_directory}" --strip='1' --input="${workdir}/submodules/obggcc/patches/0001-Remove-hardcoded-RPATH-and-versioned-SONAME-from-libgmp.patch"
109+
110+
sed \
111+
--in-place \
112+
's/-Xlinker --out-implib -Xlinker $lib/-Xlinker --out-implib -Xlinker $lib.a/g' \
113+
"${gmp_directory}/configure"
109114
fi
110115

111116
if ! [ -f "${mpfr_tarball}" ]; then
112117
curl \
113-
--url 'https://gnu.mirror.constant.com/mpfr/mpfr-4.2.2.tar.xz' \
118+
--url 'https://github.com/AmanoTeam/mpfr/archive/master.tar.gz' \
114119
--retry '30' \
115120
--retry-all-errors \
116121
--retry-delay '0' \
117122
--retry-max-time '0' \
123+
--show-error \
118124
--location \
119125
--silent \
120-
--show-error \
121126
--output "${mpfr_tarball}"
122127

123128
tar \
124129
--directory="$(dirname "${mpfr_directory}")" \
125130
--extract \
126131
--file="${mpfr_tarball}"
127132

133+
cd "${mpfr_directory}"
134+
autoreconf --force --install
135+
128136
patch --directory="${mpfr_directory}" --strip='1' --input="${workdir}/submodules/obggcc/patches/0001-Remove-hardcoded-RPATH-and-versioned-SONAME-from-libmpfr.patch"
129137
fi
130138

131139
if ! [ -f "${mpc_tarball}" ]; then
132140
curl \
133-
--url 'https://gnu.mirror.constant.com/mpc/mpc-1.3.1.tar.gz' \
141+
--url 'https://github.com/AmanoTeam/mpc/archive/master.tar.gz' \
134142
--retry '30' \
135143
--retry-all-errors \
136144
--retry-delay '0' \
137145
--retry-max-time '0' \
146+
--show-error \
138147
--location \
139148
--silent \
140-
--show-error \
141149
--output "${mpc_tarball}"
142150

143151
tar \
144152
--directory="$(dirname "${mpc_directory}")" \
145153
--extract \
146154
--file="${mpc_tarball}"
147155

156+
cd "${mpc_directory}"
157+
autoreconf --force --install
158+
148159
patch --directory="${mpc_directory}" --strip='1' --input="${workdir}/submodules/obggcc/patches/0001-Remove-hardcoded-RPATH-and-versioned-SONAME-from-libmpc.patch"
149160
fi
150161

151162
if ! [ -f "${isl_tarball}" ]; then
152163
curl \
153-
--url 'https://deb.debian.org/debian/pool/main/i/isl/isl_0.27.orig.tar.xz' \
164+
--url 'https://github.com/AmanoTeam/isl/archive/master.tar.gz' \
154165
--retry '30' \
155166
--retry-all-errors \
156167
--retry-delay '0' \
157168
--retry-max-time '0' \
169+
--show-error \
158170
--location \
159171
--silent \
160-
--show-error \
161172
--output "${isl_tarball}"
162173

163174
tar \
164175
--directory="$(dirname "${isl_directory}")" \
165176
--extract \
166177
--file="${isl_tarball}"
167178

179+
cd "${isl_directory}"
180+
autoreconf --force --install
181+
168182
patch --directory="${isl_directory}" --strip='1' --input="${workdir}/submodules/obggcc/patches/0001-Remove-hardcoded-RPATH-and-versioned-SONAME-from-libisl.patch"
169183

170184
for name in "${isl_directory}/isl_test"*; do
171185
echo 'int main() {}' > "${name}"
172186
done
187+
188+
sed \
189+
--in-place \
190+
--regexp-extended \
191+
's/(allow_undefined)=.*$/\1=no/' \
192+
"${isl_directory}/ltmain.sh" \
193+
"${isl_directory}/interface/ltmain.sh"
173194
fi
174195

175196
if ! [ -f "${binutils_tarball}" ]; then

submodules/obggcc

Submodule obggcc updated 44 files

0 commit comments

Comments
 (0)