forked from termux/termux-x11
-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (76 loc) · 2.48 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
name: Xegw_Build
on:
push:
branches:
- xegw
paths-ignore:
- '**.md'
- 'img/**'
pull_request:
branches:
- xegw
paths-ignore:
- '**.md'
- 'img/**'
jobs:
build:
name: "Xegw_Build"
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt update && sudo apt install -y libarchive-tools binutils-aarch64-linux-gnu binutils-arm-linux-gnueabihf
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Validation
uses: gradle/wrapper-validation-action@v2
- 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: Copy loader to target directory
run: cp ./shell-loader/build/outputs/apk/debug/shell-loader-debug.apk ./app/build/outputs/apk/debug/shell-loader-nightly.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 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/shell-loader-nightly.apk
# ./app/build/outputs/apk/debug/termux-x11-*-all.deb
# ./app/build/outputs/apk/debug/termux-x11-*-any.pkg.tar.xz