Skip to content

Enable botan CI on windows#125

Merged
est31 merged 3 commits into
mainfrom
windows_botan
Sep 10, 2023
Merged

Enable botan CI on windows#125
est31 merged 3 commits into
mainfrom
windows_botan

Conversation

@est31

@est31 est31 commented Jun 15, 2023

Copy link
Copy Markdown
Member

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 est31 marked this pull request as draft June 15, 2023 05:26
@est31

est31 commented Jul 15, 2023

Copy link
Copy Markdown
Member Author

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

cpu commented Sep 9, 2023

Copy link
Copy Markdown
Member

@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

est31 commented Sep 10, 2023

Copy link
Copy Markdown
Member Author

@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
@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