-
Notifications
You must be signed in to change notification settings - Fork 33
46 lines (37 loc) · 1.11 KB
/
bench_linux_x86.yml
File metadata and controls
46 lines (37 loc) · 1.11 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
name: Benching x86
on: [push, pull_request]
env:
BUILD_TYPE: Release
jobs:
bench:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: "3.8"
architecture: "x64"
- name: Pouring Deps
run: |
sudo apt-get update
sudo apt install -y llvm e2fsprogs qemu-system-i386 qemu-utils fuseext2 ninja-build nasm
pip3 install -r utils/python_requirements.txt
pip3 install tabulate termcolor
- name: Pouring GN
run: |
wget https://chrome-infra-packages.appspot.com/dl/gn/gn/linux-amd64/+/latest
unzip latest
sudo mv gn /usr/local/bin
- name: Create LLVM Build Environment
run: |
export LLVM_BIN_PATH="/usr/lib/llvm-12/bin"
./gn_gen.sh -y --target_arch x86 --host llvm --test_method bench
- name: Building
run: |
cd out
./build.sh
- name: Benching
run: |
cd out
python3 ../utils/test/bench.py x86