From 318dfb9f0ad23b45d3204e48b22f3226dc800a51 Mon Sep 17 00:00:00 2001 From: Lukas Erlacher Date: Fri, 11 Nov 2022 22:07:40 +1100 Subject: [PATCH 1/4] add build --- .github/workflows/build-parser-win.yaml | 56 +++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/build-parser-win.yaml diff --git a/.github/workflows/build-parser-win.yaml b/.github/workflows/build-parser-win.yaml new file mode 100644 index 0000000..905c2ea --- /dev/null +++ b/.github/workflows/build-parser-win.yaml @@ -0,0 +1,56 @@ + +name: Executable Build + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main", "master" ] + pull_request: + branches: [ "main", "master" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + + build: + + strategy: + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] + + runs-on: ${{ matrix.os }} + + steps: + + # Check-out repository + - uses: actions/checkout@v3 + + # Setup Python + - uses: actions/setup-python@v4 + with: + python-version: '3.10' # Version range or exact version of a Python version to use, using SemVer's version range syntax + architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified + cache: 'pip' + - run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + # Build python script into a stand-alone exe + - uses: Nuitka/Nuitka-Action@main + with: + script-name: main.py + onefile: true + disable-console: true + + # Uploads artifact + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + name: ${{ runner.os }} Build + path: | + build/*.exe + build/*.bin + build/*.app/**/* + From 61951453e612074aa4a6584c164e472d7d61f55e Mon Sep 17 00:00:00 2001 From: Lukas Erlacher Date: Fri, 11 Nov 2022 22:08:46 +1100 Subject: [PATCH 2/4] no requirements --- .github/workflows/build-parser-win.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build-parser-win.yaml b/.github/workflows/build-parser-win.yaml index 905c2ea..e4cb78c 100644 --- a/.github/workflows/build-parser-win.yaml +++ b/.github/workflows/build-parser-win.yaml @@ -35,7 +35,6 @@ jobs: cache: 'pip' - run: | python -m pip install --upgrade pip - pip install -r requirements.txt # Build python script into a stand-alone exe - uses: Nuitka/Nuitka-Action@main From c62c5bebf004f61e8dd2718a2cb2f6bc5720ae29 Mon Sep 17 00:00:00 2001 From: Lukas Erlacher Date: Fri, 11 Nov 2022 22:10:58 +1100 Subject: [PATCH 3/4] requuirements --- requirements.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..e69de29 From 79df90aa583a1267233b8fc43c284a2f5ffc16c0 Mon Sep 17 00:00:00 2001 From: Lukas Erlacher Date: Fri, 11 Nov 2022 22:11:59 +1100 Subject: [PATCH 4/4] fix file ref --- .github/workflows/build-parser-win.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-parser-win.yaml b/.github/workflows/build-parser-win.yaml index e4cb78c..8beef6d 100644 --- a/.github/workflows/build-parser-win.yaml +++ b/.github/workflows/build-parser-win.yaml @@ -39,7 +39,7 @@ jobs: # Build python script into a stand-alone exe - uses: Nuitka/Nuitka-Action@main with: - script-name: main.py + script-name: parser.py onefile: true disable-console: true