Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build wheel action #191

Merged
merged 13 commits into from
Dec 18, 2024
Merged

Fix build wheel action #191

merged 13 commits into from
Dec 18, 2024

Conversation

inakleinbottle
Copy link
Contributor

The wheel action needed an update to make it use Ninja on Windows; MSBuild is painfully slow and Ninja makes this run much faster. Bringing over the settings from the test action made the build fail. It turned out that Visual studio brought it's own version of VCPKG that was being used preferentially because VCPKG_ROOT was not set in the wheels action. This caused the installation of dependencies to fail (out-of-date vcpkg or something more sinister). This is fixed by setting the toolchain explicitly, like in the tests action. For some reason, this makes the installation successful.

inakleinbottle and others added 13 commits December 17, 2024 17:12
This change ensures necessary tools (curl, zip, unzip, tar) are installed on Linux systems during the CI setup. It uses the OSTYPE variable to detect the operating system and installs the packages only when running on Linux.
This field was likely a leftover and is no longer needed in the configuration. Its removal simplifies the setup and avoids potential confusion or misconfigurations.
The conditional definition for BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED was removed from the build script. This cleanup ensures the codebase is more concise and avoids unnecessary platform-specific configurations.
Removed the `-DROUGHPY_BUILD_PYMODULE_INPLACE=ON` flag from the CMake command in `tests.yml`. This change streamlines the configuration process while maintaining required build and test settings.
The `CMAKE_GENERATOR` variable was defined but not used in the workflow. This cleanup reduces unnecessary configuration and improves readability of the build script.
Commented out the step to install pkgconfig on Windows using Chocolatey. This change may simplify workflows if pkgconfig is not required or managed differently. Revisit if future dependencies demand it.
This update ensures proper configuration for building on Windows runners by setting up MSBuild and enabling the developer command prompt. These steps help streamline the build process and maintain cross-platform consistency.
Added SKBUILD_CMAKE_DEFINE to the Windows build configuration in pyproject.toml. This ensures compatibility with specific compiler settings during the build process.
Updated the 'environment' field in the Windows build configuration from a list to a table for improved clarity and consistency. This change aligns with standard TOML formatting guidelines.
Added `CMAKE_GENERATOR` as "Ninja" in the build workflow to optimize builds. Removed an unused `SKBUILD_CMAKE_DEFINE` environment variable from the Windows configuration in `pyproject.toml` for cleanup and consistency.
Added the `CMAKE_TOOLCHAIN_FILE` environment variable to the GitHub Actions `build_wheels.yml` workflow to ensure proper configuration using vcpkg. This update facilitates dependency management and improves build consistency across environments.
@inakleinbottle inakleinbottle merged commit 846dfb7 into main Dec 18, 2024
5 of 9 checks passed
@inakleinbottle inakleinbottle deleted the fix-build-wheel-action branch December 18, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant