-
Notifications
You must be signed in to change notification settings - Fork 849
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1,073 changed files
with
153,006 additions
and
52,161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
name: cyrus-sasl Tests | ||
|
||
# START OF COMMON SECTION | ||
on: | ||
push: | ||
branches: [ 'master', 'main', 'release/**' ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
# END OF COMMON SECTION | ||
|
||
jobs: | ||
build_wolfssl: | ||
name: Build wolfSSL | ||
# Just to keep it the same as the testing target | ||
runs-on: ubuntu-latest | ||
# This should be a safe limit for the tests to run. | ||
timeout-minutes: 4 | ||
steps: | ||
- name: Build wolfSSL | ||
uses: wolfSSL/actions-build-autotools-project@v1 | ||
with: | ||
path: wolfssl | ||
configure: --enable-all | ||
install: true | ||
# Don't run tests as this config is tested in many other places | ||
check: false | ||
|
||
- name: tar build-dir | ||
run: tar -zcf build-dir.tgz build-dir | ||
|
||
- name: Upload built lib | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wolf-install-sasl | ||
path: build-dir.tgz | ||
retention-days: 5 | ||
|
||
sasl_check: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# List of releases to test | ||
ref: [ 2.1.28 ] | ||
name: ${{ matrix.ref }} | ||
runs-on: ubuntu-latest | ||
# This should be a safe limit for the tests to run. | ||
timeout-minutes: 4 | ||
needs: build_wolfssl | ||
steps: | ||
- name: Install dependencies | ||
run: | | ||
# Don't prompt for anything | ||
export DEBIAN_FRONTEND=noninteractive | ||
sudo apt-get update | ||
sudo apt-get install krb5-kdc krb5-otp libkrb5-dev \ | ||
libsocket-wrapper libnss-wrapper krb5-admin-server libdb5.3-dev | ||
- name: Download lib | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: wolf-install-sasl | ||
|
||
- name: untar build-dir | ||
run: tar -xf build-dir.tgz | ||
|
||
- name: Checkout OSP | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: wolfssl/osp | ||
path: osp | ||
|
||
- name: Checkout sasl | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: cyrusimap/cyrus-sasl | ||
ref: cyrus-sasl-${{ matrix.ref }} | ||
path: sasl | ||
|
||
- name: Build cyrus-sasl | ||
working-directory: sasl | ||
run: | | ||
patch -p1 < $GITHUB_WORKSPACE/osp/cyrus-sasl/${{ matrix.ref }}/${{ matrix.ref }}.patch | ||
autoreconf -ivf | ||
./configure --with-openssl=no --with-wolfssl=$GITHUB_WORKSPACE/build-dir --with-dblib=berkeley --disable-shared | ||
# Need to run 'make' twice with '--disable-shared' for some reason | ||
make -j || make -j | ||
- name: Run testsuite | ||
working-directory: sasl | ||
run: | | ||
make -j -C utils testsuite saslpasswd2 | ||
# Retry up to five times | ||
for i in {1..5}; do | ||
TEST_RES=0 | ||
$GITHUB_WORKSPACE/osp/cyrus-sasl/${{ matrix.ref }}/run-tests.sh || TEST_RES=$? | ||
if [ "$TEST_RES" -eq "0" ]; then | ||
break | ||
fi | ||
done |
11 changes: 10 additions & 1 deletion
11
.github/workflows/haproxy.yml → .github/workflows/disabled/haproxy.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
name: grpc Tests | ||
|
||
# START OF COMMON SECTION | ||
on: | ||
push: | ||
branches: [ 'master', 'main', 'release/**' ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
# END OF COMMON SECTION | ||
|
||
jobs: | ||
build_wolfssl: | ||
name: Build wolfSSL | ||
# Just to keep it the same as the testing target | ||
runs-on: ubuntu-latest | ||
# This should be a safe limit for the tests to run. | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Build wolfSSL | ||
uses: wolfSSL/actions-build-autotools-project@v1 | ||
with: | ||
path: wolfssl | ||
configure: --enable-all 'CPPFLAGS=-DWOLFSSL_RSA_KEY_CHECK -DHAVE_EX_DATA_CLEANUP_HOOKS' | ||
install: true | ||
|
||
- name: tar build-dir | ||
run: tar -zcf build-dir.tgz build-dir | ||
|
||
- name: Upload built lib | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wolf-install-grpc | ||
path: build-dir.tgz | ||
retention-days: 5 | ||
|
||
grpc_check: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- ref: v1.60.0 | ||
tests: >- | ||
bad_ssl_alpn_test bad_ssl_cert_test client_ssl_test | ||
crl_ssl_transport_security_test server_ssl_test | ||
ssl_transport_security_test ssl_transport_security_utils_test | ||
test_core_security_ssl_credentials_test test_cpp_end2end_ssl_credentials_test | ||
h2_ssl_cert_test h2_ssl_session_reuse_test | ||
name: ${{ matrix.ref }} | ||
runs-on: ubuntu-latest | ||
# This should be a safe limit for the tests to run. | ||
timeout-minutes: 30 | ||
needs: build_wolfssl | ||
steps: | ||
- name: Confirm IPv4 and IPv6 support | ||
run: | | ||
ip addr list lo | grep 'inet ' | ||
ip addr list lo | grep 'inet6 ' | ||
- name: Install prereqs | ||
run: | ||
sudo apt-get install build-essential autoconf libtool pkg-config cmake clang libc++-dev | ||
|
||
- name: Download lib | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: wolf-install-grpc | ||
|
||
- name: untar build-dir | ||
run: tar -xf build-dir.tgz | ||
|
||
- name: Checkout OSP | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: wolfssl/osp | ||
path: osp | ||
|
||
- name: Checkout grpc | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: grpc/grpc | ||
path: grpc | ||
ref: ${{ matrix.ref }} | ||
|
||
- name: Build grpc | ||
working-directory: ./grpc | ||
run: | | ||
patch -p1 < ../osp/grpc/grpc-${{ matrix.ref }}.patch | ||
git submodule update --init | ||
mkdir cmake/build | ||
cd cmake/build | ||
cmake -DgRPC_BUILD_TESTS=ON -DgRPC_SSL_PROVIDER=wolfssl \ | ||
-DWOLFSSL_INSTALL_DIR=$GITHUB_WORKSPACE/build-dir ../.. | ||
make -j $(nproc) ${{ matrix.tests }} | ||
- name: Run grpc tests | ||
working-directory: ./grpc | ||
run: | | ||
export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/build-dir/lib:$LD_LIBRARY_PATH | ||
./tools/run_tests/start_port_server.py | ||
for t in ${{ matrix.tests }} ; do | ||
./cmake/build/$t | ||
done |
Oops, something went wrong.