Skip to content

ci: test make install with MinGW - #5049

Open
Cyan4973 wants to merge 1 commit into
devfrom
ci-mingw-install
Open

Cyan4973 wants to merge 1 commit into
devfrom
ci-mingw-install

Conversation

@Cyan4973

Copy link
Copy Markdown
Contributor

This affects users who install zstd with make install under MSYS2 / MinGW.

Problem

make install works under MSYS2 since #3720 (v1.5.6), and #4441 fixed the MinGW install layout, but no CI job runs make install on Windows, so nothing keeps it from breaking again.
The previous test (#1916) ran on AppVeyor, and went away with it (#3621).

Fix

The mingw-short-test jobs (gcc MINGW32, gcc MINGW64, clang MINGW64) now run make install into a staging directory, then check that:

  • libzstd.dll and zstd.exe are in bin/,
  • the import library libzstd.dll.a, libzstd.a and libzstd.pc are in lib/,
  • zstd.h is in include/,
  • and that no DLL is left in lib/.

Test

I ran the step locally with a MinGW-w64 cross-compiler (TARGET_SYSTEM=Windows_NT): it passes on dev. v1.6.0 fails it, because it installs the DLL in lib/, without the import library.

Closes #1878

The MinGW jobs now run make install, and check the layout set by #4441:
libzstd.dll in bin/, its import library libzstd.dll.a in lib/ (#1878).
@meta-cla meta-cla Bot added the CLA Signed label Nov 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

installation with MSYS2

2 participants