diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml new file mode 100644 index 0000000000..0bc86d2ef9 --- /dev/null +++ b/.github/workflows/server.yml @@ -0,0 +1,16 @@ +on: + push: + +jobs: + server: + runs-on: ubuntu-latest + container: cimg/android:2022.12.1 + steps: + - uses: actions/checkout@v2 + - name: Build + run: | + ./gradlew -p server assembleRelease + - uses: actions/upload-artifact@v2 + with: + name: scrcpy + path: ./server/build/outputs/apk/release/ diff --git a/server/build_without_gradle.sh b/server/build_without_gradle.sh index d2757d3759..b6405464c1 100755 --- a/server/build_without_gradle.sh +++ b/server/build_without_gradle.sh @@ -50,6 +50,7 @@ echo "Compiling java sources..." cd ../java javac -bootclasspath "$ANDROID_JAR" -cp "$CLASSES_DIR" -d "$CLASSES_DIR" \ -source 1.8 -target 1.8 \ + -encoding UTF-8 \ com/genymobile/scrcpy/*.java \ com/genymobile/scrcpy/wrappers/*.java