Skip to content

Commit

Permalink
0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetanserre committed Nov 22, 2024
1 parent e450a74 commit b26ac7c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 42 deletions.
45 changes: 9 additions & 36 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build GKLS

on:
push:
branches: [ "main", "dev", "opti"]
branches: [ "main", "dev"]
tags:
- 'v*'
pull_request:
Expand All @@ -11,41 +11,6 @@ on:
workflow_dispatch:

jobs:
build-x86-linux:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get install python3
sudo apt-get install -y python3-dev
python -m pip install --upgrade pip
python -m pip install build
# Runs a single command using the runners shell
- name: Install gkls
run: |
python -m build --sdist --wheel
pip install .
python test.py
- name: Upload artifact
uses: actions/upload-artifact@master
with:
name: linux-artifact
path: |
dist/*.whl
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
body: "Release ${{ github.ref }}"
files: |
dist/*.whl
build_wheels_unix:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -82,6 +47,14 @@ jobs:
with:
name: ${{ matrix.os }}
path: ./dist/*.whl

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
body: "Release ${{ github.ref }}"
files: |
dist/*.whl
# build-arm-macos:
# runs-on: macos-latest
Expand Down
6 changes: 0 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,3 @@ Repository = "https://github.com/gaetanserre/pyGKLS"

[build-system]
requires = ["setuptools", "toml", "Cython==3.0.11"]

[tool.setuptools.packages.find]
where = ["src", "include"]

[tool.setuptools.exclude-package-data]
optimizers = ["pygkls.cc"]

0 comments on commit b26ac7c

Please sign in to comment.