From e1e7dc9b277468a0b9b22972aaffdd4ddce13ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Fri, 20 May 2022 17:14:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E8=87=AA=E5=8A=A8=E6=9E=84?= =?UTF-8?q?=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..8ebea2d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,46 @@ +name: Nuitka tests +# makes little sense, spell-checker: disable +on: + pull_request: + push: + +jobs: + windows: + runs-on: windows-latest + strategy: + matrix: + python_version: + - '3.10' + name: Windows Python ${{ matrix.python_version }} + steps: + - uses: actions/checkout@v2 + + - uses: ilammy/msvc-dev-cmd@v1 + + - name: Use Python ${{ matrix.python_version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python_version }} + + - name: 🧳 Install dependencies + run: | + echo y | pip install --no-python-version-warning --disable-pip-version-check nuitka + echo y | pip install --no-python-version-warning --disable-pip-version-check zstandard + echo y | pip install --no-python-version-warning --disable-pip-version-check pygame + + - name: Show nuitka version + run: | + Get-ChildItem env: + python -m nuitka --version + + - name: Build pypvz package + run: | + pip install --no-python-version-warning --disable-pip-version-check pygame + python -m nuitka --standalone --onefile --show-progress --show-memory --output-dir=out --windows-icon-from-ico=pypvz.ico --include-data-dir=resources=resources --include-data-file=C:\Users\runneradmin\AppData\Local\Programs\Python\Python310\Lib\site-packages\pygame\libogg-0.dll=libogg-0.dll --include-data-file=C:\Users\runneradmin\AppData\Local\Programs\Python\Python310\Lib\site-packages\pygame\libopus-0.dll=libopus-0.dll --include-data-file=C:\Users\runneradmin\AppData\Local\Programs\Python\Python310\Lib\site-packages\pygame\libopusfile-0.dll=libopusfile-0.dll --include-data-file=C:\Users\runneradmin\AppData\Local\Programs\Python\Python310\Lib\site-packages\pygame\libvorbisfile-3.dll=libvorbisfile-3.dll --include-data-file=C:\Users\runneradmin\AppData\Local\Programs\Python\Python310\Lib\site-packages\pygame\libvorbis-0.dll=libvorbis-0.dll --windows-disable-console main.py + + - uses: ncipollo/release-action@v1 + with: + allowUpdates: true + tag: all + artifacts: ./out/*.exe + token: ${{ secrets.GITHUB_TOKEN }}