-
Notifications
You must be signed in to change notification settings - Fork 0
120 lines (106 loc) · 4.6 KB
/
Copy pathbenchmarks.yml
File metadata and controls
120 lines (106 loc) · 4.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: Benchmarks
on:
workflow_dispatch:
inputs:
ryusim_version:
description: "RyuSim version to install"
type: string
default: "latest"
jobs:
benchmark:
runs-on: ${{ matrix.os }}
container: ${{ matrix.container || '' }}
strategy:
fail-fast: false
matrix:
include:
- distro: ubuntu-24.04
os: ubuntu-24.04
- distro: ubuntu-22.04
os: ubuntu-22.04
- distro: debian-12
os: ubuntu-latest
container: debian:12
pip_flags: "--break-system-packages"
- distro: debian-13
os: ubuntu-latest
container: debian:13
pip_flags: "--break-system-packages"
- distro: rocky-9
os: ubuntu-latest
container: rockylinux:9
- distro: rocky-10
os: ubuntu-latest
container: rockylinux/rockylinux:10
- distro: fedora-40
os: ubuntu-latest
container: fedora:40
pip_flags: "--break-system-packages"
- distro: fedora-42
os: ubuntu-latest
container: fedora:42
pip_flags: "--break-system-packages"
steps:
- name: Install base packages (Debian 12)
if: matrix.container == 'debian:12'
run: |
apt-get update
apt-get install -y python3 python3-pip python3-dev python3-venv git curl ca-certificates cmake ninja-build verilator zlib1g-dev libssl-dev wget gnupg lsb-release software-properties-common
wget -qO- https://apt.llvm.org/llvm.sh | bash -s -- 18
ln -sf /usr/bin/clang-18 /usr/bin/clang
ln -sf /usr/bin/clang++-18 /usr/bin/clang++
- name: Install base packages (Debian 13)
if: matrix.container == 'debian:13'
run: |
apt-get update
apt-get install -y python3 python3-pip python3-dev python3-venv git curl ca-certificates cmake ninja-build clang verilator zlib1g-dev libssl-dev
- name: Install base packages (Rocky 9)
if: matrix.container == 'rockylinux:9'
run: |
dnf install -y epel-release
/usr/bin/crb enable
dnf install -y python3 python3-pip python3-devel git ca-certificates cmake ninja-build clang gcc gcc-c++ make verilator libstdc++-static zlib-devel openssl-devel
- name: Install base packages (Rocky 10)
if: matrix.container == 'rockylinux/rockylinux:10'
run: |
dnf install -y epel-release
/usr/bin/crb enable
dnf install -y python3 python3-pip python3-devel git ca-certificates cmake ninja-build clang gcc gcc-c++ make verilator libstdc++-static zlib-devel openssl-devel
- name: Install base packages (Fedora 40)
if: matrix.container == 'fedora:40'
run: |
dnf install -y python3 python3-pip python3-devel git ca-certificates cmake ninja-build clang gcc gcc-c++ make verilator libstdc++-devel libstdc++-static zlib-devel openssl-devel
- name: Install base packages (Fedora 42)
if: matrix.container == 'fedora:42'
run: |
dnf install -y python3 python3-pip python3-devel git ca-certificates cmake ninja-build clang gcc gcc-c++ make verilator libstdc++-devel libstdc++-static zlib-devel openssl-devel
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python (native runners)
if: ${{ !matrix.container }}
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install system dependencies (native Ubuntu)
if: ${{ !matrix.container }}
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test || true
sudo apt-get update
sudo apt-get install -y cmake ninja-build verilator zlib1g-dev libssl-dev libstdc++-13-dev wget gnupg lsb-release software-properties-common
wget -qO- https://apt.llvm.org/llvm.sh | sudo bash -s -- 18
sudo ln -sf /usr/bin/clang-18 /usr/bin/clang
sudo ln -sf /usr/bin/clang++-18 /usr/bin/clang++
- name: Install RyuSim
run: bash setup_ryusim.sh
env:
RYUSIM_VERSION: ${{ inputs.ryusim_version }}
- name: Install Python dependencies
run: pip install ${{ matrix.pip_flags || '' }} -r requirements.txt
- name: Run benchmarks
run: python3 -u run_benchmarks.py --all --verbose --output results/benchmarks-${{ matrix.distro }}.json
- name: Upload benchmark results
uses: actions/upload-artifact@v4
with:
name: benchmark-results-${{ matrix.distro }}
path: results/
retention-days: 30