pyfadetop 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -0,0 +1,143 @@
1
+ # This file is autogenerated by maturin v1.8.3
2
+ # To update, run
3
+ #
4
+ # maturin generate-ci github -o .github/workflows/build.yml
5
+ #
6
+ name: CI
7
+
8
+ on:
9
+ push:
10
+ branches:
11
+ - main
12
+ - master
13
+ tags:
14
+ - '*'
15
+ pull_request:
16
+ workflow_dispatch:
17
+
18
+ permissions:
19
+ contents: read
20
+
21
+ jobs:
22
+ linux:
23
+ runs-on: ${{ matrix.platform.runner }}
24
+ strategy:
25
+ fail-fast: false
26
+ matrix:
27
+ platform:
28
+ - runner: ubuntu-22.04
29
+ target: i686-unknown-linux-musl
30
+ - runner: ubuntu-22.04
31
+ target: armv7-unknown-linux-musleabihf
32
+ - runner: ubuntu-22.04
33
+ target: aarch64-unknown-linux-musl
34
+ - runner: ubuntu-22.04
35
+ target: x86_64-unknown-linux-musl
36
+ container:
37
+ image: ghcr.io/benfred/rust-musl-cross:${{ matrix.platform.target }}
38
+ env:
39
+ RUSTUP_HOME: /root/.rustup
40
+ CARGO_HOME: /root/.cargo
41
+ steps:
42
+ - uses: actions/checkout@v4
43
+ - name: Build Wheel
44
+ run: |
45
+ rustup toolchain uninstall stable && rustup toolchain install stable
46
+ rustup target add ${{ matrix.platform.target }}
47
+ python3 -m pip install --upgrade maturin
48
+ maturin build --release -o dist --target ${{ matrix.platform.target }}
49
+ - name: Upload wheels
50
+ uses: actions/upload-artifact@v4
51
+ with:
52
+ name: wheels-linux-${{ matrix.platform.target }}
53
+ path: dist
54
+
55
+ windows:
56
+ runs-on: ${{ matrix.platform.runner }}
57
+ strategy:
58
+ matrix:
59
+ platform:
60
+ - runner: windows-latest
61
+ target: x64
62
+ - runner: windows-latest
63
+ target: x86
64
+ steps:
65
+ - uses: actions/checkout@v4
66
+ - name: Build wheels
67
+ uses: PyO3/maturin-action@v1
68
+ with:
69
+ args: --release --out dist
70
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
71
+ - name: Upload wheels
72
+ uses: actions/upload-artifact@v4
73
+ with:
74
+ name: wheels-windows-${{ matrix.platform.target }}
75
+ path: dist
76
+
77
+ macos:
78
+ runs-on: ${{ matrix.platform.runner }}
79
+ strategy:
80
+ matrix:
81
+ platform:
82
+ - runner: macos-13
83
+ target: x86_64
84
+ - runner: macos-14
85
+ target: aarch64
86
+ steps:
87
+ - uses: actions/checkout@v4
88
+ - name: Build wheels
89
+ uses: PyO3/maturin-action@v1
90
+ with:
91
+ target: ${{ matrix.platform.target }}
92
+ args: --release --out dist
93
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
94
+ - name: Upload wheels
95
+ uses: actions/upload-artifact@v4
96
+ with:
97
+ name: wheels-macos-${{ matrix.platform.target }}
98
+ path: dist
99
+
100
+ sdist:
101
+ runs-on: ubuntu-latest
102
+ steps:
103
+ - uses: actions/checkout@v4
104
+ - name: Build sdist
105
+ uses: PyO3/maturin-action@v1
106
+ with:
107
+ command: sdist
108
+ args: --out dist
109
+ before-script-linux: sudo apt-get update && sudo apt-get install -y libunwind-dev libunwind8
110
+ - name: Run tests
111
+ run: cargo test --verbose
112
+ - name: Upload sdist
113
+ uses: actions/upload-artifact@v4
114
+ with:
115
+ name: wheels-sdist
116
+ path: dist
117
+
118
+ release:
119
+ name: Release
120
+ runs-on: ubuntu-latest
121
+ if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
122
+ needs: [linux, windows, macos, sdist]
123
+ permissions:
124
+ # Use to sign the release artifacts
125
+ id-token: write
126
+ # Used to upload release artifacts
127
+ contents: write
128
+ # Used to generate artifact attestation
129
+ attestations: write
130
+ steps:
131
+ - uses: actions/download-artifact@v4
132
+ - name: Generate artifact attestation
133
+ uses: actions/attest-build-provenance@v2
134
+ with:
135
+ subject-path: 'wheels-*/*'
136
+ - name: Publish to PyPI
137
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
138
+ uses: PyO3/maturin-action@v1
139
+ env:
140
+ MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
141
+ with:
142
+ command: upload
143
+ args: --non-interactive --skip-existing wheels-*/*
@@ -0,0 +1 @@
1
+ /target