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

Enable botan CI on windows #125

Merged
merged 3 commits into from
Sep 10, 2023
Merged

Enable botan CI on windows #125

merged 3 commits into from
Sep 10, 2023

Conversation

est31
Copy link
Member

@est31 est31 commented Jun 15, 2023

In #118, windows CI was added but the botan specific tests were disabled as the build for rust doesn't work.

I'm opening this PR for future discussion and work on botan support on the windows CI. The goal is to get the CI green, and until then it can't be merged.

@est31
Copy link
Member Author

est31 commented Jul 15, 2023

Some amazing news: randombit/botan-rs#82 (comment)

est31 and others added 3 commits September 9, 2023 11:55
This hopefully fixes the windows CI failure
The upstream `botan-rs` crate uses this same action in its Windows based
CI, successfully building `botan-sys` on that platform.

Without using this action, the build process fails with the error:
```
ERROR: Default compiler is msvc but could not find 'cl'; use --cc to set
```

It's possible that with effort another workaround could be used, but
it seems prudent to match what the upstream repository does and its
better to have a working setup we can iterate on than one that skips
Botan coverage entirely.
@cpu cpu marked this pull request as ready for review September 9, 2023 17:29
@cpu
Copy link
Member

cpu commented Sep 9, 2023

@est31 I pushed some revisions onto this branch and I think it's ready to go if you want to review.

  • I rebased on tip of main.
  • I dropped the Cargo.lock update commit. We're already using the latest botan-rs/botan-src.
  • I added a commit (9a54240) that matches the upstream CI's usage of egor-tensin/vs-shell@v2 for setting up env vars. The commit message has more detail but there's a compile time error without it and I'm not familiar enough with PowerShell/Windows to pull out a more minimal fix (it also seems smart to match how the upstream tests their builds).

@est31
Copy link
Member Author

est31 commented Sep 10, 2023

@cpu thanks! I think with your changes, we can merge it.

@est31 est31 enabled auto-merge (squash) September 10, 2023 14:54
@est31 est31 disabled auto-merge September 10, 2023 14:54
@est31 est31 merged commit 73cbec9 into main Sep 10, 2023
21 checks passed
@est31 est31 deleted the windows_botan branch September 10, 2023 14:56
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.

2 participants