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

Postponed: Add MSVC setup to CI #210

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

maxammann
Copy link
Collaborator

This setups the MSVC compiler in our CI. Right now we do not need it.

But as soon as we link for example against SQLite or OpenSSL we might need it again.

💻 Examples

🚨 Test instructions

✔️ PR Todo

  • Included links to related issues/PRs

@maxammann maxammann changed the title Add MSVC setup to CI Postphoned until needed: Add MSVC setup to CI Nov 12, 2022
$v = $_.split("=", 2)

if ($($v[0]) -match "Path") {
echo "$($v[0])=$($v[1]);C:\msys64\usr\bin" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleanup this case. We are adding msys64 at the very last in the Path such that binaries like link.exe have a higher priority

Comment on lines +49 to +51
- name: Show bash PATH
shell: powershell
run: bash -c 'echo $PATH'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Currently the git bash is executed here. The Git bash also has a link.exe. Make sure that either Git bash or msys2 bash both prefer using the link.exe from MSVC.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idea: Use powershell to write to .bashrc and overwrite at least PATH variable.

@maxammann maxammann changed the title Postphoned until needed: Add MSVC setup to CI Postponed: Add MSVC setup to CI Nov 19, 2022
@maxammann maxammann added the pr-postponed Postponed PR, which is not needed right now but might be needed (contains valuable information) label Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-postponed Postponed PR, which is not needed right now but might be needed (contains valuable information)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant