From a42fc55dc8debacd4c1dd5190be81c5c66831f83 Mon Sep 17 00:00:00 2001 From: Srevin Saju Date: Sat, 9 May 2020 15:03:53 +0300 Subject: [PATCH] Remove unwanted builds --- .github/workflows/appimage.yml | 76 -------------------------------- .github/workflows/continuous.yml | 6 ++- .github/workflows/winexe.yml | 42 ------------------ 3 files changed, 4 insertions(+), 120 deletions(-) delete mode 100644 .github/workflows/appimage.yml delete mode 100644 .github/workflows/winexe.yml diff --git a/.github/workflows/appimage.yml b/.github/workflows/appimage.yml deleted file mode 100644 index a7b74b23..00000000 --- a/.github/workflows/appimage.yml +++ /dev/null @@ -1,76 +0,0 @@ -# Thanks @niess (https://github.com/niess) for python-appimage, creating appimages for Python is easy as pie!! - -name: AppImage -on: - push: - paths: - - 'guiscrcpy/**' - - '.github/workflows/appimage.yml' - pull_request: - paths: - - 'guiscrcpy/**' - - '.github/workflows/appimage.yml' - -jobs: - Test: - runs-on: ubuntu-18.04 - strategy: - matrix: - version: ['3.8'] - - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.version }} - - - name: Test AppImage - run: | - python -m pip install python-appimage - echo $(realpath .) > appimage/requirements.txt - python -m python_appimage build app appimage \ - --linux-tag=manylinux1_x86_64 - - - name: Extract AppImage - run: | - ./guiscrcpy-x86_64.AppImage --appimage-extract - mv squashfs-root AppDir - wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage - chmod +x ./appimagetool-x86_64.AppImage - - - name: Download adb - run: | - wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip - unzip platform-tools-latest-linux.zip -d adb - cp adb/platform-tools/adb AppDir/usr/bin/. - - - name: Download scrcpy - run: | - wget https://dl.bintray.com/srevinsaju/guiscrcpy/scrcpy/scrcpy113.tar.gz - tar -xf scrcpy113.tar.gz - mkdir -p AppDir/usr/bin - cp scrcpy113/scrcpy AppDir/usr/bin/. - chmod +x AppDir/usr/bin/scrcpy - mkdir -p AppDir/usr/share/scrcpy - cp scrcpy113/scrcpy-server AppDir/usr/share/scrcpy/. - - - name: Patch PyQt5 pass travis - run: | - wget https://dl.bintray.com/srevinsaju/guiscrcpy/scrcpy/libxkbcommon.so.0 - wget https://dl.bintray.com/srevinsaju/guiscrcpy/scrcpy/libxkbcommon-x11.so.0.0.0 - cp libxkbcommon.so.0 AppDir/opt/python3.8/lib/python3.8/site-packages/PyQt5/Qt/lib/. - cp libxkbcommon-x11.so.0.0.0 AppDir/opt/python3.8/lib/python3.8/site-packages/PyQt5/Qt/lib/libxkbcommon-x11.so.0 - - - name: Download scrcpy binary deps - run: | - cp scrcpy113/lib/* AppDir/usr/lib/. - - name: Reimage AppImage - run: | - rm ./guiscrcpy-x86_64.AppImage - ./appimagetool-x86_64.AppImage --comp gzip AppDir -n - - name: Upload artifact - uses: actions/upload-artifact@v1.0.0 - with: - name: guiscrcpy-x86_64.AppImage - path: guiscrcpy-x86_64.AppImage - diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index 9a31f46c..fdb21add 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -4,11 +4,13 @@ on: push: branches: - 'master' - - 'beta-**' paths: - 'guiscrcpy/**' - '.github/workflows/continuous.yml' - + pull-requests: + paths: + - 'guiscrcpy/**' + - '.github/workflows/continuous.yml' jobs: Wheel: diff --git a/.github/workflows/winexe.yml b/.github/workflows/winexe.yml deleted file mode 100644 index 68421e6a..00000000 --- a/.github/workflows/winexe.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Windows Executable - -on: - push: - paths: - - 'guiscrcpy/**' - - '.github/workflows/winexe.yml' - pull_request: - paths: - - 'guiscrcpy/**' - - '.github/workflows/winexe.yml' - - - -jobs: - build: - name: Upload artifact - runs-on: windows-latest - steps: - - name: Checkout - uses: actions/checkout@v1 - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip3 install PyInstaller - pip3 install -r requirements.txt - pip3 install . - echo Done - - - name: Create .exe - run: | - python -m PyInstaller guiscrcpy-windows.spec - - name: Upload artifact - uses: actions/upload-artifact@v1.0.0 - with: - # Artifact name - name: guiscrcpy-beta.exe - # Directory containing files to upload - path: dist/guiscrcpy.exe - -