From 5402baf7c3a3cc1d604e75248cce42ed6bde117a Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Sat, 19 Aug 2023 22:25:28 +0800 Subject: [PATCH] Update wheels.yml workflow Signed-off-by: Loren Eteval --- .github/workflows/wheels.yml | 42 ++++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 0ea2a2ab..1442628b 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -4,7 +4,7 @@ on: [push, pull_request] jobs: build: - name: ${{ matrix.os }} Python ${{ matrix.python-version }} + name: Build on ${{ matrix.os }} Python ${{ matrix.python-version }} runs-on: ${{ matrix.os }} strategy: matrix: @@ -24,7 +24,7 @@ jobs: python-version: ${{ matrix.python-version }} - run: python --version - - name: Update pip + - name: Upgrade pip run: python -m pip install --upgrade pip - name: Install wheel @@ -41,3 +41,41 @@ jobs: - name: Install from source run: python setup.py install + compile: + name: Compile on ${{ matrix.os }} Python ${{ matrix.python-version }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04, ubuntu-22.04, windows-2019, windows-2022] + python-version: ["3.8", "3.9", "3.10", "3.11"] + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-go@v4 + with: + go-version: "1.20.0" + - run: go version + + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - run: python --version + + - name: Upgrade pip + run: python -m pip install --upgrade pip + + - name: Install wheel + run: python -m pip install wheel + + - name: Install nuitka + run: python -m pip install nuitka + + - name: Install requirements.txt + run: python -m pip install -r requirements.txt + + - name: Compile to console binaries + run: python -m nuitka --standalone --plugin-enable=pyside6 --assume-yes-for-downloads --include-package-data=Furious Furious --output-dir=consoleBinaries + + - name: Compile to gui binaries + run: python -m nuitka --standalone --plugin-enable=pyside6 --disable-console --assume-yes-for-downloads --include-package-data=Furious Furious --output-dir=guiBinaries