Actions: implement windows job
This commit is contained in:
parent
fcad5053cb
commit
ed5d3eba54
57
.github/workflows/build.yml
vendored
57
.github/workflows/build.yml
vendored
@ -2,6 +2,63 @@ name: Build
|
|||||||
on: push
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
windows:
|
||||||
|
name: Build for Windows
|
||||||
|
runs-on: windows-2019
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: '3.8'
|
||||||
|
|
||||||
|
- name: Check Python install
|
||||||
|
run: |
|
||||||
|
which python
|
||||||
|
python --version
|
||||||
|
python -c "import struct; print(struct.calcsize('P') * 8)"
|
||||||
|
which pip
|
||||||
|
pip --version
|
||||||
|
|
||||||
|
- name: Install Python dependencies
|
||||||
|
run: |
|
||||||
|
pip3 install -U setuptools wheel pip
|
||||||
|
pip3 install pywin32 twisted[tls] certifi
|
||||||
|
pip3 install shiboken2 pyside2
|
||||||
|
pip3 install py2exe
|
||||||
|
|
||||||
|
- name: Check Python dependencies
|
||||||
|
run: |
|
||||||
|
python3 -c "from PySide2 import __version__; print(__version__)"
|
||||||
|
python3 -c "from PySide2.QtCore import __version__; print(__version__)"
|
||||||
|
python3 -c "from PySide2.QtCore import QLibraryInfo; print(QLibraryInfo.location(QLibraryInfo.LibrariesPath))"
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
$ver = (findstr __version__ .\syncplay\__init__.py).split("'")[1]
|
||||||
|
echo $ver
|
||||||
|
echo "VER=$ver" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
||||||
|
python buildPy2exe.py
|
||||||
|
type nul > syncplay_v$ver\syncplay.ini
|
||||||
|
|
||||||
|
- name: Prepare for deployment
|
||||||
|
run: dir
|
||||||
|
|
||||||
|
- name: Deploy portable
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: Syncplay_${{ env.VER }}_Portable
|
||||||
|
path: |
|
||||||
|
syncplay_v${{ env.VER }}
|
||||||
|
|
||||||
|
- name: Deploy installer
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: Syncplay-${{ env.VER }}-Setup.exe
|
||||||
|
path: |
|
||||||
|
Syncplay-${{ env.VER }}-Setup.exe
|
||||||
|
|
||||||
# macos:
|
# macos:
|
||||||
# name: Build for macOS
|
# name: Build for macOS
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user