-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0fbf8b7
commit f7c76c7
Showing
2 changed files
with
27 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,9 @@ on: [push, pull_request] | |
|
||
jobs: | ||
build-notls: | ||
env: | ||
# https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/ | ||
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -18,7 +21,11 @@ jobs: | |
build-ubuntu: | ||
strategy: | ||
matrix: | ||
platform: [ubuntu-latest, ubuntu-20.04] | ||
platform: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04, ubuntu-latest] | ||
name: Build ${{ matrix.platform }} | ||
env: | ||
# https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/ | ||
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -36,9 +43,11 @@ jobs: | |
architecture: x64 | ||
|
||
- name: Install Python dependencies | ||
if: matrix.platform == 'ubuntu-latest' | ||
run: pip install -r ./tests/test_requirements.txt | ||
|
||
- name: Install Redis | ||
if: matrix.platform == 'ubuntu-latest' | ||
run: | | ||
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg | ||
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list | ||
|
@@ -47,6 +56,7 @@ jobs: | |
sudo service redis-server stop | ||
- name: Increase connection limit | ||
if: matrix.platform == 'ubuntu-latest' | ||
run: | | ||
sudo sysctl -w net.ipv4.tcp_fin_timeout=10 | ||
sudo sysctl -w net.ipv4.tcp_tw_reuse=1 | ||
|
@@ -58,6 +68,7 @@ jobs: | |
./tests/gen-test-certs.sh | ||
- name: Test OSS TCP | ||
if: matrix.platform == 'ubuntu-latest' | ||
timeout-minutes: 10 | ||
run: | | ||
./tests/run_tests.sh | ||
|
@@ -81,6 +92,7 @@ jobs: | |
TLS_PROTOCOLS='TLSv1.3' VERBOSE=1 TLS=1 ./tests/run_tests.sh | ||
- name: Test OSS-CLUSTER TCP | ||
if: matrix.platform == 'ubuntu-latest' | ||
timeout-minutes: 10 | ||
run: | | ||
OSS_STANDALONE=0 OSS_CLUSTER=1 VERBOSE=1 \ | ||
|
@@ -106,8 +118,11 @@ jobs: | |
openssl: ["3.0"] | ||
runs-on: macos-latest | ||
continue-on-error: true | ||
env: | ||
# https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/ | ||
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: brew install autoconf automake libtool libevent openssl@${{ matrix.openssl }} | ||
- name: Build | ||
|
@@ -121,8 +136,11 @@ jobs: | |
matrix: | ||
platform: [macos-12] | ||
runs-on: ${{ matrix.platform }} | ||
env: | ||
# https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/ | ||
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: brew install autoconf automake libtool libevent [email protected] | ||
- name: Build | ||
|
@@ -134,8 +152,11 @@ jobs: | |
matrix: | ||
platform: [macos-12] | ||
runs-on: ${{ matrix.platform }} | ||
env: | ||
# https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/ | ||
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: brew install autoconf automake libtool libevent pkg-config | ||
- name: Install openssl v1.0.2 | ||
|
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