Skip to content

Commit

Permalink
fix: Install OpenSSL on Windows GH Actions runner
Browse files Browse the repository at this point in the history
This (should) fix the Windows GitHub Actions runner by making sure that
OpenSSL is installed, and it should also fix the `omnibor` crate's use
of the `gitoid` crate by making sure it uses the `rustcrypto` backend.

Signed-off-by: Andrew Lilley Brinker <[email protected]>
  • Loading branch information
alilleybrinker committed Aug 23, 2024
1 parent fd1c93f commit adc3b1b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ jobs:
- uses: swatinem/rust-cache@v2
with:
key: ${{ matrix.os }}
# Make sure to install OpenSSL on Windows
- name: Install OpenSSL (Windows)
if: runner.os == 'Windows'
shell: powershell
run: |
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
vcpkg install openssl:x64-windows-static-md
- name: Dependency Tree
run: cargo tree
- name: Check
Expand Down
1 change: 1 addition & 0 deletions omnibor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ crate-type = [
gitoid = { version = "0.7.0", path = "../gitoid", default-features = false, features = [
"async",
"hex",
"rustcrypto",
"sha256",
"std",
"url",
Expand Down

0 comments on commit adc3b1b

Please sign in to comment.