ci: Benchmark NewReno and Cubic #172
Workflow file for this run
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
name: QUIC Network Simulator | |
on: | |
schedule: | |
- cron: '42 3 * * 2,5' # Runs at 03:42 UTC (m and h chosen arbitrarily) twice a week. | |
workflow_dispatch: | |
pull_request: | |
branches: ["main"] | |
merge_group: | |
jobs: | |
quic-network-simulator: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
steps: | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ github.token }} | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ghcr.io/${{ github.repository }}-qns | |
tags: | | |
# default | |
type=schedule | |
type=ref,event=branch | |
type=ref,event=tag | |
type=ref,event=pr | |
# set latest tag for default branch | |
type=raw,value=latest,enable={{is_default_branch}} | |
- name: Build and push | |
id: docker_build_and_push | |
uses: docker/build-push-action@v5 | |
with: | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.meta.outputs.tags }} | |
file: qns/Dockerfile | |
build-args: | | |
RUST_VERSION=stable | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
# On pull requests only build amd64 for the sake of CI time. | |
platforms: ${{ github.event_name == 'pull_request' && 'linux/amd64' || 'linux/amd64, linux/arm64' }} | |
load: ${{ github.event_name == 'pull_request' }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run QUIC Interop tests | |
if: ${{ github.event_name == 'pull_request' }} | |
# TODO: Replace once https://github.com/quic-interop/quic-interop-runner/pull/356 is merged. | |
uses: ./.github/actions/quic-interop-runner | |
with: | |
name: 'neqo-latest' | |
image: ${{ steps.docker_build_and_push.outputs.imageID }} | |
url: https://github.com/mozilla/neqo | |
test: handshake | |
client: neqo-latest,quic-go,ngtcp2,neqo,msquic | |
server: neqo-latest,quic-go,ngtcp2,neqo,msquic |