Skip to content

Commit ec27bf9

Browse files
authored
Test packaging w/ SSL build (#784)
* Add CI to package test w/ ssl * Don't build the tools * Fix CXX env var handling
1 parent cff21c1 commit ec27bf9

File tree

6 files changed

+38
-3
lines changed

6 files changed

+38
-3
lines changed

.github/workflows/integration.yml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ jobs:
7272
runs-on: windows-latest
7373
strategy:
7474
fail-fast: false
75-
matrix:
76-
os: [ windows-latest ]
7775
steps:
7876
- uses: actions/checkout@v3
7977
with:
@@ -88,6 +86,37 @@ jobs:
8886
run: |
8987
./scripts/run-windows-debug-crt-static-test.sh
9088
89+
ssl-test:
90+
if: github.repository_owner == 'aws'
91+
name: "SSL Test"
92+
runs-on: ${{ matrix.os }}
93+
strategy:
94+
fail-fast: false
95+
matrix:
96+
os: [ windows-latest, ubuntu-latest, macos-latest ]
97+
steps:
98+
- uses: actions/checkout@v3
99+
with:
100+
submodules: 'recursive'
101+
- uses: dtolnay/rust-toolchain@stable
102+
id: toolchain
103+
- name: Set Rust toolchain override
104+
run: rustup override set ${{ steps.toolchain.outputs.name }}
105+
- name: install bindgen-cli
106+
run: cargo install --force --locked bindgen-cli
107+
- uses: ilammy/setup-nasm@v1
108+
- name: "Test aws-lc-sys package w/ SSL enabled"
109+
working-directory: ./aws-lc-sys
110+
run: cargo package --features ssl
111+
- uses: actions/setup-go@v4
112+
with:
113+
go-version: '>=1.18'
114+
- name: Install ninja-build tool
115+
uses: seanmiddleditch/gha-setup-ninja@v4
116+
- name: "Test aws-lc-fips-sys package w/ SSL enabled"
117+
working-directory: ./aws-lc-fips-sys
118+
run: cargo package --features ssl
119+
91120
links-crate-tests:
92121
if: github.repository_owner == 'aws'
93122
name: sys crate tests

aws-lc-fips-sys/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ include = [
3030
"!/aws-lc/tests/**",
3131
"!/aws-lc/third_party/**",
3232
"!/aws-lc/util/**",
33+
"!/aws-lc/tool/**",
34+
"!/aws-lc/tool-openssl/**",
3335
"/aws-lc/tests/compiler_features_tests/**.c",
3436
"/aws-lc/third_party/fiat/**/LICENSE",
3537
"/aws-lc/third_party/fiat/**/*.h",

aws-lc-fips-sys/builder/cmake_builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ impl CmakeBuilder {
177177

178178
// Build flags that minimize our crate size.
179179
cmake_cfg.define("BUILD_TESTING", "OFF");
180+
cmake_cfg.define("BUILD_TOOL", "OFF");
180181
if cfg!(feature = "ssl") {
181182
cmake_cfg.define("BUILD_LIBSSL", "ON");
182183
} else {

aws-lc-sys/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ include = [
2828
"!/aws-lc/tests/**",
2929
"!/aws-lc/third_party/**",
3030
"!/aws-lc/util/**",
31+
"!/aws-lc/tool/**",
32+
"!/aws-lc/tool-openssl/**",
3133
"/aws-lc/tests/compiler_features_tests/**.c",
3234
"/aws-lc/third_party/fiat/**/LICENSE",
3335
"/aws-lc/third_party/fiat/**/*.h",

aws-lc-sys/builder/cc_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ impl CcBuilder {
202202
set_env_for_target("CC", &cc);
203203
}
204204
if let Some(cxx) = optional_env_optional_crate_target("CXX") {
205-
set_env_for_target("CC", &cxx);
205+
set_env_for_target("CXX", &cxx);
206206
}
207207

208208
if target_arch() == "x86" && !compiler_is_msvc {

aws-lc-sys/builder/cmake_builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ impl CmakeBuilder {
110110

111111
// Build flags that minimize our crate size.
112112
cmake_cfg.define("BUILD_TESTING", "OFF");
113+
cmake_cfg.define("BUILD_TOOL", "OFF");
113114
if cfg!(feature = "ssl") {
114115
cmake_cfg.define("BUILD_LIBSSL", "ON");
115116
} else {

0 commit comments

Comments
 (0)