forked from RuriOSS/rurima
-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (44 loc) · 2.05 KB
/
code-test.yml
File metadata and controls
53 lines (44 loc) · 2.05 KB
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
name: Tests
on:
- pull_request
jobs:
build:
runs-on: ubuntu-latest
name: Build test
steps:
- uses: actions/checkout@v4
- name: Set up Android NDK
uses: nttld/setup-ndk@v1
with:
ndk-version: r27c
- name: Install dependencies
run: |
sudo apt-get install -y -qq build-essential pipx python3-venv pkg-config cmake docbook2x \
python3-pip pipx
pipx ensurepath
pipx install meson==0.61
pipx install ninja
- name: Download Dependencies
run: |
libcap=$(curl -s https://api.github.com/repos/DreamConnected/AndroidLibcapBuild/releases/latest | grep browser_download_url | cut -d'"' -f4 |grep -E 'zip$')
libcap_file=$(curl -s https://api.github.com/repos/DreamConnected/AndroidLibcapBuild/releases/latest | grep name | cut -d'"' -f4 |grep -E 'zip$')
wget -q ${libcap} && sudo unzip -q -o ${libcap_file} -d / && echo 2/5 ${libcap} ${libcap_file}
libseccomp=$(curl -s https://api.github.com/repos/DreamConnected/libseccomp-dev/releases/latest | grep browser_download_url | cut -d'"' -f4 |grep -E 'zip$')
libseccomp_file=$(curl -s https://api.github.com/repos/DreamConnected/libseccomp-dev/releases/latest | grep name | cut -d'"' -f4 |grep -E 'zip$')
wget -q ${libseccomp} && sudo unzip -q -o ${libseccomp_file} -d / && echo 5/5 ${libseccomp} ${libseccomp_file}
- name: Test build
run: |
git submodule update --init --recursive
sed -i "s|android-ndk-r27c|$ANDROID_NDK_HOME|g" aarch64-android-api30.txt
export PKG_CONFIG_PATH=/data/sysroot/lib/pkgconfig:/data/sysroot/lib64/pkgconfig:$PKG_CONFIG_PATH
meson setup build \
--prefix=/data/share \
--default-library=both \
--cross-file aarch64-android-api30.txt
meson compile -C build
sudo /usr/local/bin/ninja -C build install
- name: Upload artifacts rurima
uses: actions/upload-artifact@v4.3.1
with:
name: android-aarch64-rurima-shared-api30
path: /data/share/*