Skip to content

Commit

Permalink
fix: poetry fully dropped in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
krypton-byte committed Jan 11, 2025
1 parent 50fb82b commit 519ecec
Show file tree
Hide file tree
Showing 72 changed files with 15,282 additions and 20,031 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: "3.11.8"
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y
poetry source add pypi
poetry lock --no-update
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: install deps
- name: build docs
run: |
poetry install --with docs
poetry run docsbuild
poetry sync --docs
uv run task docsbuild
- name: Deploy docs
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down
28 changes: 17 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ on:
description: build binaries
required: true
default: true

env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
jobs:
android:
if: github.event.inputs.goneonize
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -67,6 +69,7 @@ jobs:
name: Android
path: neonize/*.so
zig:
if: github.event.inputs.goneonize
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
Expand All @@ -86,7 +89,6 @@ jobs:
uv run task version goneonize --set-version ${{ github.event.inputs.version }}
- name: build
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
mkdir LIBS
export CGO_ENABLED=1
#AMD64
Expand Down Expand Up @@ -130,6 +132,7 @@ jobs:
LIBS/*.so
LIBS/*.dll
linux:
if: github.event.inputs.goneonize
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
Expand All @@ -150,7 +153,6 @@ jobs:
run: sudo apt update && sudo apt install wget gcc-aarch64-linux-gnu gcc-s390x-linux-gnu gcc-riscv64-linux-gnu -y
- name: build
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
mkdir LIBS
#AMD64/X86_64
export CGO_ENABLED=1
Expand Down Expand Up @@ -191,6 +193,7 @@ jobs:
name: Linux
path: LIBS/*.so
darwin:
if: github.event.inputs.goneonize
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -209,7 +212,6 @@ jobs:
uv run task version goneonize --set-version ${{ github.event.inputs.version }}
- name: build
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
mkdir LIBS
export PATH="/Users/runner/.local/bin:$PATH"
# Set necessary environment variables for building on Darwin
Expand Down Expand Up @@ -246,12 +248,14 @@ jobs:
runs-on: ubuntu-latest
needs: [android, zig, linux, darwin]
steps:
- name: Download Artifact
- if: github.event.inputs.goneonize
name: Download Artifact
uses: actions/download-artifact@v4
with:
merge-multiple: true
path: sharedlib
- name: Upload shared library to draft release
- if: github.event.inputs.goneonize
name: Upload shared library to draft release
uses: softprops/action-gh-release@v1
with:
draft: false
Expand All @@ -271,9 +275,11 @@ jobs:
run: |
uv sync --dev
uv run task version neonize --set-version ${{ github.event.inputs.version }}
uv run task version goneonize --set-version ${{ github.event.inputs.version }}
- if: github.event.inputs.goneonize
name: set target goneonize to ${{ github.event.inputs.version }}
run: uv run task version goneonize --set-version ${{ github.event.inputs.version }}
- if: ${{ !github.event.inputs.goneonize }}
name: set target goneonize to last release
run: uv run task version goneonize --last
- name: Publish
run: |
poetry version ${{ github.event.inputs.version }}
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
uv build && uv publish
run: uv build && uv publish
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ celerybeat.pid

# Environments
.env
.vscode
.venv
env/
venv/
Expand Down
24 changes: 0 additions & 24 deletions goneonize/build.bat

This file was deleted.

13 changes: 0 additions & 13 deletions goneonize/build.sh

This file was deleted.

Loading

0 comments on commit 519ecec

Please sign in to comment.