-
Notifications
You must be signed in to change notification settings - Fork 5
79 lines (70 loc) · 2.41 KB
/
test_archlinux.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
name: test_archlinux
on:
push:
branches: [ test_archlinux ]
paths-ignore:
- 'doc/**'
- 'README.md'
- 'README_zh_CN.md'
- 'DEVELOPNOTE.md'
- '.readthedocs.yaml'
pull_request:
branches: [ test_archlinux ]
paths-ignore:
- 'doc/**'
- 'README.md'
- 'README_zh_CN.md'
- 'DEVELOPNOTE.md'
- '.readthedocs.yaml'
workflow_dispatch:
jobs:
ubuntu-2004:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/[email protected]
with:
version: '6.2.0'
- name: Setup OpenCV
uses: Dovyski/[email protected]
with:
opencv-version: 4.0.0
opencv-extra-modules: false
- name: Install prerequisites
run: |
sudo apt update
sudo apt install -y make gcc patchelf chrpath qt5-default
- name: Build all
run: |
git fetch --tags --force
git describe --always --long --dirty --abbrev=10 --tags | awk '{print "\""$0"\""}' > git_tag.inc
sed -i 's/git_tag.inc/git_tag.ci.inc/g' YUVviewer.pro
sed -i 's/QT_DIR=\/opt\/Qt6.2.0\/6.2.0\/gcc_64/QT_DIR=$(cd "$(dirname "$0")";pwd)\/..\/Qt\/6.2.0\/gcc_64/g' build_deb.sh
sed -i 's/\/home\/xiaoming\/Desktop\/opencv/\/usr\/local/g' build_deb.sh
sed -i 's/\/home\/xiaoming\/Desktop\/opencv/\/usr\/local/g' partform_unix.pri
./build_deb.sh
- uses: addnab/docker-run-action@v3
with:
image: m0rf30/arch-yay:latest
options: -v ${{ github.workspace }}:/work
run: |
yay -Syu --noconfirm gdb
yay -Syu --noconfirm yuvviewer-bin
echo "test ldd yuvviewer E"
ldd /opt/YUVviewer/YUVviewer
echo "test ldd yuvviewer X"
echo ".................................................."
echo "test run yuvviewer E"
echo "run" > ~/.gdbinit
/opt/YUVviewer/YUVviewer --version
cp -r /work/YUVviewer/out_arch/opt/YUVviewer/YUVviewer /opt/YUVviewer/YUVviewer
ldd /work/YUVviewer/out_arch/opt/YUVviewer/YUVviewer
/opt/YUVviewer/YUVviewer --version
echo "test run yuvviewer X"
- name: Upload build asserts
uses: actions/[email protected]
with:
name: out_arch
path: |
./out_arch