-
-
Notifications
You must be signed in to change notification settings - Fork 16
48 lines (38 loc) · 874 Bytes
/
bench.yml
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
name: bitproto benchmark
env:
TZ: Asia/Shanghai
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
os: [ubuntu-22.04, macos-latest]
python: ["3.11"]
go: ["1.19"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- uses: actions/checkout@v2
- name: Set up Golang ${{ matrix.go }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Install bitproto compiler
run: |
pip install -e ./compiler
- name: Install bitproto python lib
run: |
pip install -e ./lib/py
- name: Run benchmark
run: |
make bench