Skip to content

Commit bbbe7c2

Browse files
author
Morgan Bartholomew
committed
initial
0 parents  commit bbbe7c2

1,414 files changed

Lines changed: 247648 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: dtolnay/rust-toolchain@stable
15+
with:
16+
components: rustfmt, clippy
17+
- uses: Swatinem/rust-cache@v2
18+
- run: cargo fmt --check
19+
- run: cargo clippy -- -D warnings
20+
- run: cargo test

.github/workflows/docs.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: docs
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
jobs:
13+
deploy:
14+
environment:
15+
name: github-pages
16+
url: ${{ steps.deployment.outputs.page_url }}
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/configure-pages@v5
20+
- uses: actions/checkout@v5
21+
22+
- uses: astral-sh/setup-uv@v5
23+
- run: uv sync --group docs
24+
25+
- run: uv run zensical build --clean
26+
27+
- uses: actions/upload-pages-artifact@v4
28+
with:
29+
path: site
30+
31+
- uses: actions/deploy-pages@v4
32+
id: deployment

.github/workflows/publish.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: publish
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build:
10+
name: build ${{ matrix.target }} on ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
include:
14+
- os: ubuntu-latest
15+
target: x86_64
16+
- os: ubuntu-latest
17+
target: aarch64
18+
- os: macos-latest
19+
target: x86_64
20+
- os: macos-latest
21+
target: aarch64
22+
- os: windows-latest
23+
target: x86_64
24+
runs-on: ${{ matrix.os }}
25+
steps:
26+
- uses: actions/checkout@v6
27+
28+
- uses: PyO3/maturin-action@v1
29+
with:
30+
target: ${{ matrix.target }}
31+
args: --release --out dist
32+
sccache: "true"
33+
manylinux: auto
34+
35+
- uses: actions/upload-artifact@v7
36+
with:
37+
name: wheels-${{ matrix.os }}-${{ matrix.target }}
38+
path: dist
39+
40+
sdist:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v6
44+
45+
- uses: PyO3/maturin-action@v1
46+
with:
47+
command: sdist
48+
args: --out dist
49+
50+
- uses: actions/upload-artifact@v7
51+
with:
52+
name: wheels-sdist
53+
path: dist
54+
55+
publish:
56+
needs: [build, sdist]
57+
runs-on: ubuntu-latest
58+
environment: pypi
59+
permissions:
60+
id-token: write
61+
steps:
62+
- uses: actions/download-artifact@v7
63+
with:
64+
pattern: wheels-*
65+
merge-multiple: true
66+
path: dist
67+
68+
- uses: pypa/gh-action-pypi-publish@release/v1
69+
with:
70+
packages-dir: dist

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/.idea
2+
/target
3+
/site

0 commit comments

Comments
 (0)