-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
16b262e
commit 255512b
Showing
3 changed files
with
857 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Build-Inputer | ||
|
||
on: | ||
push: | ||
paths: | ||
- '**.py' | ||
- '**.yml' | ||
pull_request: | ||
paths: | ||
- '**.py' | ||
- '**.yml' | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
|
||
steps: | ||
- name: Set Up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Build For Windows | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
curl -O https://eternallybored.org/misc/wget/1.20.3/64/wget.exe #curl直接Py源码会失败 | ||
./wget.exe 'https://raw.githubusercontent.com/xinxin8816/gfriends/master/Gfriends Inputer.py' | ||
python -m pip install --upgrade pip | ||
pip install alive-progress==1.5.1 | ||
pip install requests | ||
pip install requests[socks] | ||
pip install -U --force-reinstall gevent | ||
pip install baidu-aip==2.2.18.0 | ||
pip install Pillow==7.1.1 | ||
pip install pyinstaller | ||
pyinstaller -F 'Gfriends Inputer.py' | ||
- name: Build For Mac/Linux | ||
if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest' | ||
run: | | ||
wget 'https://raw.githubusercontent.com/xinxin8816/gfriends/master/Gfriends Inputer.py' | ||
python -m pip install --upgrade pip | ||
pip install alive-progress==1.5.1 | ||
pip install requests | ||
pip install requests[socks] | ||
pip install -U --force-reinstall gevent | ||
pip install baidu-aip==2.2.18.0 | ||
pip install Pillow==7.1.1 | ||
pip install pyinstaller | ||
pyinstaller -F 'Gfriends Inputer.py' | ||
- name: Upload Build Artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: Gfriends-Inputer-${{ matrix.os }} | ||
path: dist |
Oops, something went wrong.