-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.45 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
name: bench
on:
schedule:
- cron: '19 7 14 * *'
push:
branches-ignore: [release]
paths:
- "benches/**"
- "membench/**"
- ".github/workflows/bench.yml"
workflow_dispatch:
jobs:
bench:
runs-on: ubuntu-latest
steps:
- name: Set pkgcraft dir env var
run: echo pkgcraft_dir=~/pkgcraft >> $GITHUB_ENV
- name: Download prebuilt pkgcraft-c library
id: download-artifact
uses: dawidd6/action-download-artifact@v6
with:
github_token: ${{ secrets.PKGCRAFT_CI_TOKEN }}
repo: pkgcraft/pkgcraft
branch: main
workflow: pkgcraft-c.yml
workflow_conclusion: ""
search_artifacts: true
name: pkgcraft-c-${{ runner.os }}
path: ${{ env.pkgcraft_dir }}
- name: Checkout code
uses: actions/checkout@v4
with:
repository: pkgcraft/pkgcraft-python
# checkout full history for setuptools-scm
fetch-depth: 0
submodules: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: pip install tox
- name: Override build variables
run: |
echo "PKG_CONFIG_PATH=${pkgcraft_dir}" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=${pkgcraft_dir}/lib" >> $GITHUB_ENV
echo "DYLD_LIBRARY_PATH=${pkgcraft_dir}/lib" >> $GITHUB_ENV
- name: Run benchmarks
run: |
tox -e bench
tox -e membench