From 1ac797abb9f376cbdeedfddea555a83cfcc8854c Mon Sep 17 00:00:00 2001 From: Yeying-Xingchen Date: Wed, 8 May 2024 18:51:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E4=B8=8D=E5=90=8C?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E8=AF=AD=E8=A8=80=E7=9A=84=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-canary.yml | 48 ++++++++++++++++++++++++++++-- requirements.txt | 3 +- 2 files changed, 47 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-canary.yml b/.github/workflows/build-canary.yml index c81695a..e1e6016 100644 --- a/.github/workflows/build-canary.yml +++ b/.github/workflows/build-canary.yml @@ -3,7 +3,7 @@ name: Build Canary on: [push] jobs: - windows: + Windows: runs-on: windows-latest steps: @@ -25,4 +25,48 @@ jobs: with: name: Windows-Canary path: D:\a\xinghai-deploy\xinghai-deploy\dist\main.exe - if-no-files-found: error \ No newline at end of file + if-no-files-found: error + Linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Build code + run: | + pip install pyinstaller + pyinstaller -F main.py -p core.py --hidden-import core + - name: Publish package + uses: actions/upload-artifact@v4 + with: + name: Linux-Canary + path: D:\a\xinghai-deploy\xinghai-deploy\dist\main.exe + if-no-files-found: error + MacOS: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Build code + run: | + pip install pyinstaller + pyinstaller -F main.py -p core.py --hidden-import core + - name: Publish package + uses: actions/upload-artifact@v4 + with: + name: MacOS-Canary + path: D:\a\xinghai-deploy\xinghai-deploy\dist\main.exe + if-no-files-found: error diff --git a/requirements.txt b/requirements.txt index edf6a7d..663bd1f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1 @@ -requests -json \ No newline at end of file +requests \ No newline at end of file