Skip to content

Commit

Permalink
chore: Merge branch 'release/4.16.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuthor committed May 6, 2024
2 parents 54e843a + d3b22f5 commit 377efd4
Show file tree
Hide file tree
Showing 133 changed files with 34,560 additions and 1,404 deletions.
45 changes: 0 additions & 45 deletions .cargo/audit.toml

This file was deleted.

38 changes: 18 additions & 20 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
cargo build
cd ../server
cargo build
cd ../pkcs11
cd ../pkcs11/provider
cargo build
cd ../..
cd ../../..
# Check binaries
target/debug/ckms -h
Expand All @@ -47,9 +47,9 @@ jobs:
cargo build
cd ../server
cargo build
cd ../pkcs11
cd ../pkcs11/provider
cargo build
cd ../..
cd ../../..
# Check binaries
target/debug/ckms -h
Expand All @@ -73,9 +73,9 @@ jobs:
cargo build --features fips
cd ../server
cargo build --features fips
cd ../pkcs11
cd ../pkcs11/provider
cargo build
cd ../..
cd ../../..
# Check binaries
target/debug/ckms -h
Expand All @@ -101,9 +101,9 @@ jobs:
cargo build
cd ../server
cargo build
cd ../pkcs11
cd ../pkcs11/provider
cargo build
cd ../..
cd ../../..
# Check binaries
target/debug/ckms -h
Expand All @@ -128,9 +128,9 @@ jobs:
cargo build --features fips
cd ../server
cargo build --features fips
cd ../pkcs11
cd ../pkcs11/provider
cargo build
cd ../..
cd ../../..
# Check binaries
target/debug/ckms -h
Expand All @@ -157,9 +157,9 @@ jobs:
ldd ../../target/debug/ckms | grep ssl && exit 1
cd ../server
cargo build
cd ../pkcs11
cd ../pkcs11/provider
cargo build
cd ../..
cd ../../..
# Check binaries
target/debug/ckms -h
Expand All @@ -185,12 +185,10 @@ jobs:
cd crate/cli
cargo build --target x86_64-pc-windows-gnu
# The `pkcs11` crate build FAILS on debug with:
# /usr/bin/x86_64-w64-mingw32-ld: error: export ordinal too large: 85394
# build pkcs11 provider
# cd ../pkcs11
# cargo build --target x86_64-pc-windows-gnu
cd ../..
cd ../pkcs11/provider
cargo build --release --target x86_64-pc-windows-gnu
cd ../../..
sudo mkdir -p /usr/local/openssl
sudo chown -R $USER /usr/local/openssl
Expand All @@ -201,7 +199,7 @@ jobs:
artifacts: |
target/x86_64-pc-windows-gnu/debug/ckms.exe
target/x86_64-pc-windows-gnu/debug/cosmian_kms_server.exe
# target/x86_64-pc-windows-gnu/debug/ckms_pkcs11.dll
target/x86_64-pc-windows-gnu/release/ckms_pkcs11.dll
mac-tests:
uses: ./.github/workflows/build_generic.yml
Expand All @@ -217,9 +215,9 @@ jobs:
cd crate/cli
cargo build --target x86_64-apple-darwin
otool -L ../../target/x86_64-apple-darwin/debug/ckms | grep openssl && exit 1
cd ../pkcs11
cd ../pkcs11/provider
cargo build --target x86_64-apple-darwin
cd ../server
cd ../../server
cargo build --target x86_64-apple-darwin
cd ../..
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/build_all_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
cargo build --release
cd ../server
cargo build --release
cd ../pkcs11
cd ../pkcs11/provider
cargo build --release
cd ../..
cd ../../..
# Check binaries
target/release/ckms -h
Expand All @@ -45,9 +45,9 @@ jobs:
cargo build --release
cd ../server
cargo build --release
cd ../pkcs11
cd ../pkcs11/provider
cargo build --release
cd ../..
cd ../../..
# Check binaries
target/release/ckms -h
Expand All @@ -69,9 +69,9 @@ jobs:
cargo build --release --features fips
cd ../server
cargo build --release --features fips
cd ../pkcs11
cd ../pkcs11/provider
cargo build --release
cd ../..
cd ../../..
# Check binaries
target/release/ckms -h
Expand All @@ -95,9 +95,9 @@ jobs:
cargo build --release
cd ../server
cargo build --release
cd ../pkcs11
cd ../pkcs11/provider
cargo build --release
cd ../..
cd ../../..
# Check binaries
target/release/ckms -h
Expand All @@ -120,9 +120,9 @@ jobs:
cargo build --release --features fips
cd ../server
cargo build --release --features fips
cd ../pkcs11
cd ../pkcs11/provider
cargo build --release
cd ../..
cd ../../..
# Check binaries
target/release/ckms -h
Expand All @@ -147,9 +147,9 @@ jobs:
ldd ../../target/release/ckms | grep ssl && exit 1
cd ../server
cargo build --release
cd ../pkcs11
cd ../pkcs11/provider
cargo build --release
cd ../..
cd ../../..
# Check binaries
target/release/ckms -h
Expand All @@ -174,9 +174,9 @@ jobs:
cargo build --release --target x86_64-pc-windows-gnu
# build pkcs11 provider
cd ../pkcs11
cd ../pkcs11/provider
cargo build --release --target x86_64-pc-windows-gnu
cd ../..
cd ../../..
sudo mkdir -p /usr/local/openssl
sudo chown -R $USER /usr/local/openssl
Expand All @@ -203,9 +203,9 @@ jobs:
cd crate/cli
cargo build --release --target x86_64-apple-darwin
otool -L ../../target/x86_64-apple-darwin/release/ckms | grep openssl && exit 1
cd ../pkcs11
cd ../pkcs11/provider
cargo build --release --target x86_64-apple-darwin
cd ../server
cd ../../server
cargo build --release --target x86_64-apple-darwin
cd ../..
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: actions/cache@v3
with:
path: ~/.cargo/bin
key: ${{ runner.os }}-cargo-audit-v0.15.2
- uses: rustsec/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: EmbarkStudios/cargo-deny-action@v1

cargo-lint:
uses: ./.github/workflows/clippy.yml
Expand Down Expand Up @@ -61,7 +54,7 @@ jobs:
kms_path: .
os: macos-12
- archive_name: windows_tests
kms_path: .
kms_path: debug
os: windows-2019

steps:
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/main_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,18 @@ on:
push:
# any tags, including tags with / like v1.0/alpha
tags:
- "**"
- '**'
schedule:
# every day at 3 AM
- cron: "00 3 * * *"
- cron: 00 3 * * *

jobs:
cargo-audit:
name: Security Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: actions/cache@v3
with:
path: ~/.cargo/bin
key: ${{ runner.os }}-cargo-audit-v0.15.2
- uses: rustsec/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: EmbarkStudios/cargo-deny-action@v1

cargo-lint:
uses: ./.github/workflows/clippy.yml
Expand Down
Loading

0 comments on commit 377efd4

Please sign in to comment.