Skip to content

Commit

Permalink
新增 不同操作语言的编译。
Browse files Browse the repository at this point in the history
  • Loading branch information
yeying-xingchen committed May 8, 2024
1 parent 0cb4fa8 commit 1ac797a
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 4 deletions.
48 changes: 46 additions & 2 deletions .github/workflows/build-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build Canary
on: [push]

jobs:
windows:
Windows:
runs-on: windows-latest

steps:
Expand All @@ -25,4 +25,48 @@ jobs:
with:
name: Windows-Canary
path: D:\a\xinghai-deploy\xinghai-deploy\dist\main.exe
if-no-files-found: error
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
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
requests
json
requests

0 comments on commit 1ac797a

Please sign in to comment.