Skip to content

Commit

Permalink
Build x64 exe (and label x86 for 32-bit legacy version)
Browse files Browse the repository at this point in the history
  • Loading branch information
Et0h authored Oct 11, 2023
1 parent 20846ca commit 96e9ea7
Showing 1 changed file with 63 additions and 4 deletions.
67 changes: 63 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Build
on: [push, pull_request]

jobs:
windows:
name: Build for Windows
windows32:
name: Build for Windows (32-bit)
runs-on: windows-2019
steps:
- name: Checkout
Expand Down Expand Up @@ -50,17 +50,76 @@ jobs:
- name: Deploy portable
uses: actions/upload-artifact@v2
with:
name: Syncplay_${{ env.VER }}_Portable
name: Syncplay_${{ env.VER }}_x86_Portable
path: |
syncplay_v${{ env.VER }}
- name: Deploy installer
uses: actions/upload-artifact@v2
with:
name: Syncplay-${{ env.VER }}-Setup.exe
name: Syncplay-${{ env.VER }}-x86-Setup.exe
path: |
Syncplay-${{ env.VER }}-Setup.exe
windows64:
name: Build for Windows (64-bit)
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: x64

- 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 -r requirements.txt
pip3 install -r requirements_gui.txt
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
New-Item -Path syncplay_v$ver -Name "syncplay.ini" -Value " "
- 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 }}-x64-Setup.exe
path: |
Syncplay-${{ env.VER }}-x64-Setup.exe
macos:
name: Build for macOS
runs-on: macos-12
Expand Down

0 comments on commit 96e9ea7

Please sign in to comment.