File size: 1,178 Bytes
2f63a42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3a1196e
2f63a42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Nuitka Packaging

on:
  push:
    branches: [ "master" ]
  pull_request:
    branches: [ "master" ]

permissions:
  contents: write

jobs:
  build:

    runs-on: windows-latest

    steps:
    - uses: actions/checkout@v4
    - name: Set up Python 3.11
      uses: actions/setup-python@v5
      with:
        python-version: "3.11"
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install -r ./requirements.txt
    - uses: Nuitka/Nuitka-Action@main
      with:
        nuitka-version: main
        script-name: qt/app.py
        standalone: true
        onefile: false
        enable-plugins: pyside6
        disable-console: true
        windows-icon-from-ico: qt/assets/icon.ico
        nofollow-import-to: http,email
        include-data-dir: qt/assets=qt/assets/
    - name: Upload Artifact
      uses: actions/upload-artifact@v4
      with:
        name: Formulator
        path: build/app.dist