Skip to content

Commit 33a6bd4

Browse files
committed
v0.0.21 Added CI workflow
1 parent edf59c4 commit 33a6bd4

File tree

5 files changed

+95
-189
lines changed

5 files changed

+95
-189
lines changed

.github/workflows/CI.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# This file is autogenerated by maturin v1.8.2
2+
# To update, run
3+
#
4+
# maturin generate-ci -m ./greyjack/Cargo.toml github --platform manylinux
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+
matrix:
26+
platform:
27+
- runner: ubuntu-22.04
28+
target: x86_64
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: actions/setup-python@v5
32+
with:
33+
python-version: 3.x
34+
- name: Build wheels
35+
uses: PyO3/maturin-action@v1
36+
with:
37+
target: ${{ matrix.platform.target }}
38+
args: --release --out dist --find-interpreter --manifest-path ./greyjack/Cargo.toml
39+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
40+
manylinux: auto
41+
- name: Upload wheels
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: wheels-linux-${{ matrix.platform.target }}
45+
path: dist
46+
47+
sdist:
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v4
51+
- name: Build sdist
52+
uses: PyO3/maturin-action@v1
53+
with:
54+
command: sdist
55+
args: --out dist --manifest-path ./greyjack/Cargo.toml
56+
- name: Upload sdist
57+
uses: actions/upload-artifact@v4
58+
with:
59+
name: wheels-sdist
60+
path: dist
61+
62+
release:
63+
name: Release
64+
runs-on: ubuntu-latest
65+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
66+
needs: [linux, sdist]
67+
permissions:
68+
# Use to sign the release artifacts
69+
id-token: write
70+
# Used to upload release artifacts
71+
contents: write
72+
# Used to generate artifact attestation
73+
attestations: write
74+
steps:
75+
- uses: actions/download-artifact@v4
76+
- name: Generate artifact attestation
77+
uses: actions/attest-build-provenance@v1
78+
with:
79+
subject-path: 'wheels-*/*'
80+
- name: Publish to PyPI
81+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
82+
uses: PyO3/maturin-action@v1
83+
env:
84+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
85+
with:
86+
command: upload
87+
args: --non-interactive --skip-existing wheels-*/*

greyjack/.github/workflows/CI.yml

Lines changed: 0 additions & 181 deletions
This file was deleted.

greyjack/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

greyjack/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "greyjack"
3-
version = "0.0.20"
3+
version = "0.0.21"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -19,8 +19,8 @@ ndarray-stats = "0.6.0"
1919
chrono = "0.4.39"
2020
polars = { version = "0.46.0", features = ["lazy", "ndarray", "serde", "abs"] }
2121

22-
#[profile.release]
23-
#lto = true
24-
#codegen-units = 1
25-
#debug = true
26-
#opt-level = 3
22+
[profile.release]
23+
lto = true
24+
codegen-units = 1
25+
debug = true
26+
opt-level = 3

greyjack/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ features = ["pyo3/extension-module"]
77

88
[project]
99
name = "greyjack"
10-
version = "0.0.20"
10+
version = "0.0.21"
1111
requires-python = ">=3.9"
1212
dependencies = [
1313
"dill",

0 commit comments

Comments
 (0)