Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github action to create apk package #10

Open
Turiok opened this issue Jul 31, 2024 · 4 comments
Open

github action to create apk package #10

Turiok opened this issue Jul 31, 2024 · 4 comments

Comments

@Turiok
Copy link

Turiok commented Jul 31, 2024

Hi @cgutman and thank you for your work here.

I think, it'll be good to create the APK with github action.
An official to playstore if it's possible.
Otherwise maybe a not signed APK?

@CeruleanSky
Copy link

CeruleanSky commented Aug 6, 2024

I forked it and added to .github/workflows a build.yml:

name: Build and deploy

on:
  push:
    branches:
      - master

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Set up JDK 17
        uses: actions/setup-java@v3
        with:
          java-version: '17'
          distribution: 'temurin'
          cache: gradle

      #- name: Setup Android SDK
      #  uses: android-actions/setup-android@v3

      - name: Build SampleApplication
        run: |
            chmod +x ./gradlew
            ./gradlew --no-daemon build connectedCheck
      - name: Archive production artifacts
        uses: actions/upload-artifact@v4
        with:
          name: my-artifact
          path: |
            ./app/build/outputs/apk/debug/app-debug.apk
          overwrite: true

Which worked for me. Might want to branch it change master to your branches name in the above.

@skellycode
Copy link

Thanks @CeruleanSky - I have done the same using your build.yml above! Legend 🤩

May I ask what the usbip-4.4.x repository is on your GitHub? Is this a client version of the USB/IP protocol to connect to the Android server? Does it run on windows, and if yes is it possible to get a build script for that one too? 🚀 ❤️

@CeruleanSky
Copy link

@ShellyCode

A bit off topic, but that git is for the usbip server tools from the linux kernel's 4.4.x source tree that is used in some Synology products. I thought it might be easier to get working than the android server, since whenever I connect to USBIPServerForAndroid on my Android OS 9 tv, it show up but when I hit attach, usbip-win2 just inserts the devices for a moment then ejects them. VirtualHere does work though.

Unfortunately Synology did some stuff with their included usbip modules that broke them in strange ways, maybe even to promote the Virtual Here product which Synology sells for their NAS as well , but of which I am trying to avoid since it is not a long term solution.

So I am not having much luck with either attempt.

@skellycode
Copy link

@CeruleanSky Thanks for the reply
I asked as I'm on the hunt for a Windows Client for the Android USB/IP to replace the virtualhere one.

Best of luck finding a solution 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants