forked from termux/termux-x11
-
Notifications
You must be signed in to change notification settings - Fork 0
113 lines (100 loc) · 3.18 KB
/
debug_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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: Build
on:
push:
branches:
- master
paths-ignore:
- '**.md'
- 'img/**'
pull_request:
branches:
- master
paths-ignore:
- '**.md'
- 'img/**'
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt update && sudo apt install -y libarchive-tools
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Validation
uses: gradle/actions/wrapper-validation@v3
- name: Java setup
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Restore cache
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build
run: ./gradlew assembleDebug
- name: Build companion package
run: ./build_termux_package
- name: Store app-arm64-v8a-debug
uses: actions/upload-artifact@v4
with:
name: termux-x11-arm64-v8a-debug
path: ./app/build/outputs/apk/debug/app-arm64-v8a-debug.apk
- name: Store app-armeabi-v7a-debug
uses: actions/upload-artifact@v4
with:
name: termux-x11-armeabi-v7a-debug
path: ./app/build/outputs/apk/debug/app-armeabi-v7a-debug.apk
- name: Store app-universal-debug
uses: actions/upload-artifact@v4
with:
name: termux-x11-universal-debug
path: ./app/build/outputs/apk/debug/app-universal-debug.apk
- name: Store app-x86_64-debug
uses: actions/upload-artifact@v4
with:
name: termux-x11-x86_64-debug
path: ./app/build/outputs/apk/debug/app-x86_64-debug.apk
- name: Store app-x86-debug
uses: actions/upload-artifact@v4
with:
name: termux-x11-x86-debug
path: ./app/build/outputs/apk/debug/app-x86-debug.apk
- name: Store companion package
uses: actions/upload-artifact@v4
with:
name: termux-companion packages
path: |
./app/build/outputs/apk/debug/termux-x11-*-all.deb
./app/build/outputs/apk/debug/termux-x11-*-any.pkg.tar.xz
- name: Store unstripped libraries with debug symbols
uses: actions/upload-artifact@v4
with:
name: termux-x11-unstripped-libraries-for-ndk-stack
path: ./app/build/intermediates/cxx/Debug/*
- name: Update Nightly Release
uses: andelf/nightly-release@main
if: github.repository == 'termux/termux-x11' && github.ref == 'refs/heads/master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: nightly
name: 'Nightly Release $$'
draft: false
prerelease: false
body: |
This is a nightly release of the termux-x11 app.
Based on ${{ github.sha }}
files: |
./app/build/outputs/apk/debug/app-*-debug.apk
./app/build/outputs/apk/debug/termux-x11-*-all.deb
./app/build/outputs/apk/debug/termux-x11-*-any.pkg.tar.xz