forked from tihmstar/usbmuxd2
-
Notifications
You must be signed in to change notification settings - Fork 0
107 lines (97 loc) · 3.89 KB
/
Arm.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
name: Arm
on:
push:
workflow_dispatch:
jobs:
linux-aarch64:
runs-on: ubuntu-22.04
strategy:
matrix:
target:
- arch: "aarch64"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Cross-Compile Support (ARM64)
uses: cyberjunk/gha-ubuntu-cross@v4
with:
arch: arm64
- name: Install build requirements
run: |
sudo apt install -y pkg-config checkinstall rename libssl-dev:arm64 libudev-dev:arm64 libavahi-client-dev:arm64
echo $PKG_CONFIG_PATH
which pkg-config
- run: find / -name *avahi-client*
- name: Build dependencies
run: |
mkdir build
cd build
export CC=aarch64-linux-gnu-gcc
export CXX=aarch64-linux-gnu-g++
git clone https://github.com/avahi/avahi.git -b v0.8
cd avahi
./autogen.sh --prefix=/usr --disable-static --host=aarch64-linux
make
sudo checkinstall -y --pkgname=libusb --pkgversion=0.8 --pkgarch=arm64
cd ..
git clone https://github.com/libusb/libusb.git -b v1.0.26
cd libusb
./autogen.sh --prefix=/usr --disable-static --host=aarch64-linux
make
sudo checkinstall -y --pkgname=libusb --pkgversion=1.0.26 --pkgarch=arm64
cd ..
git clone https://github.com/tihmstar/libgeneral.git -b 64
cd libgeneral
./autogen.sh --prefix=/usr --host=aarch64-linux
make
sudo checkinstall -y --pkgname=libgeneral --pkgversion=1.0.0 --pkgarch=arm64
cd ..
git clone https://github.com/libimobiledevice/libplist.git -b 2.3.0
cd libplist
./autogen.sh --prefix=/usr --disable-static --without-cython --host=aarch64-linux
make
sudo checkinstall -y --pkgname=libplist --pkgversion=2.3.0 --pkgarch=arm64
cd ..
git clone https://github.com/libimobiledevice/libimobiledevice-glue -b 1.0.0
cd libimobiledevice-glue
./autogen.sh --prefix=/usr --disable-static --without-cython --host=aarch64-linux
make
sudo checkinstall -y --pkgname=libimobiledevice-glue --pkgversion=1.0.0 --pkgarch=arm64
cd ..
git clone https://github.com/bitxeno/libusbmuxd.git
cd libusbmuxd
./autogen.sh --prefix=/usr --disable-static --host=aarch64-linux
make
sudo checkinstall -y --pkgname=libusbmuxd --pkgversion=2.3.0 --pkgarch=arm64
cd ..
git clone https://github.com/bitxeno/libimobiledevice.git
cd libimobiledevice
./autogen.sh --prefix=/usr --disable-static --without-cython --host=aarch64-linux
make
sudo checkinstall -y --pkgname=libimobiledevice --pkgversion=1.3.1 --pkgarch=arm64
cd ../../
- name: Build
run: |
./autogen.sh --prefix=/usr --disable-static --without-cython --host=aarch64-linux
make
sudo checkinstall -y --pkgname=usbmuxd2 --pkgversion=1.0.0 --pkgarch=arm64
- name: Compress build files
run: |
mkdir artifact
mv build/libusb/libusb*.deb artifact/
mv build/libgeneral/libgeneral*.deb artifact/
mv build/libplist/libplist*.deb artifact/
mv build/libimobiledevice-glue/libimobiledevice-glue*.deb artifact/
mv build/libusbmuxd/libusbmuxd*.deb artifact/
mv build/libimobiledevice/libimobiledevice*.deb artifact/
mv usbmuxd*.deb artifact/
rename "s/arm64/${{ matrix.target.arch }}/" ./artifact/*
tar -czvf usbmuxd2-ubuntu-${{ matrix.target.arch }}.tar.gz -C artifact .
- name: Archive package
uses: actions/upload-artifact@v3
with:
name: usbmuxd2-ubuntu-${{ matrix.target.arch }}
path: |
artifact/*.deb
if-no-files-found: error