Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.11"]

steps:
Expand All @@ -39,6 +39,8 @@ jobs:
with:
version: ${{ matrix.python-version }}

- uses: actions-ext/rust/setup@main

- name: Install dependencies
run: make develop

Expand All @@ -59,17 +61,19 @@ jobs:
with:
name: test-results-${{ matrix.os }}-${{ matrix.python-version }}
path: junit.xml
if: ${{ always() }}
if: ${{ matrix.os == 'ubuntu-latest' }}

- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: '**/junit.xml'
if: ${{ matrix.os == 'ubuntu-latest' }}

- name: Upload coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
if: ${{ matrix.os == 'ubuntu-latest' }}

- name: Make dist
run: make dist
Expand All @@ -78,3 +82,4 @@ jobs:
with:
name: dist-${{matrix.os}}
path: dist
if: ${{ matrix.os == 'ubuntu-latest' }}
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ Hatch plugin for Rust builds

## Overview

A simple, extensible Rust build plugin for [hatch](https://hatch.pypa.io/latest/).

```toml
[tool.hatch.build.hooks.hatch-rs]
verbose = true
path = "."
module = "project"
```

> [!NOTE]
> This library was generated using [copier](https://copier.readthedocs.io/en/stable/) from the [Base Python Project Template repository](https://github.com/python-project-templates/base).
2 changes: 1 addition & 1 deletion hatch_rs/structs.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def generate(self):

if not self.target:
if platform == "win32":
if machine == "x86_64":
if machine in ("x86_64", "AMD64"):
self.target = "x86_64-pc-windows-msvc"
elif machine == "i686":
self.target = "i686-pc-windows-msvc"
Expand Down
Loading