-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CI.yml Update CI.yml Update CI.yml Create docker-compose.yml Create Dockerfile Update CI.yml Update Dockerfile Update Dockerfile Update CI.yml Update CI.yml Update Dockerfile Update Dockerfile Update Dockerfile Update Dockerfile
- Loading branch information
1 parent
0be766e
commit 89333e9
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: CI Job | ||
|
||
on: | ||
push: | ||
branches: [ master, dev ] | ||
pull_request: | ||
branches: [ master, dev ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: thyrlian/android-sdk:latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Workaround for checkstyle failurs | ||
run: sed -i 's/server check/server/g' release.sh | ||
- name: Allow builder user to write to project directory | ||
run: chmod -R 777 . | ||
- name: Run scrcpy buid using docker-compose | ||
run: docker-compose up | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: scrcpy | ||
path: dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM thyrlian/android-sdk:latest | ||
|
||
# Set Timezone and Install Build Dependencies | ||
RUN export TZ="Etc/UTC"; ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \ | ||
&& apt-get update && apt-get -y install ffmpeg libsdl2-2.0-0 android-sdk adb build-essential git pkg-config meson ninja-build libavcodec-dev libavformat-dev libavutil-dev libsdl2-dev openjdk-8-jdk python3-pip mingw-w64 mingw-w64-tools android-tools-adb zip | ||
|
||
# Add builder user so that build is not running as root | ||
RUN groupadd -r builder && useradd -m -r -g builder builder && chown -R builder:builder /opt/android-sdk | ||
USER builder | ||
|
||
CMD cd /scrcpy && ./release.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: '2' | ||
|
||
services: | ||
scrcpy: | ||
build: . | ||
privileged: true | ||
volumes: | ||
- .:/scrcpy |