Skip to content

Commit

Permalink
Update MinGW used by CI
Browse files Browse the repository at this point in the history
This made a rebuild of 32-bit deps necessary.
They were updated in the process and this was done for 64-bit too for consistency.
  • Loading branch information
sfan5 committed Feb 8, 2022
1 parent 0dd8e8c commit ce199d6
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 29 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,13 @@ jobs:
win32:
name: "MinGW cross-compiler (32-bit)"
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install compiler
run: |
sudo apt-get update -q && sudo apt-get install gettext -qyy
wget http:https://minetest.kitsunemimi.pw/mingw-w64-i686_9.2.0_ubuntu18.04.tar.xz -O mingw.tar.xz
wget http:https://minetest.kitsunemimi.pw/mingw-w64-i686_11.2.0_ubuntu20.04.tar.xz -O mingw.tar.xz
sudo tar -xaf mingw.tar.xz -C /usr
- name: Build
Expand All @@ -180,13 +180,13 @@ jobs:

win64:
name: "MinGW cross-compiler (64-bit)"
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install compiler
run: |
sudo apt-get update -q && sudo apt-get install gettext -qyy
wget http:https://minetest.kitsunemimi.pw/mingw-w64-x86_64_9.2.0_ubuntu18.04.tar.xz -O mingw.tar.xz
wget http:https://minetest.kitsunemimi.pw/mingw-w64-x86_64_11.2.0_ubuntu20.04.tar.xz -O mingw.tar.xz
sudo tar -xaf mingw.tar.xz -C /usr
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ build:fedora-28:
before_script:
- apt-get update
- DEBIAN_FRONTEND=noninteractive apt-get install -y wget xz-utils unzip git cmake gettext
- wget -nv http:https://minetest.kitsunemimi.pw/mingw-w64-${WIN_ARCH}_9.2.0_ubuntu18.04.tar.xz -O mingw.tar.xz
- wget -nv http:https://minetest.kitsunemimi.pw/mingw-w64-${WIN_ARCH}_11.2.0_ubuntu20.04.tar.xz -O mingw.tar.xz
- tar -xaf mingw.tar.xz -C /usr

.build_win_template:
Expand Down
34 changes: 19 additions & 15 deletions util/buildbot/buildwin32.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,17 @@ done

# Get stuff
irrlicht_version=1.9.0mt4
ogg_version=1.3.4
ogg_version=1.3.5
openal_version=1.21.1
vorbis_version=1.3.7
curl_version=7.76.1
curl_version=7.81.0
gettext_version=0.20.1
freetype_version=2.10.4
sqlite3_version=3.35.5
freetype_version=2.11.1
sqlite3_version=3.37.2
luajit_version=2.1.0-beta3
leveldb_version=1.23
zlib_version=1.2.11
zstd_version=1.4.9
zstd_version=1.5.2

mkdir -p $libdir

Expand All @@ -78,19 +79,22 @@ download () {
fi
}

# 'dw2' just points to rebuilt versions after a toolchain change
# this distinction should be gotten rid of next time

cd $libdir
download "https://github.com/minetest/irrlicht/releases/download/$irrlicht_version/win32.zip" irrlicht-$irrlicht_version.zip
download "http:https://minetest.kitsunemimi.pw/zlib-$zlib_version-win32.zip"
download "https://github.com/minetest/irrlicht/releases/download/$irrlicht_version/win32-dw2.zip" irrlicht-$irrlicht_version.zip
download "http:https://minetest.kitsunemimi.pw/dw2/zlib-$zlib_version-win32.zip"
download "http:https://minetest.kitsunemimi.pw/zstd-$zstd_version-win32.zip"
download "http:https://minetest.kitsunemimi.pw/libogg-$ogg_version-win32.zip"
download "http:https://minetest.kitsunemimi.pw/libvorbis-$vorbis_version-win32.zip"
download "http:https://minetest.kitsunemimi.pw/dw2/libvorbis-$vorbis_version-win32.zip"
download "http:https://minetest.kitsunemimi.pw/curl-$curl_version-win32.zip"
download "http:https://minetest.kitsunemimi.pw/gettext-$gettext_version-win32.zip"
download "http:https://minetest.kitsunemimi.pw/dw2/gettext-$gettext_version-win32.zip"
download "http:https://minetest.kitsunemimi.pw/freetype2-$freetype_version-win32.zip" freetype-$freetype_version.zip
download "http:https://minetest.kitsunemimi.pw/sqlite3-$sqlite3_version-win32.zip"
download "http:https://minetest.kitsunemimi.pw/luajit-$luajit_version-win32.zip"
download "http:https://minetest.kitsunemimi.pw/libleveldb-$leveldb_version-win32.zip" leveldb-$leveldb_version.zip
download "http:https://minetest.kitsunemimi.pw/openal_stripped.zip" '' unzip_nofolder
download "http:https://minetest.kitsunemimi.pw/dw2/luajit-$luajit_version-win32.zip"
download "http:https://minetest.kitsunemimi.pw/dw2/libleveldb-$leveldb_version-win32.zip" leveldb-$leveldb_version.zip
download "http:https://minetest.kitsunemimi.pw/openal-soft-$openal_version-win32.zip"

# Set source dir, downloading Minetest as needed
if [ -n "$EXISTING_MINETEST_DIR" ]; then
Expand Down Expand Up @@ -154,9 +158,9 @@ cmake -S $sourcedir -B . \
-DVORBIS_DLL="$vorbis_dlls" \
-DVORBISFILE_LIBRARY=$libdir/libvorbis/lib/libvorbisfile.dll.a \
\
-DOPENAL_INCLUDE_DIR=$libdir/openal_stripped/include/AL \
-DOPENAL_LIBRARY=$libdir/openal_stripped/lib/libOpenAL32.dll.a \
-DOPENAL_DLL=$libdir/openal_stripped/bin/OpenAL32.dll \
-DOPENAL_INCLUDE_DIR=$libdir/openal/include/AL \
-DOPENAL_LIBRARY=$libdir/openal/lib/libOpenAL32.dll.a \
-DOPENAL_DLL=$libdir/openal/bin/OpenAL32.dll \
\
-DCURL_DLL=$libdir/curl/bin/libcurl-4.dll \
-DCURL_INCLUDE_DIR=$libdir/curl/include \
Expand Down
19 changes: 10 additions & 9 deletions util/buildbot/buildwin64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,17 @@ done

# Get stuff
irrlicht_version=1.9.0mt4
ogg_version=1.3.4
ogg_version=1.3.5
openal_version=1.21.1
vorbis_version=1.3.7
curl_version=7.76.1
curl_version=7.81.0
gettext_version=0.20.1
freetype_version=2.10.4
sqlite3_version=3.35.5
freetype_version=2.11.1
sqlite3_version=3.37.2
luajit_version=2.1.0-beta3
leveldb_version=1.23
zlib_version=1.2.11
zstd_version=1.4.9
zstd_version=1.5.2

mkdir -p $libdir

Expand Down Expand Up @@ -90,7 +91,7 @@ download "http:https://minetest.kitsunemimi.pw/freetype2-$freetype_version-win64.zip"
download "http:https://minetest.kitsunemimi.pw/sqlite3-$sqlite3_version-win64.zip"
download "http:https://minetest.kitsunemimi.pw/luajit-$luajit_version-win64.zip"
download "http:https://minetest.kitsunemimi.pw/libleveldb-$leveldb_version-win64.zip" leveldb-$leveldb_version.zip
download "http:https://minetest.kitsunemimi.pw/openal_stripped64.zip" 'openal_stripped.zip' unzip_nofolder
download "http:https://minetest.kitsunemimi.pw/openal-soft-$openal_version-win64.zip"

# Set source dir, downloading Minetest as needed
if [ -n "$EXISTING_MINETEST_DIR" ]; then
Expand Down Expand Up @@ -154,9 +155,9 @@ cmake -S $sourcedir -B . \
-DVORBIS_DLL="$vorbis_dlls" \
-DVORBISFILE_LIBRARY=$libdir/libvorbis/lib/libvorbisfile.dll.a \
\
-DOPENAL_INCLUDE_DIR=$libdir/openal_stripped/include/AL \
-DOPENAL_LIBRARY=$libdir/openal_stripped/lib/libOpenAL32.dll.a \
-DOPENAL_DLL=$libdir/openal_stripped/bin/OpenAL32.dll \
-DOPENAL_INCLUDE_DIR=$libdir/openal/include/AL \
-DOPENAL_LIBRARY=$libdir/openal/lib/libOpenAL32.dll.a \
-DOPENAL_DLL=$libdir/openal/bin/OpenAL32.dll \
\
-DCURL_DLL=$libdir/curl/bin/libcurl-4.dll \
-DCURL_INCLUDE_DIR=$libdir/curl/include \
Expand Down

0 comments on commit ce199d6

Please sign in to comment.