-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: xiaoming <[email protected]>
- Loading branch information
1 parent
4714e32
commit a9b08e8
Showing
2 changed files
with
78 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
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 | ||
WITH_TBB: OFF | ||
WITH_IPP: OFF | ||
|
||
- 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 yuvviewer-bin | ||
echo ".................................................." | ||
sudo rm -rf /opt/YUVviewer | ||
sudo cp -r /work/out_arch/opt/YUVviewer /opt/YUVviewer | ||
ldd /opt/YUVviewer/YUVviewer | ||
/opt/YUVviewer/YUVviewer --version | ||
- name: Upload build asserts | ||
uses: actions/[email protected] | ||
with: | ||
name: out_arch | ||
path: | | ||
./out_arch | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters