-
Notifications
You must be signed in to change notification settings - Fork 46
36 lines (31 loc) · 1.27 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build android package
on:
push:
branches: [ con-wrappers ]
pull_request:
branches: [ con-wrappers ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: |
sudo apt-get update
sudo apt install -y make openjdk-8-jdk openjdk-8-jre ant-contrib python3-requests python3-pip
sudo pip3 install websocket-client
git clone --depth 1 https://gitlab.com/LostGamer/ndk-binaries
git clone --depth 1 https://gitlab.com/LostGamer/android-sdk
git clone --depth 1 https://github.com/nillerusr/srcsdk
cd srcsdk
git submodule init && git submodule update
cd ../
DEPLOY_BRANCH=srceng-old-port COMMIT=$(git rev-parse HEAD) scripts/workflow.sh
- name: Upload files
shell: bash
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
GH_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
run: |
DEPLOY_BRANCH=srceng-old-port scripts/upload-to-github.sh bin/srceng-debug.apk version
CHANNEL_ID=801092155090927626 python3 scripts/send-to-discord.py "Commits history: https://github.com/nillerusr/srceng-android/commits/con-wrappers\nBuild: https://github.com/nillerusr/srceng-deploy/\nBuild finished at: $(date +%Y-%m-%d-%H:%M)"