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

ci: fix sspi-ffi test job for Windows #98

Merged
merged 1 commit into from
Jan 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:
name: Tests [${{ matrix.os }}] [${{ matrix.crate-name }}]
runs-on: ${{ matrix.runner }}
needs: formatting
env:
SSPI_RS_IS_RUNNING_TESTS: true
strategy:
fail-fast: true
matrix:
Expand Down
3 changes: 2 additions & 1 deletion ffi/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ use std::path::PathBuf;

fn main() {
let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap();
let is_running_tests = env::var("SSPI_RS_IS_RUNNING_TESTS").is_ok();

if target_os == "windows" {
if target_os == "windows" && !is_running_tests {
// On Windows, we provide the linker with a .def file to rename exports.
// This module definition file is used to rename some symbols
// and avoid linkage conflicts with secur32.dll when building the library.
Expand Down