Skip to content

Commit e1f199f

Browse files
authored
filprofiler: Add version 2024.11.2 (#3170)
1 parent a1570b4 commit e1f199f

2 files changed

Lines changed: 108 additions & 0 deletions

File tree

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
# SPDX-FileCopyrightText: 2026 The RISE Project
2+
# SPDX-License-Identifier: MIT
3+
---
4+
# Based on upstream's own aarch64 wheel job:
5+
# https://github.com/pythonspeed/filprofiler/blob/2024.11.2/.github/workflows/main.yml
6+
name: Build filprofiler wheels (riscv64)
7+
8+
on:
9+
workflow_dispatch:
10+
inputs:
11+
version:
12+
description: 'Version glob to (re)build; empty builds every version of docs/packages/filprofiler.yaml not released yet'
13+
required: false
14+
default: ''
15+
pull_request:
16+
branches: [main]
17+
paths:
18+
- '.github/workflows/build-filprofiler.yml'
19+
- 'docs/packages/filprofiler.yaml'
20+
push:
21+
branches: [main]
22+
paths:
23+
- '.github/workflows/build-filprofiler.yml'
24+
- 'docs/packages/filprofiler.yaml'
25+
26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
28+
cancel-in-progress: true
29+
30+
permissions:
31+
contents: read # to fetch code (actions/checkout)
32+
33+
env:
34+
MANYLINUX_RISCV64_IMAGE: quay.io/pypa/manylinux_2_39_riscv64
35+
36+
jobs:
37+
setup:
38+
uses: $/.github/workflows/_setup.yml
39+
with:
40+
package: filprofiler
41+
version: ${{ inputs.version }}
42+
43+
build_wheels:
44+
needs: [setup]
45+
if: needs.setup.outputs.versions != '[]'
46+
name: Build filprofiler ${{ matrix.version }} ${{ matrix.python }}-manylinux_riscv64
47+
runs-on: ubuntu-24.04-riscv
48+
timeout-minutes: 90
49+
strategy:
50+
fail-fast: false
51+
matrix:
52+
version: ${{ fromJSON(needs.setup.outputs.versions) }}
53+
# pyo3 0.22 caps at 3.13 and upstream ships no wheel past cp313.
54+
python:
55+
- "cp312"
56+
- "cp313"
57+
58+
env:
59+
FILPROFILER_VERSION: ${{ matrix.version }}
60+
61+
steps:
62+
- name: Checkout filprofiler ${{ env.FILPROFILER_VERSION }}
63+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
64+
with:
65+
repository: pythonspeed/filprofiler
66+
ref: ${{ env.FILPROFILER_VERSION }}
67+
fetch-depth: 0
68+
persist-credentials: false
69+
70+
- name: Build wheels
71+
uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0
72+
with:
73+
output-dir: wheelhouse/
74+
only: ${{ matrix.python }}-manylinux_riscv64
75+
env:
76+
CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }}
77+
CIBW_BEFORE_ALL_LINUX: "yum install -y lld && curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y"
78+
CIBW_BEFORE_BUILD: "touch filpreload/src/_filpreload.c"
79+
CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"'
80+
CIBW_TEST_COMMAND: python -m filprofiler run {project}/benchmarks/pystone.py
81+
82+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
83+
with:
84+
name: filprofiler-${{ env.FILPROFILER_VERSION }}-${{ matrix.python }}-manylinux_riscv64
85+
path: wheelhouse/*.whl
86+
if-no-files-found: error
87+
88+
publish:
89+
name: Publish filprofiler ${{ matrix.version }}
90+
needs: [setup, build_wheels]
91+
if: needs.setup.outputs.versions != '[]'
92+
strategy:
93+
fail-fast: false
94+
matrix:
95+
version: ${{ fromJSON(needs.setup.outputs.versions) }}
96+
permissions:
97+
contents: write
98+
pull-requests: write
99+
uses: $/.github/workflows/_publish-wheel.yml
100+
secrets:
101+
app-private-key: ${{ secrets.RISEPROJECT_APP_PRIVATE_KEY }}
102+
with:
103+
artifact-pattern: filprofiler-${{ matrix.version }}-*-manylinux_riscv64

‎docs/packages/filprofiler.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package-name: filprofiler
2+
source-code: https://github.com/pythonspeed/filprofiler
3+
license: Apache-2.0
4+
versions:
5+
- version: 2024.11.2

0 commit comments

Comments
 (0)