* Create pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Update pythonpackage.yml * Do not show playback speed change notifications in OSD * Upbuild and remove debug message * Strip quotation marks from per-player arguments (#226) * Delete unmaintained changelog. Removing old and unmaintained changelog file. * Add more MPC-HC paths (#398) * Migrate from AppVeyor to GitHub Actions (#399) * Disable AppVeyor * Actions: disable other jobs * Actions: implement windows job * Use requirements * Typo in version parser * Replace type nul for PowerShell * Change Python version to 3.7 * buildPy2exe: exclude tcl and tkinter * buildPy2exe: rename zip archive to include extension * Actions for Windows: build on Python 3.8 * Re-enable build flow for other platforms * Remove AppVeyor configuration file * Add manpages courtesy of Bruno Kleinert #387 * Install the manpages. * Separate debian package artifacts Make it so that server and full packages are separate artifacts in CI rather than single zip containing both. * Fix server deb deployment name in CI workflow * Fix package filename for debs * Update mpv json ipc vendor code Update to version 1.1.13 to hopefully address #322 fully. * Update setup.py for vendor code of mpv jsonipc * Build AppImage on Ubuntu 18.04 Temporary workaround for AppImage built on Ubuntu 20.04 crashing with segmentation fault. #401 * Update python_mpv_jsonipc to 1.1.13 keeping our changes * Remove the AppVeyor badge as we stopped using it. * Improve playlist advancement for VLC and mpv (#334) (#397) * Advance playlist on end of file in mpv and VLC * Update duration for streams to fix playlist advancement (#334) * Add notice for Python in third party collection file (#404) * Add notice for Python in third party collection file * Convert third party notices file to plain text * Adapt codebase to third party notices format change * Mark as beta 1 (release 97) * Mark as 1.6.8 final (build 98) * Update pt_BR translation, fix typo (#422) * Bundle libgthread-2.0.so.0 into AppImage * add libxcb manually * Add missing libxcb-util to build environment * Enable GitHub Actions on pull requests * Bundle libxcb1 into AppImage to fix #380 * Send 32-bit/64-bit context when updating * Upver to 1.6.9 release 99 * Remove references to IRC (#430) * Add reference to GitHub discussions * Update issue templates * Revert "Merge branch 'master' into master" This reverts commit 173007e9b17c3cf7d658e12f1220bb1a3af743e6, reversing changes made to 6105da870a4560c47ee54d7de21f2e1ccec1bcef. Co-authored-by: Daniel Wróbel <wrobel.dan@gmail.com> Co-authored-by: Alberto Sottile <alby128@gmail.com> Co-authored-by: Daniel Wróbel <1662391+daniel-123@users.noreply.github.com> Co-authored-by: Atílio Antônio <atiliodadalto@hotmail.com> Co-authored-by: Teoh Han Hui <teohhanhui@gmail.com> Co-authored-by: Alberto Sottile <asottile@gmail.com> Co-authored-by: Assistant <assistant.moetron@gmail.com>
198 lines
6.1 KiB
YAML
198 lines
6.1 KiB
YAML
name: Build
|
|
on: [push, pull_request]
|
|
|
|
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 -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 $null
|
|
|
|
- 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:
|
|
name: Build for macOS
|
|
runs-on: macos-10.15
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.7'
|
|
|
|
- name: Check Python install
|
|
run: |
|
|
which python3
|
|
python3 --version
|
|
which pip3
|
|
pip3 --version
|
|
|
|
- name: Install Python dependencies
|
|
run: |
|
|
pip3 install -U setuptools wheel pip
|
|
pip3 install twisted[tls] appnope requests certifi
|
|
pip3 install shiboken2==5.13.1 pyside2==5.13.1
|
|
pip3 install py2app
|
|
|
|
- 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))"
|
|
python3 -c "import ssl; print(ssl)"
|
|
python3 -c "from py2app.recipes import pyside2"
|
|
echo $DYLD_LIBRARY_PATH
|
|
echo $DYLD_FRAMEWORK_PATH
|
|
python3 -c 'from distutils.sysconfig import get_config_var; print(get_config_var("LDLIBRARY"))'
|
|
|
|
- name: Build
|
|
run: |
|
|
python3 ci/pyside2_linker.py
|
|
export LIBPYTHON_FOLDER="$(python3 -c 'from distutils.sysconfig import get_config_var; print(get_config_var("LIBDIR"))')"
|
|
ln -s $LIBPYTHON_FOLDER/libpython3.7m.dylib $LIBPYTHON_FOLDER/libpython3.7.dylib
|
|
export DYLD_FRAMEWORK_PATH="$(python3 -c 'from PySide2.QtCore import QLibraryInfo; print(QLibraryInfo.location(QLibraryInfo.LibrariesPath))')"
|
|
export DYLD_LIBRARY_PATH="$(python3 -c 'import os.path, PySide2; print(os.path.dirname(PySide2.__file__))'):$(python3 -c 'import os.path, shiboken2; print(os.path.dirname(shiboken2.__file__))')"
|
|
python3 buildPy2app.py py2app
|
|
|
|
- name: Prepare for deployment
|
|
run: |
|
|
ls -al
|
|
export VER="$(cat syncplay/__init__.py | awk '/version/ {gsub("\047", "", $3); print $NF}')"
|
|
echo "VER=$VER" >> $GITHUB_ENV
|
|
mkdir dist_actions
|
|
ci/macos-deploy.sh
|
|
ls -al dist_actions
|
|
|
|
- name: Deploy
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: Syncplay_${{ env.VER }}.dmg
|
|
path: |
|
|
dist_actions/Syncplay_${{ env.VER }}.dmg
|
|
|
|
appimage:
|
|
name: Build AppImage
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get install --no-install-recommends \
|
|
libglib2.0-0 \
|
|
libxkbcommon-x11-0 \
|
|
libxcb1 \
|
|
;
|
|
|
|
- name: Build
|
|
run: ci/appimage-script.sh
|
|
|
|
- name: Prepare for deployment
|
|
run: |
|
|
ls -al
|
|
export VER="$(cat syncplay/__init__.py | awk '/version/ {gsub("\047", "", $3); print $NF}')"
|
|
echo "VER=$VER" >> $GITHUB_ENV
|
|
mkdir dist_actions
|
|
ci/appimage-deploy.sh
|
|
ls -al dist_actions
|
|
|
|
- name: Deploy
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: Syncplay-${{ env.VER }}-x86_64.AppImage
|
|
path: |
|
|
dist_actions/Syncplay-${{ env.VER }}-x86_64.AppImage
|
|
|
|
deb:
|
|
name: Build Debian package
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
run: ci/deb-script.sh
|
|
|
|
- name: Build server
|
|
run: ci/deb-server-script.sh
|
|
|
|
- name: Test
|
|
run: ci/deb-installation-test.sh
|
|
|
|
- name: Prepare for deployment
|
|
run: |
|
|
ls -al
|
|
export VER="$(cat syncplay/__init__.py | awk '/version/ {gsub("\047", "", $3); print $NF}')"
|
|
echo "VER=$VER" >> $GITHUB_ENV
|
|
mkdir dist_actions
|
|
mv /tmp/syncplay.deb dist_actions/syncplay_${VER}.deb
|
|
mv /tmp/syncplay-server.deb dist_actions/syncplay-server_${VER}.deb
|
|
ls -al dist_actions
|
|
|
|
- name: Deploy full deb
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: syncplay.deb
|
|
path: |
|
|
dist_actions/syncplay_*.deb
|
|
|
|
- name: Deploy server deb
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: syncplay-server.deb
|
|
path: |
|
|
dist_actions/syncplay-server_*.deb
|