ci: rely on the Void CI images for the toolchain
The windows-gcc image already ships MinGW-w64 GCC 16 (UCRT), Wine and CMake/Ninja, and the vulkan image ships GCC 16, CMake 4 and the Void dependencies. Drop the MinGW download, the apt package installs and the Wine install; the Windows lane now uses the repository's PATH-based MinGW toolchain file and stages the runtime DLLs from the MinGW sysroot.
This commit is contained in:
1 parent
a4e855f130
commit
51d437d339
3 files changed
+22
-98
No files matched your search
+5
-41
@@ -64,29 +64,6 @@ jobs:
|
||||
fi
|
||||
bash .gitea/scripts/install-ninja.sh
|
||||
git --version
|
||||
- name: Install the development requirements
|
||||
run: |
|
||||
# The optional backends (OpenSSL, SQLite3) are opportunistic: a runner that
|
||||
# provides the GCC 16 toolchain already satisfies the mandatory requirements.
|
||||
if ! command -v apt-get >/dev/null 2>&1; then
|
||||
echo "apt-get is not available; using the toolchain provided by the runner"
|
||||
exit 0
|
||||
fi
|
||||
sudo=""
|
||||
if [ "$(id -u)" -ne 0 ]; then sudo="sudo"; fi
|
||||
missing=""
|
||||
for package in libssl-dev libsqlite3-dev pkg-config; do
|
||||
if command -v dpkg >/dev/null 2>&1 && dpkg -s "${package}" >/dev/null 2>&1; then
|
||||
continue
|
||||
fi
|
||||
missing="${missing} ${package}"
|
||||
done
|
||||
if [ -n "${missing}" ]; then
|
||||
${sudo} apt-get update
|
||||
${sudo} apt-get install -y ${missing}
|
||||
else
|
||||
echo "all development packages are already installed"
|
||||
fi
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# 2A / 3A - Linux native
|
||||
@@ -257,21 +234,19 @@ jobs:
|
||||
build_type: RelWithDebInfo
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install the MinGW-w64 GCC 16 cross toolchain
|
||||
run: bash .gitea/scripts/install-mingw.sh /opt/mingw-gcc-cross
|
||||
- name: Configure
|
||||
run: |
|
||||
cmake -S . -B "build/wine-${{ matrix.variant }}" -G Ninja \
|
||||
-DCMAKE_TOOLCHAIN_FILE=/opt/mingw-gcc-cross/usr/local/share/mingw/cmake/x86_64-w64-mingw32-ucrt.cmake \
|
||||
-DCMAKE_TOOLCHAIN_FILE="$PWD/.gitea/cmake/mingw-w64-toolchain.cmake" \
|
||||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
|
||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
||||
- name: Build
|
||||
run: cmake --build "build/wine-${{ matrix.variant }}" --parallel 4
|
||||
- name: Stage the MinGW runtime DLLs
|
||||
run: |
|
||||
for lib in libstdc++.dll libgcc_s_seh.dll libwinpthread.dll; do
|
||||
if [ -f "/opt/mingw-gcc-cross/x86_64-w64-mingw32-ucrt/lib/${lib}" ]; then
|
||||
cp "/opt/mingw-gcc-cross/x86_64-w64-mingw32-ucrt/lib/${lib}" \
|
||||
for lib in libstdc++-6.dll libgcc_s_seh-1.dll libwinpthread-1.dll; do
|
||||
if [ -f "/usr/x86_64-w64-mingw32/bin/${lib}" ]; then
|
||||
cp "/usr/x86_64-w64-mingw32/bin/${lib}" \
|
||||
"build/wine-${{ matrix.variant }}/bin/"
|
||||
fi
|
||||
done
|
||||
@@ -311,19 +286,8 @@ jobs:
|
||||
with:
|
||||
name: vbs-wine-build-${{ matrix.variant }}
|
||||
path: build/wine-${{ matrix.variant }}
|
||||
- name: Install Wine
|
||||
- name: Check Wine
|
||||
run: |
|
||||
sudo=""
|
||||
if [ "$(id -u)" -ne 0 ]; then sudo="sudo"; fi
|
||||
if ! command -v wine >/dev/null 2>&1; then
|
||||
if command -v apt-get >/dev/null 2>&1; then
|
||||
${sudo} apt-get update
|
||||
${sudo} apt-get install -y wine64 || ${sudo} apt-get install -y wine
|
||||
fi
|
||||
fi
|
||||
if ! command -v wine >/dev/null 2>&1 && command -v wine64 >/dev/null 2>&1; then
|
||||
${sudo} ln -sf "$(command -v wine64)" /usr/local/bin/wine
|
||||
fi
|
||||
if ! command -v wine >/dev/null 2>&1; then
|
||||
echo "wine is required to run the Windows test executables" >&2
|
||||
exit 1
|
||||
|
||||
Reference in new issue
Block a user