Skip to content

Commit 4c039d4

Browse files
committed
Add GitHub workflows.
1 parent a837f2c commit 4c039d4

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build (CPU)
2+
on:
3+
push:
4+
branches: [master, dev]
5+
# release:
6+
# types: [published]
7+
8+
jobs:
9+
build:
10+
strategy:
11+
matrix:
12+
os:
13+
- ubuntu-latest
14+
- windows-latest
15+
- macos-latest
16+
version:
17+
- "3.9"
18+
- "3.10"
19+
- "3.11"
20+
- "3.12"
21+
runs-on: ${{ matrix.os }}
22+
steps:
23+
- name: Check out repository code
24+
uses: actions/checkout@v4
25+
- name: Install Poetry
26+
run: |
27+
python -m pip install --upgrade pip
28+
python -m pip install poetry
29+
- name: Setup Python
30+
uses: actions/setup-python@v4
31+
with:
32+
python-version: ${{ matrix.version }}
33+
cache: "poetry"
34+
- name: Install dependencies
35+
run: |
36+
poetry install
37+
- name: Build
38+
run: |
39+
poetry install
40+
# - name: Check
41+
# run: poetry run python -c "import cshogi"
42+
# - name: Publish
43+
# if: github.event_name == 'release' && github.event.action == 'published'
44+
# env:
45+
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
46+
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
47+
# run: twine upload dist/*

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
torchmcubes: marching cubes for PyTorch
22
===
33

4+
[![Build (CPU)](https://github.com/tatsy/torchmcubes/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/tatsy/torchmcubes/actions/workflows/build.yml)
5+
46
> Marching cubes for PyTorch environment. Backend is implemented with C++ and CUDA.
57
68
## Install

0 commit comments

Comments
 (0)