Skip to content

Commit

Permalink
Update and test build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaosongyang-sv authored Oct 31, 2024
1 parent 2313303 commit b07c0ed
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,20 @@ jobs:
./gen_cert.sh &&
cp certs/server.key certs/key.pem &&
cp certs/server.crt certs/cert.pem &&
sudo bash -c "ulimit -Sl 512 && ulimit -Hl 512 && cd /home/runner/monolake && sudo -u runner RUSTUP_TOOLCHAIN=nightly RUST_LOG=NONE /home/runner/.cargo/bin/cargo run --package monolake -- -c benchmark/proxy/monolake/monolake.toml &"
sudo bash -c "ulimit -Sl 512 && ulimit -Hl 512 && cd /home/runner/work/monolake && sudo -u runner RUSTUP_TOOLCHAIN=nightly RUST_LOG=NONE /home/runner/.cargo/bin/cargo run --package monolake -- -c benchmark/proxy/monolake/monolake.toml &"
- name: Install-Run-Server
run: |
sudo apt-get update &&
sudo apt-get install -y openssl nginx &&
sudo cp ./benchmark/server/nginx-web.conf /etc/nginx/nginx.conf &&
sudo cp -r ./benchmark/server/webroot/* /usr/share/nginx/html/ &&
cd /home/runner/work/monolake &&
cat examples/certs/server.key examples/certs/server.pkcs8 > ./combined.pem &&
sudo mv ./combined.pem /etc/nginx/ &&
sudo cp examples/certs/cert.pem /etc/nginx/ &&
sudo systemctl enable nginx &&
sudo systemctl start nginx &&
cd /home/runner/work &&
sleep 2
- name: Checkout-Client
uses: actions/checkout@v2
Expand All @@ -59,10 +61,11 @@ jobs:
sudo apt-get -y install gcc make git libssl-dev zlib1g-dev &&
cd wrk2 &&
make WITH_OPENSSL=/usr &&
cd /home/runner/work &&
sleep 2
- name: Run-Client
run: |
cd wrk2 &&
curl -vvv http://localhost:8402 &&
cd wrk2 &&
./wrk -d 1m -c 640 -t 64 -R 200000 --latency http://localhost:8402 &&
sleep 2

0 comments on commit b07c0ed

Please sign in to comment.