-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.21 KB
/
CI.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
name: CI
on:
- push
- pull_request
- workflow_dispatch
permissions:
contents: read
jobs:
build-plrl:
name: Build polars-readlines
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: "-C target-cpu=x86-64-v3"
target: x86_64-unknown-linux-gnu,x86_64-pc-windows-msvc
components: llvm-tools
- name: Cache XWin
uses: actions/cache@v4
with:
path: ~/.cache/cargo-xwin/xwin
key: xwin
- name: Install dependencies
run: python -mpip install maturin[zig]
- name: Build sdist
run: maturin sdist --out dist
- name: Build wheels for Linux
run: maturin build --release --out dist --compatibility manylinux2014 --zig
- name: Build wheels for Windows
run: maturin build --release --out dist --target x86_64-pc-windows-msvc
- name: Upload dist
uses: actions/upload-artifact@v4
with:
path: dist/*