From 36510741d41f8986075da6a74ae8ad87d7f84e3f Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Wed, 28 Jun 2023 20:01:50 +0800 Subject: Create pack.yml --- .github/workflows/pack.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/pack.yml (limited to '.github/workflows') diff --git a/.github/workflows/pack.yml b/.github/workflows/pack.yml new file mode 100644 index 00000000..26ee2f45 --- /dev/null +++ b/.github/workflows/pack.yml @@ -0,0 +1,34 @@ +name: Build Windows Executable + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.9 + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install dependencies + run: pip install pyinstaller + + - name: Build executable + run: pyinstaller -F ./HydroRollCore/__init__.py + + - name: Upload artifact + uses: actions/upload-artifact@v2 + with: + name: executable + path: dist/HydroRollCore.exe -- cgit v1.2.3-70-g09d2