From e2b054b4a1bc74fcd55fa352d9938af9c2321a29 Mon Sep 17 00:00:00 2001 From: Richard Fine Date: Fri, 4 Jun 2021 19:20:52 -0400 Subject: [PATCH] Create Yamato job for building --- .yamato/build.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .yamato/build.yml diff --git a/.yamato/build.yml b/.yamato/build.yml new file mode 100644 index 00000000..7834d2c5 --- /dev/null +++ b/.yamato/build.yml @@ -0,0 +1,36 @@ +build: + name: Build + agent: + type: Unity::VM + image: slough-ops/ubuntu-20.04-base:stable + flavor: b1.large + commands: + - sudo -n apt-get update + - sudo -n apt install -y ffmpeg libsdl2-2.0-0 adb gcc git pkg-config meson ninja-build libavcodec-dev libavformat-dev libavutil-dev libsdl2-dev openjdk-11-jdk mingw-w64 mingw-w64-tools make zip + + # Get latest Android cmdline tools + - mkdir ~/android-sdk + - export ANDROID_SDK_ROOT=~/android-sdk + - wget -O ~/android-sdk.zip https://dl.google.com/android/repository/commandlinetools-linux-7302050_latest.zip + - unzip ~/android-sdk.zip -d $ANDROID_SDK_ROOT + + # accept all licenses + - yes | ~/android-sdk/cmdline-tools/bin/sdkmanager --licenses --sdk_root=$ANDROID_SDK_ROOT + + # Build for Linux + - meson x --buildtype release --strip -Db_lto=true + - ninja -Cx + + # Build for Windows + - ./release.sh + + artifacts: + win32: + paths: + - dist/scrcpy-win32-* + win64: + paths: + - dist/scrcpy-win64-* + server: + paths: + - release-*/scrcpy-server-*