Skip to content

Commit 2630afa

Browse files
justsmthaws-lc-sys-bindings-generator
andauthored
Prepare aws-lc-sys v0.31.0 (#867)
* Prepare aws-lc-sys v0.31.0 * Package *.i and *.h.in files * CI fixes + debugging * Fix bindings prelude * Symbols from macos-14 * Symbols from x86_64-pc-windows-gnu * Symbols from x86_64-pc-windows-msvc * Symbols from i686-pc-windows-msvc * Symbols from aarch64-pc-windows-msvc * Symbols from ubuntu-latest * Symbols from macos-13 * Symbols for powerpc-unknown-linux-gnu * Symbols for x86_64-unknown-linux-musl * Symbols for powerpc64le-unknown-linux-gnu * Symbols for i686-unknown-linux-gnu * Symbols for armv7-unknown-linux-gnueabihf * Symbols for aarch64-unknown-linux-musl * Symbols for aarch64-unknown-linux-gnu * Symbols for arm-unknown-linux-gnueabi * Generated headers * Generated bindings from ubuntu-latest * Generated bindings for x86_64-pc-windows-msvc * Generated bindings for x86_64-pc-windows-gnu * Generated bindings for aarch64-unknown-linux-gnu * Generated bindings for x86_64-unknown-linux-musl * Generated bindings for i686-unknown-linux-gnu * Generated bindings for riscv64gc-unknown-linux-gnu * Generated bindings for aarch64-linux-android * Generated bindings for aarch64-unknown-linux-musl * Generated bindings from macos-14 * Generated bindings for aarch64-pc-windows-msvc * Generated bindings for i686-pc-windows-msvc * Generated bindings from macos-13 * Collected source files from macos-14 * Collected NASM files * Collected source files for aarch64-unknown-linux-gnu * Collected source files for aarch64-unknown-linux-musl * Collected source files for i686-unknown-linux-gnu * Collected source files for x86_64-unknown-linux-musl * Collected source files from ubuntu-latest * Collected source files from macos-13 * Collected source files for riscv64gc-unknown-linux-gnu * DEBIAN_FRONTEND: noninteractive --------- Co-authored-by: aws-lc-sys-bindings-generator <[email protected]>
1 parent 391ede7 commit 2630afa

File tree

106 files changed

+51228
-75640
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+51228
-75640
lines changed

.github/workflows/analysis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ env:
1818
# Otherwise, we test against the latest version.
1919
RUST_NIGHTLY_TOOLCHAIN: nightly
2020
RUST_SCRIPT_NIGHTLY_TOOLCHAIN: nightly
21+
DEBIAN_FRONTEND: noninteractive
2122

2223
jobs:
2324
rustfmt:
@@ -154,9 +155,9 @@ jobs:
154155
- name: Run cargo tree
155156
if: ${{ matrix.os != 'windows-latest' }}
156157
run: |
157-
if cargo tree -e build -p aws-lc-sys | grep -q bindgen; then
158+
if cargo tree -e build -p aws-lc-sys | grep -q bindgen; then
158159
exit 1 # bindgen should not be listed
159-
else
160+
else
160161
exit 0
161162
fi
162163
- name: Run cargo tree
@@ -185,9 +186,9 @@ jobs:
185186
- name: Run cargo tree
186187
if: ${{ matrix.os != 'windows-latest' }}
187188
run: |
188-
if cargo tree -e build -p aws-lc-fips-sys | grep -q bindgen; then
189+
if cargo tree -e build -p aws-lc-fips-sys | grep -q bindgen; then
189190
exit 1 # bindgen should not be listed
190-
else
191+
else
191192
exit 0
192193
fi
193194
- name: Run cargo tree

.github/workflows/compilers.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ env:
1717
# We can pin the version if nightly is too unstable.
1818
# Otherwise, we test against the latest version.
1919
RUST_NIGHTLY_TOOLCHAIN: nightly
20+
DEBIAN_FRONTEND: noninteractive
2021

2122
jobs:
2223

@@ -36,14 +37,14 @@ jobs:
3637
fips: [ '0', '1' ]
3738
steps:
3839
- run: |
40+
set -x
3941
apt-get update
4042
apt-get install -y ca-certificates
41-
apt-get install -y cmake curl sudo
43+
apt-get install -y cmake curl sudo git
4244
apt-get install -y --no-install-recommends gpg-agent software-properties-common
43-
apt-add-repository --yes ppa:git-core/ppa
4445
add-apt-repository --yes ppa:longsleep/golang-backports
4546
apt-get update
46-
apt-get install -y build-essential git golang-go
47+
apt-get install -y build-essential golang-go
4748
curl -L -O -J https://github.com/PowerShell/PowerShell/releases/download/v7.2.23/powershell_7.2.23-1.deb_amd64.deb
4849
dpkg -i powershell_7.2.23-1.deb_amd64.deb
4950
apt-get install -f
@@ -78,7 +79,7 @@ jobs:
7879
name: Verify paths found in debug build
7980
run: |
8081
DEBUG_LIBCRYPTO=$(find ./target/debug -name "libaws_lc_*_crypto.a")
81-
if strings ${DEBUG_LIBCRYPTO} | grep '/tmp/aws-lc-rs/'; then
82+
if strings ${DEBUG_LIBCRYPTO} | grep '/tmp/aws-lc-rs/'; then
8283
exit 0; # SUCCESS
8384
else
8485
strings ${DEBUG_LIBCRYPTO}
@@ -92,7 +93,7 @@ jobs:
9293
name: Verify paths not found in release build
9394
run: |
9495
RELEASE_LIBCRYPTO=$(find ./target/release -name "libaws_lc_*_crypto.a")
95-
if strings ${RELEASE_LIBCRYPTO} | grep '/tmp/aws-lc-rs/'; then
96+
if strings ${RELEASE_LIBCRYPTO} | grep '/tmp/aws-lc-rs/'; then
9697
exit 1; # FAIL - we did not expect to find "/tmp/aws-lc-rs/" (i.e., a path)
9798
else
9899
exit 0; # SUCCESS
@@ -114,14 +115,14 @@ jobs:
114115
fips: [ '0', '1' ]
115116
steps:
116117
- run: |
118+
set -x
117119
apt-get update
118120
apt-get install -y ca-certificates
119-
apt-get install -y cmake curl sudo
121+
apt-get install -y cmake curl sudo git
120122
apt-get install -y --no-install-recommends gpg-agent software-properties-common
121-
apt-add-repository --yes ppa:git-core/ppa
122123
add-apt-repository --yes ppa:longsleep/golang-backports
123124
apt-get update
124-
apt-get install -y build-essential git golang-go
125+
apt-get install -y build-essential golang-go
125126
curl -L -O -J https://github.com/PowerShell/PowerShell/releases/download/v7.2.23/powershell_7.2.23-1.deb_amd64.deb
126127
dpkg -i powershell_7.2.23-1.deb_amd64.deb
127128
apt-get install -f

.github/workflows/cross.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ env:
1717
# We can pin the version if nightly is too unstable.
1818
# Otherwise, we test against the latest version.
1919
RUST_NIGHTLY_TOOLCHAIN: nightly
20+
DEBIAN_FRONTEND: noninteractive
2021

2122
jobs:
2223
aws-lc-rs-cross-test:

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010
# We can pin the version if nightly is too unstable.
1111
# Otherwise, we test against the latest version.
1212
RUST_NIGHTLY_TOOLCHAIN: nightly
13+
DEBIAN_FRONTEND: noninteractive
1314

1415
jobs:
1516
deploy-user-guide:

.github/workflows/fips-bindings-generator.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515
# Otherwise, we test against the latest version.
1616
RUST_NIGHTLY_TOOLCHAIN: nightly
1717
RUST_SCRIPT_NIGHTLY_TOOLCHAIN: nightly
18+
DEBIAN_FRONTEND: noninteractive
1819

1920
concurrency:
2021
group: ${{ github.workflow }}-${{ github.ref_name }}

.github/workflows/fips.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ env:
1717
# We can pin the version if nightly is too unstable.
1818
# Otherwise, we test against the latest version.
1919
RUST_NIGHTLY_TOOLCHAIN: nightly
20+
DEBIAN_FRONTEND: noninteractive
2021

2122
jobs:
2223
fips-test:
@@ -56,7 +57,8 @@ jobs:
5657
# Use latest CMake
5758
run: |
5859
brew update
59-
brew upgrade cmake
60+
brew uninstall --force cmake
61+
brew install --force cmake
6062
cmake --version
6163
echo 'CMAKE=${{ (matrix.os == 'macos-13' && '/usr/local') || '/opt/homebrew' }}/bin/cmake' >> $GITHUB_ENV
6264
- name: Run cargo test

.github/workflows/integration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ env:
1717
# We can pin the version if nightly is too unstable.
1818
# Otherwise, we test against the latest version.
1919
RUST_NIGHTLY_TOOLCHAIN: nightly
20+
DEBIAN_FRONTEND: noninteractive
2021

2122
jobs:
2223
s2n-quic-integration:

.github/workflows/pregen-bindings.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ env:
1919
RUST_NIGHTLY_TOOLCHAIN: nightly
2020
RUST_SCRIPT_NIGHTLY_TOOLCHAIN: nightly
2121
GOPROXY: https://proxy.golang.org,direct
22+
DEBIAN_FRONTEND: noninteractive
23+
2224
jobs:
2325
sys-bindings:
2426
if: github.repository_owner == 'aws'

.github/workflows/sys-bindings-generator.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515
# Otherwise, we test against the latest version.
1616
RUST_NIGHTLY_TOOLCHAIN: nightly
1717
RUST_SCRIPT_NIGHTLY_TOOLCHAIN: nightly
18+
DEBIAN_FRONTEND: noninteractive
1819

1920
concurrency:
2021
group: ${{ github.workflow }}-${{ github.ref_name }}

.github/workflows/tests.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ env:
1717
# We can pin the version if nightly is too unstable.
1818
# Otherwise, we test against the latest version.
1919
RUST_NIGHTLY_TOOLCHAIN: nightly
20+
DEBIAN_FRONTEND: noninteractive
2021

2122
jobs:
2223

@@ -284,7 +285,7 @@ jobs:
284285
run: cargo install --locked bindgen-cli
285286
- name: Remove bindings
286287
run: |
287-
rm ./aws-lc-sys/src/x86_64*
288+
rm ./aws-lc-sys/src/x86_64*
288289
rm ./aws-lc-sys/src/aarch64*
289290
- name: Run cargo test
290291
run: cargo test --tests -p aws-lc-rs --no-default-features --features aws-lc-sys
@@ -445,7 +446,7 @@ jobs:
445446
run: cargo install --locked bindgen-cli
446447
- name: Remove bindings
447448
run: |
448-
rm ./aws-lc-fips-sys/src/x86_64*
449+
rm ./aws-lc-fips-sys/src/x86_64*
449450
rm ./aws-lc-fips-sys/src/aarch64*
450451
- name: Run cargo test
451452
run: cargo test --tests -p aws-lc-rs --no-default-features --features fips
@@ -583,7 +584,8 @@ jobs:
583584
# Use latest CMake
584585
run: |
585586
brew update
586-
brew upgrade cmake
587+
brew uninstall --force cmake
588+
brew install --force cmake
587589
cmake --version
588590
echo 'CMAKE=${{ (matrix.os == 'macos-13' && '/usr/local') || '/opt/homebrew' }}/bin/cmake' >> $GITHUB_ENV
589591
- name: Run cargo test

0 commit comments

Comments
 (0)