Skip to content

Build Distribution

Build Distribution #7

Workflow file for this run

name: Build Distribution
on: workflow_dispatch
permissions: write-all
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.11.8]
architecture: [x64]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
cache: 'pip'
cache-dependency-path: |
requirements.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install nuitka
- name: Build with Nuitka
run: |
python -m nuitka --standalone --disable-ccache --clang --msvc=latest --output-dir=build --lto=yes --product-version=0.1.0 --company-name=MCSLTeam --file-version=1.0.0 --file-description="MCSL-Sync-Nodeside" --copyright="Copyright MCSLTeam. All rights reserved." --include-package=src,sqlite3,aiohttp,orjson,pandas,lxml,uvicorn --assume-yes-for-download --follow-import-to=loguru,quart --main=MCSLSync.py --remove-output
- name: Upload artifact
uses: actions/[email protected]
with:
name: distribution
path: build/*/**/