Skip to content

Commit 2e1b9bb

Browse files
authored
windows (#19)
* windows * test py * artifact * py * readme
1 parent bad1278 commit 2e1b9bb

File tree

4 files changed

+54
-2
lines changed

4 files changed

+54
-2
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust
1+
name: Basic check
22

33
on:
44
push:

.github/workflows/windows.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: windows-build
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
defaults:
12+
run:
13+
# necessary for windows
14+
shell: bash
15+
16+
jobs:
17+
build:
18+
runs-on: windows-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Build
23+
run: cargo build --release --verbose
24+
25+
- name: Build Python
26+
run: |
27+
python3 -m pip install maturin
28+
python3 -m maturin build -r
29+
30+
- name: List
31+
run: |
32+
ls ./target/release
33+
ls ./target/wheels
34+
35+
- name: Move the artifact
36+
run: |
37+
mkdir -p ./artifacts
38+
7z a ccrs-x86_64-pc-windows-msvc.zip ./target/release/ccrs.exe
39+
sha256sum ccrs-x86_64-pc-windows-msvc.zip > ccrs-x86_64-pc-windows-msvc.zip.sha256
40+
mv ./target/wheels/*.whl .
41+
42+
- name: Archive artifact
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: artifacts-ccrs-x86_64-pc-windows-msvc
46+
path: |
47+
*.zip
48+
*.sha256
49+
*.whl

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# camera-intrinsic-calibration
22
[![crate](https://img.shields.io/crates/v/camera-intrinsic-calibration.svg)](https://crates.io/crates/camera-intrinsic-calibration)
3+
[![crate downloads](https://img.shields.io/crates/d/camera-intrinsic-calibration)](https://crates.io/crates/camera-intrinsic-calibration)
4+
35
[![PyPI - Version](https://img.shields.io/pypi/v/camera-intrinsic-calibration.svg)](https://pypi.org/project/camera-intrinsic-calibration)
46
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/camera-intrinsic-calibration.svg)](https://pypi.org/project/camera-intrinsic-calibration)
57

6-
A pure rust camera intrinsic calibration library.
8+
A pure rust camera intrinsic calibration tool.
79

810
## Installation
911
```sh

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ classifiers = [
1414
"Programming Language :: Python :: 3.10",
1515
"Programming Language :: Python :: 3.11",
1616
"Programming Language :: Python :: 3.12",
17+
"Programming Language :: Python :: 3.13",
1718
]
1819
authors = [
1920
{ name = "Powei Lin", email = "poweilin1994@gmail.com" },

0 commit comments

Comments
 (0)