Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase version and try new release system #65

Merged
merged 3 commits into from
Jun 2, 2024
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
97 changes: 97 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: Build Tests

on:
workflow_dispatch:
branches: [master]
pull-request:
branches: [release]

permissions:
id-token: write
contents: read

jobs:
linux-build:
name: Linux Build
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: PDM
run: python3.12 -m pip install pdm

- name: Install libkrb5-dev
run: sudo apt-get install -y libkrb5-dev

- name: Installs dev deps and package
run : |
pdm export -f requirements --without-hashes --dev > requirements.txt
python3.12 -m pip install -r requirements.txt

- name: Build
run: |
python3.12 -m nuitka --standalone --onefile --output-filename=ldeep.bin ldeep/__main__.py
mv ldeep.bin ldeep_linux-amd64

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: linux
path: ldeep_linux-amd64

windows-build:
name: Windows Build
runs-on: "windows-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: PDM
run: python3 -m pip install pdm

- name: Installs dev deps and package
run: |
pdm export -f requirements --without-hashes --dev > requirements.txt
python3 -m pip install -r requirements.txt

- name: Build
run: |
python3 -m nuitka --standalone --assume-yes-for-downloads --output-filename=ldeep.exe --onefile ldeep/__main__.py
mv ldeep.exe ldeep_windows-amd64.exe
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: windows
path: ldeep_windows-amd64.exe

macos-build:
name: MacOS ARM64 Build
runs-on: "macos-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: PDM
run: python3.12 -m pip install pdm

- name: Installs dev deps and package
run: |
pdm export -f requirements --without-hashes --dev > requirements.txt
python3.12 -m pip install -r requirements.txt

- name: Build
run: |
python3.12 -m nuitka --standalone --onefile --output-filename=ldeep.bin ldeep/__main__.py
mv ldeep.bin ldeep_macos-amd64

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: macos
path: ldeep_macos-amd64
90 changes: 2 additions & 88 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,97 +1,11 @@
name: Release and PyPi
on:
pull_request:
push:
branches:
- 'release'

jobs:
linux-build:
name: Linux Build
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: PDM
run: python3.12 -m pip install pdm

- name: Install libkrb5-dev
run: sudo apt-get install -y libkrb5-dev

- name: Installs dev deps and package
run : |
pdm export -f requirements --without-hashes --dev > requirements.txt
python3.12 -m pip install -r requirements.txt

- name: Build
run: |
python3.12 -m nuitka --standalone --onefile --output-filename=ldeep.bin ldeep/__main__.py
mv ldeep.bin ldeep_linux-amd64

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: linux
path: ldeep_linux-amd64

windows-build:
name: Windows Build
runs-on: "windows-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: PDM
run: python3 -m pip install pdm

- name: Installs dev deps and package
run: |
pdm export -f requirements --without-hashes --dev > requirements.txt
python3 -m pip install -r requirements.txt

- name: Build
run: |
python3 -m nuitka --standalone --assume-yes-for-downloads --output-filename=ldeep.exe --onefile ldeep/__main__.py
mv ldeep.exe ldeep_windows-amd64.exe
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: windows
path: ldeep_windows-amd64.exe

macos-build:
name: MacOS ARM64 Build
runs-on: "macos-latest"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: PDM
run: python3.12 -m pip install pdm

- name: Installs dev deps and package
run: |
pdm export -f requirements --without-hashes --dev > requirements.txt
python3.12 -m pip install -r requirements.txt

- name: Build
run: |
python3.12 -m nuitka --standalone --onefile --output-filename=ldeep.bin ldeep/__main__.py
mv ldeep.bin ldeep_macos-amd64

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: macos
path: ldeep_macos-amd64
release:
needs: [linux-build, windows-build, macos-build]
name: "Tagged release"
build:
runs-on: ubuntu-latest
permissions:
id-token: write
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Project Status
==============

.. image:: https://github.com/franc-pentest/ldeep/actions/workflows/release.yml/badge.svg
:target: https://github.com/franc-pentest/ldeep/actions/workflows/release.yml
.. image:: https://github.com/franc-pentest/ldeep/actions/workflows/build.yml/badge.svg
:target: https://github.com/franc-pentest/ldeep/actions/workflows/build.yml
:alt: Build status
.. image:: https://badgen.net/pypi/v/ldeep
:target: https://pypi.org/project/ldeep/
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.55
1.0.56
Loading