forked from nikgapps/config
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (75 loc) · 2.8 KB
/
EliteBuilds.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# This is a basic workflow to help you get started with Actions
name: Elite Builds
# Controls when the workflow will run
on:
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
# Environment Variables
env:
auth: ${{ secrets.AUTH }}
deploy_auth: ${{ secrets.DEPLOY_AUTH }}
USER_NAME: ${{ secrets.USER_NAME }}
EMAIL: ${{ secrets.EMAIL }}
REPO: ${{ github.event.repository.name }}
OWNER: ${{ github.event.repository.owner.login }}
SF_PWD: ${{ secrets.SF_PWD }}
RELEASE_TYPE: 'stable'
ENVIRONMENT_TYPE: ${{ secrets.ENVIRONMENT_TYPE }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
MESSAGE_THREAD_ID: ${{ secrets.MESSAGE_THREAD_ID }}
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: macos-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Setup SSH Keys and known_hosts
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Add multiple hosts to known_hosts
run: |
ssh-keyscan frs.sourceforge.net >> ~/.ssh/known_hosts
ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
- name: Environment Details and clean up
run: |
rm -rf Build 10 11 12 Releases canary-release release nikgapps.github.io TempPackages
echo "repo: $REPO"
echo "repo owner: $OWNER"
- name: Checking Java Version
run: |
java -version
- name: Initialization and Fetching the Source Code
run: |
git config --global user.name "$USER_NAME"
git config --global user.email "$EMAIL"
git config --global http.postBuffer 1048576000
git clone --depth=1 [email protected]:nikgapps/ondemand.git
- name: Installing Requirements
run: |
python3 -m pip install wheel setuptools testresources
cd ondemand
pip3 install -r requirements.txt
cd ..
- name: Building Android 13 Elite Builds
run: |
cd ondemand
python3 main.py -A 13 -U -e 1 -c
cd ..
- name: Building Android 14 Elite Builds
run: |
cd ondemand
python3 main.py -A 14 -U -e 1 -c
cd ..
- name: Updating download count
run: |
cd ondemand
python3 analytics_control.py
cd ..