From 6bada96a072a70282a3c2dbb2e38b92ad055aee4 Mon Sep 17 00:00:00 2001 From: Ellu Date: Tue, 24 Dec 2024 20:37:16 +0800 Subject: [PATCH] update workflows --- .github/workflows/linux.yml | 37 +++++++++++++++++++++ .github/workflows/{main.yml => windows.yml} | 0 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/linux.yml rename .github/workflows/{main.yml => windows.yml} (100%) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..0778c38 --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,37 @@ +# This is a workflow for building the kasa_cli executable on all three major platforms. + +name: Build-Linux + +# 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"] + + # Allows you to run this workflow manually from the Actions tabĀ  + workflow_dispatch: + +jobs: + build-mdp-p906: + runs-on: ubuntu-latest + steps: + - name: Build MDP-P906 + uses: sayyid5416/pyinstaller@v1 + with: + python_ver: "3.11" + spec: "gui_source/mdp.spec" + requirements: "gui_source/requirements.txt" + upload_exe_with_name: "MDP-P906" + compression_level: 9 + + build-mdp-p906-numba: + runs-on: ubuntu-latest + steps: + - name: Build MDP-P906-Numba + uses: sayyid5416/pyinstaller@v1 + with: + python_ver: "3.11" + spec: "gui_source/mdp_numba.spec" + requirements: "gui_source/requirements.txt" + upload_exe_with_name: "MDP-P906-Numba" + compression_level: 9 diff --git a/.github/workflows/main.yml b/.github/workflows/windows.yml similarity index 100% rename from .github/workflows/main.yml rename to .github/workflows/windows.yml