Actions: disable other jobs
This commit is contained in:
parent
67271c4386
commit
fcad5053cb
213
.github/workflows/build.yml
vendored
213
.github/workflows/build.yml
vendored
@ -2,127 +2,128 @@ name: Build
|
|||||||
on: push
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
macos:
|
|
||||||
name: Build for macOS
|
|
||||||
runs-on: macos-10.15
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Setup Python
|
# macos:
|
||||||
uses: actions/setup-python@v2
|
# name: Build for macOS
|
||||||
with:
|
# runs-on: macos-10.15
|
||||||
python-version: '3.7'
|
# steps:
|
||||||
|
# - name: Checkout
|
||||||
|
# uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Check Python install
|
# - name: Setup Python
|
||||||
run: |
|
# uses: actions/setup-python@v2
|
||||||
which python3
|
# with:
|
||||||
python3 --version
|
# python-version: '3.7'
|
||||||
which pip3
|
|
||||||
pip3 --version
|
|
||||||
|
|
||||||
- name: Install Python dependencies
|
# - name: Check Python install
|
||||||
run: |
|
# run: |
|
||||||
pip3 install -U setuptools wheel pip
|
# which python3
|
||||||
pip3 install twisted[tls] appnope requests certifi
|
# python3 --version
|
||||||
pip3 install shiboken2==5.13.1 pyside2==5.13.1
|
# which pip3
|
||||||
pip3 install py2app
|
# pip3 --version
|
||||||
|
|
||||||
- name: Check Python dependencies
|
# - name: Install Python dependencies
|
||||||
run: |
|
# run: |
|
||||||
python3 -c "from PySide2 import __version__; print(__version__)"
|
# pip3 install -U setuptools wheel pip
|
||||||
python3 -c "from PySide2.QtCore import __version__; print(__version__)"
|
# pip3 install twisted[tls] appnope requests certifi
|
||||||
python3 -c "from PySide2.QtCore import QLibraryInfo; print(QLibraryInfo.location(QLibraryInfo.LibrariesPath))"
|
# pip3 install shiboken2==5.13.1 pyside2==5.13.1
|
||||||
python3 -c "import ssl; print(ssl)"
|
# pip3 install py2app
|
||||||
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
|
# - name: Check Python dependencies
|
||||||
run: |
|
# run: |
|
||||||
python3 ci/pyside2_linker.py
|
# python3 -c "from PySide2 import __version__; print(__version__)"
|
||||||
export LIBPYTHON_FOLDER="$(python3 -c 'from distutils.sysconfig import get_config_var; print(get_config_var("LIBDIR"))')"
|
# python3 -c "from PySide2.QtCore import __version__; print(__version__)"
|
||||||
ln -s $LIBPYTHON_FOLDER/libpython3.7m.dylib $LIBPYTHON_FOLDER/libpython3.7.dylib
|
# python3 -c "from PySide2.QtCore import QLibraryInfo; print(QLibraryInfo.location(QLibraryInfo.LibrariesPath))"
|
||||||
export DYLD_FRAMEWORK_PATH="$(python3 -c 'from PySide2.QtCore import QLibraryInfo; print(QLibraryInfo.location(QLibraryInfo.LibrariesPath))')"
|
# python3 -c "import ssl; print(ssl)"
|
||||||
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 -c "from py2app.recipes import pyside2"
|
||||||
python3 buildPy2app.py py2app
|
# echo $DYLD_LIBRARY_PATH
|
||||||
|
# echo $DYLD_FRAMEWORK_PATH
|
||||||
|
# python3 -c 'from distutils.sysconfig import get_config_var; print(get_config_var("LDLIBRARY"))'
|
||||||
|
|
||||||
- name: Prepare for deployment
|
# - name: Build
|
||||||
run: |
|
# run: |
|
||||||
ls -al
|
# python3 ci/pyside2_linker.py
|
||||||
export VER="$(cat syncplay/__init__.py | awk '/version/ {gsub("\047", "", $3); print $NF}')"
|
# export LIBPYTHON_FOLDER="$(python3 -c 'from distutils.sysconfig import get_config_var; print(get_config_var("LIBDIR"))')"
|
||||||
echo "VER=$VER" >> $GITHUB_ENV
|
# ln -s $LIBPYTHON_FOLDER/libpython3.7m.dylib $LIBPYTHON_FOLDER/libpython3.7.dylib
|
||||||
mkdir dist_actions
|
# export DYLD_FRAMEWORK_PATH="$(python3 -c 'from PySide2.QtCore import QLibraryInfo; print(QLibraryInfo.location(QLibraryInfo.LibrariesPath))')"
|
||||||
ci/macos-deploy.sh
|
# 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__))')"
|
||||||
ls -al dist_actions
|
# python3 buildPy2app.py py2app
|
||||||
|
|
||||||
- name: Deploy
|
# - name: Prepare for deployment
|
||||||
uses: actions/upload-artifact@v2
|
# run: |
|
||||||
with:
|
# ls -al
|
||||||
name: Syncplay_${{ env.VER }}.dmg
|
# export VER="$(cat syncplay/__init__.py | awk '/version/ {gsub("\047", "", $3); print $NF}')"
|
||||||
path: |
|
# echo "VER=$VER" >> $GITHUB_ENV
|
||||||
dist_actions/Syncplay_${{ env.VER }}.dmg
|
# mkdir dist_actions
|
||||||
|
# ci/macos-deploy.sh
|
||||||
|
# ls -al dist_actions
|
||||||
|
|
||||||
appimage:
|
# - name: Deploy
|
||||||
name: Build AppImage
|
# uses: actions/upload-artifact@v2
|
||||||
runs-on: ubuntu-latest
|
# with:
|
||||||
steps:
|
# name: Syncplay_${{ env.VER }}.dmg
|
||||||
- name: Checkout
|
# path: |
|
||||||
uses: actions/checkout@v2
|
# dist_actions/Syncplay_${{ env.VER }}.dmg
|
||||||
|
|
||||||
- name: Install dependencies
|
# appimage:
|
||||||
run: |
|
# name: Build AppImage
|
||||||
sudo apt-get install libxkbcommon-x11-0
|
# runs-on: ubuntu-latest
|
||||||
|
# steps:
|
||||||
|
# - name: Checkout
|
||||||
|
# uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build
|
# - name: Install dependencies
|
||||||
run: ci/appimage-script.sh
|
# run: |
|
||||||
|
# sudo apt-get install libxkbcommon-x11-0
|
||||||
|
|
||||||
- name: Prepare for deployment
|
# - name: Build
|
||||||
run: |
|
# run: ci/appimage-script.sh
|
||||||
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
|
# - name: Prepare for deployment
|
||||||
uses: actions/upload-artifact@v2
|
# run: |
|
||||||
with:
|
# ls -al
|
||||||
name: Syncplay-${{ env.VER }}-x86_64.AppImage
|
# export VER="$(cat syncplay/__init__.py | awk '/version/ {gsub("\047", "", $3); print $NF}')"
|
||||||
path: |
|
# echo "VER=$VER" >> $GITHUB_ENV
|
||||||
dist_actions/Syncplay-${{ env.VER }}-x86_64.AppImage
|
# mkdir dist_actions
|
||||||
|
# ci/appimage-deploy.sh
|
||||||
|
# ls -al dist_actions
|
||||||
|
|
||||||
deb:
|
# - name: Deploy
|
||||||
name: Build Debian package
|
# uses: actions/upload-artifact@v2
|
||||||
runs-on: ubuntu-20.04
|
# with:
|
||||||
steps:
|
# name: Syncplay-${{ env.VER }}-x86_64.AppImage
|
||||||
- name: Checkout
|
# path: |
|
||||||
uses: actions/checkout@v2
|
# dist_actions/Syncplay-${{ env.VER }}-x86_64.AppImage
|
||||||
|
|
||||||
- name: Build
|
# deb:
|
||||||
run: ci/deb-script.sh
|
# name: Build Debian package
|
||||||
|
# runs-on: ubuntu-20.04
|
||||||
|
# steps:
|
||||||
|
# - name: Checkout
|
||||||
|
# uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build server
|
# - name: Build
|
||||||
run: ci/deb-server-script.sh
|
# run: ci/deb-script.sh
|
||||||
|
|
||||||
- name: Test
|
# - name: Build server
|
||||||
run: ci/deb-installation-test.sh
|
# run: ci/deb-server-script.sh
|
||||||
|
|
||||||
- name: Prepare for deployment
|
# - name: Test
|
||||||
run: |
|
# run: ci/deb-installation-test.sh
|
||||||
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
|
# - name: Prepare for deployment
|
||||||
uses: actions/upload-artifact@v2
|
# run: |
|
||||||
with:
|
# ls -al
|
||||||
name: syncplay.deb
|
# export VER="$(cat syncplay/__init__.py | awk '/version/ {gsub("\047", "", $3); print $NF}')"
|
||||||
path: |
|
# echo "VER=$VER" >> $GITHUB_ENV
|
||||||
dist_actions/syncplay*.deb
|
# 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
|
||||||
|
# uses: actions/upload-artifact@v2
|
||||||
|
# with:
|
||||||
|
# name: syncplay.deb
|
||||||
|
# path: |
|
||||||
|
# dist_actions/syncplay*.deb
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user