Skip to content

Commit 7351b71

Browse files
committed
github-action: more features from TAOS-CI imported and expanded
- gbs build for x64, x86, arm32, arm64 - pdebuild for { x64, arm64 } x { 22.04, 20.04 } - yocto build w/ eSDK Signed-off-by: MyungJoo Ham <[email protected]>
1 parent 664018d commit 7351b71

File tree

7 files changed

+184
-165
lines changed

7 files changed

+184
-165
lines changed

.TAOS-CI/config/config-plugins-postbuild.sh

-15
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,6 @@ declare -i idx=-1
1515
echo "[MODULE] plugins-base: Plugin group is a well-maintained collection of plugin modules."
1616
# Please append your plugin modules here.
1717

18-
postbuild_plugins[++idx]="pr-postbuild-build-tizen"
19-
echo "[DEBUG] The default BUILD_MODE of ${postbuild_plugins[idx]} is declared with 99 (SKIP MODE) by default in plugins-base folder."
20-
echo "[DEBUG] ${postbuild_plugins[idx]} is started."
21-
echo "[DEBUG] ${BOT_NAME}/${postbuild_plugins[idx]}: Check if Tizen rpm package is successfully generated."
22-
echo "[DEBUG] Current path: $(pwd)."
23-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-base/${postbuild_plugins[idx]}.sh
24-
25-
26-
postbuild_plugins[++idx]="pr-postbuild-build-ubuntu"
27-
echo "[DEBUG] The default BUILD_MODE of ${postbuild_plugins[idx]} is declared with 99 (SKIP MODE) by default in plugins-base folder."
28-
echo "[DEBUG] ${postbuild_plugins[idx]} is started."
29-
echo "[DEBUG] ${BOT_NAME}/${postbuild_plugins[idx]}: Check if Ubuntu deb package is successfully generated."
30-
echo "[DEBUG] Current path: $(pwd)."
31-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-base/${postbuild_plugins[idx]}.sh
32-
3318

3419
postbuild_plugins[++idx]="pr-postbuild-build-yocto"
3520
echo "[DEBUG] The default BUILD_MODE of ${postbuild_plugins[idx]} is declared with 99 (SKIP MODE) by default in plugins-base folder."

.TAOS-CI/config/config-plugins-prebuild.sh

-144
Original file line numberDiff line numberDiff line change
@@ -16,150 +16,6 @@ declare -i idx=-1
1616
echo "[MODULE] plugins-good: Plugin group that follow Apache license with good quality"
1717
# Please append your plugin modules here.
1818

19-
prebuild_plugins[++idx]="pr-prebuild-doxygen-tag"
20-
echo "${prebuild_plugins[idx]} is starting."
21-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check a source code consists of required doxygen tags."
22-
echo "[DEBUG] The current path: $(pwd)."
23-
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
24-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
25-
26-
prebuild_plugins[++idx]="pr-prebuild-indent"
27-
echo "${prebuild_plugins[idx]} is starting."
28-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check the code formatting style with GNU indent"
29-
echo "[DEBUG] The current path: $(pwd)."
30-
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
31-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
32-
33-
34-
prebuild_plugins[++idx]="pr-prebuild-clang"
35-
echo "${prebuild_plugins[idx]} is starting."
36-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check the code formatting style with clang-format"
37-
echo "[DEBUG] The current path: $(pwd)."
38-
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
39-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
40-
41-
#prebuild_plugins[++idx]="pr-prebuild-exclusive-vio"
42-
# echo "${prebuild_plugins[idx]} is starting."
43-
# echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check issue #279. VIO commits should not touch non VIO files."
44-
# echo "[DEBUG] The current path: $(pwd)."
45-
# echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
46-
# source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
47-
48-
prebuild_plugins[++idx]="pr-prebuild-pylint"
49-
echo "${prebuild_plugins[idx]} is starting."
50-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check the code formatting style with pylint"
51-
echo "[DEBUG] The current path: $(pwd)."
52-
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
53-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
54-
55-
prebuild_plugins[++idx]="pr-prebuild-newline"
56-
echo "${prebuild_plugins[idx]} is starting."
57-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check if there is a newline issue in text files"
58-
echo "[DEBUG] The current path: $(pwd)."
59-
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
60-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
61-
62-
prebuild_plugins[++idx]="pr-prebuild-rpm-spec"
63-
echo "${prebuild_plugins[idx]} is starting."
64-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check if there is incorrect staements in *.spec file"
65-
echo "[DEBUG] The current path: $(pwd)."
66-
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
67-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
68-
69-
prebuild_plugins[++idx]="pr-prebuild-file-size"
70-
echo "${prebuild_plugins[idx]} is starting."
71-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check the file size to not include big binary files"
72-
echo "[DEBUG] The current path: $(pwd)."
73-
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
74-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
75-
76-
prebuild_plugins[++idx]="pr-prebuild-cppcheck"
77-
echo "${prebuild_plugins[idx]} is starting."
78-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check dangerous coding constructs in source codes (*.c, *.cpp) with cppcheck"
79-
echo "[DEBUG] The current path: $(pwd)."
80-
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
81-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
82-
83-
prebuild_plugins[++idx]="pr-prebuild-nobody"
84-
echo "${prebuild_plugins[idx]} is starting."
85-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check the commit message body"
86-
echo "[DEBUG] The current path: $(pwd)."
87-
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
88-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
89-
90-
prebuild_plugins[++idx]="pr-prebuild-timestamp"
91-
echo "${prebuild_plugins[idx]} is starting."
92-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check the timestamp of the commit"
93-
echo "[DEBUG] The current path: $(pwd)."
94-
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
95-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
96-
97-
prebuild_plugins[++idx]="pr-prebuild-executable"
98-
echo "${prebuild_plugins[idx]} is starting."
99-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check executable bits for .cpp, .c, .hpp, .h, .prototxt, .caffemodel, .txt., .init"
100-
echo "[DEBUG] The current path: $(pwd)."
101-
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
102-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
103-
104-
prebuild_plugins[++idx]="pr-prebuild-hardcoded-path"
105-
echo "${prebuild_plugins[idx]} is starting."
106-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check prohibited hardcoded paths (/home/* for now)"
107-
echo "[DEBUG] The current path: $(pwd)."
108-
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
109-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
110-
111-
prebuild_plugins[++idx]="pr-prebuild-misspelling"
112-
echo "${prebuild_plugins[idx]} is starting."
113-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check a misspelled statement in a document file with GNU Aspell"
114-
echo "[DEBUG] The current path: $(pwd)."
115-
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
116-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
117-
118-
prebuild_plugins[++idx]="pr-prebuild-doxygen-build"
119-
echo "${prebuild_plugins[idx]} is starting."
120-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check a doxygen grammar if a doxygen can normally generate source code"
121-
122-
prebuild_plugins[++idx]="pr-prebuild-sloccount"
123-
echo "${prebuild_plugins[idx]} is starting."
124-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check physical Source Lines of Code (SLOC) in a source code"
125-
echo "[DEBUG] The current path: $(pwd)."
126-
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
127-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
128-
129-
prebuild_plugins[++idx]="pr-prebuild-prohibited-words"
130-
echo "${prebuild_plugins[idx]} is starting."
131-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check if source codes have prohibited words."
132-
echo "[DEBUG] The current path: $(pwd)."
133-
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
134-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
135-
136-
prebuild_plugins[++idx]="pr-prebuild-signed-off-by"
137-
echo "${prebuild_plugins[idx]} is starting."
138-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check 'Signed-off-by' in commit body"
139-
echo "[DEBUG] The current path: $(pwd)."
140-
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
141-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
142-
143-
prebuild_plugins[++idx]="pr-prebuild-shellcheck"
144-
echo "${prebuild_plugins[idx]} is starting."
145-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check a syntax error in a shell script file with 'shellcheck' package"
146-
echo "[DEBUG] The current path: $(pwd)."
147-
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
148-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
149-
150-
prebuild_plugins[++idx]="pr-prebuild-flawfinder"
151-
echo "${prebuild_plugins[idx]} is starting."
152-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check security problems in the C/C++ source code with 'flawfinder' package"
153-
echo "[DEBUG] The current path: $(pwd)."
154-
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
155-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
156-
157-
prebuild_plugins[++idx]="pr-prebuild-coverity"
158-
echo "${prebuild_plugins[idx]} is starting."
159-
echo "[MODULE] ${BOT_NAME}/${prebuild_plugins[idx]}: Check defects in the C/C++ source code with 'coverity' package"
160-
echo "[DEBUG] The current path: $(pwd)."
161-
echo "[DEBUG] source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh"
162-
source ${REFERENCE_REPOSITORY}/ci/taos/plugins-good/${prebuild_plugins[idx]}.sh
16319

16420
##################################################################################################################
16521
echo "[MODULE] plugins-staging: Plugin group that does not have an evaluation and aging test enough"

.github/workflows/android.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Android NDK build
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-22.04
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: nttld/setup-ndk@v1
13+
id: setup-ndk
14+
with:
15+
ndk-version: r25b
16+
- runs: |
17+
ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./jni/Android.mk NDK_APPLICATION_MK=./jni/Application.m

.github/workflows/gbs_x64.yml .github/workflows/gbs_build.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: GBS Tizen build for x64 from Ubuntu
1+
name: GBS Tizen build from Ubuntu
22

33
# ${{ github.event.pull_request.commits }} : # commits in this PR
44
# - changed_file_list in GITHUB_ENV: the list of files updated in this pull-request.
@@ -10,6 +10,18 @@ on:
1010
jobs:
1111
build:
1212

13+
strategy:
14+
matrix:
15+
include:
16+
- aarch: "-A x86_64"
17+
option: "--define \"unit_test 1\""
18+
- aarch: "-A i586"
19+
option: "--define \"unit_test 1\""
20+
- aarch: "-A armv7l"
21+
option: "--define \"unit_test 0\""
22+
- aarch: "-A aarch64"
23+
option: "--define \"unit_test 0\""
24+
1325
runs-on: ubuntu-20.04
1426

1527
steps:
@@ -47,7 +59,9 @@ jobs:
4759
- name: run GBS
4860
if: env.rebuild == '1'
4961
run: |
50-
gbs build --skip-srcrpm --define "_skip_debug_rpm 1"
62+
gbs build --skip-srcrpm --define "_skip_debug_rpm 1" ${{ matrix.aarch }} ${{ matrix.option }}
63+
## Skip nntrainer build test in aarch64. @todo We need #2430 and #2431 in nntrainer.git
64+
if [[ ${{ matrix.aarch }} == "-A aarch64" ]]; then echo "rebuild=0" >> "$GITHUB_ENV"; fi
5165
- name: get nntrainer
5266
if: env.rebuild == '1'
5367
uses: actions/checkout@v3
@@ -57,4 +71,4 @@ jobs:
5771
- name: run nntrainer GBS build
5872
if: env.rebuild == '1'
5973
run: |
60-
pushd nntrainer && gbs build --skip-srcrpm --define "unit_test 1" --define "_skip_debug_rpm 1" && popd
74+
pushd nntrainer && gbs build --skip-srcrpm ${{ matrix.aarch }} ${{ matrix.option }} --define "_skip_debug_rpm 1" && popd

.github/workflows/pdebuild.yml

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: Pdebuild for PPA/Ubuntu
2+
3+
# ${{ github.event.pull_request.commits }} : # commits in this PR
4+
# - changed_file_list in GITHUB_ENV: the list of files updated in this pull-request.
5+
6+
## @todo apply "cache" to pdebuilder cache, or create docker images ready for pdebuild
7+
8+
on:
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
#os: [ ubuntu-20.04, ubuntu-22.04 ]
19+
## ppa/nnstreamer's ubuntu 20.04 has gpgv error:
20+
# E: Release signed by unknown key (key id CADA0F77901522B3)
21+
# The specified keyring /usr/share/keyrings/ubuntu-archive-keyring.gpg may be incorrect or out of date.
22+
# You can find the latest Debian release key at https://ftp-master.debian.org/keys.html
23+
# E: debootstrap failed
24+
# E: Tail of debootstrap.log:
25+
# amd64: ok
26+
# 2024-01-24 15:01:58 URL:http://ppa.launchpad.net/nnstreamer/ppa/ubuntu/dists/focal/InRelease [18035/18035] -> "/var/cache/pbuilder/build/10399/var/lib/apt/lists/partial/ppa.launchpad.net_nnstreamer_ppa_ubuntu_dists_focal_InRelease" [1]
27+
# gpgv: Signature made Wed Jan 24 09:12:55 2024 UTC
28+
# gpgv: using RSA key 373A37D40E480F96524A4027CADA0F77901522B3
29+
# gpgv: Can't check signature: No public key
30+
# E: End of debootstrap.log
31+
# W: Aborting with an error
32+
os: [ ubuntu-22.04 ]
33+
arch: [ amd64, arm64 ]
34+
include:
35+
- distroname: jammy
36+
os: ubuntu-22.04
37+
# - distroname: focal
38+
# os: ubuntu-20.04
39+
40+
steps:
41+
- uses: actions/checkout@v4
42+
with:
43+
fetch-depth: 0
44+
- name: Check if rebuild required
45+
## @todo This should become a reusable workflow.
46+
run: |
47+
tmpfile=$(mktemp)
48+
git show --pretty="format:" --name-only --diff-filter=AMRC ${{ github.event.pull_request.head.sha}} -${{ github.event.pull_request.commits }} | sort | uniq | awk NF > ${tmpfile}
49+
echo "changed_file_list=${tmpfile}" >> "$GITHUB_ENV"
50+
rebuild=`bash .github/workflows/check_if_rebuild_requires.sh ${tmpfile} debian | grep "REBUILD=YES" | wc -l`
51+
echo "Rebuild required: ${rebuild}"
52+
echo "rebuild=${rebuild}" >> "$GITHUB_ENV"
53+
- uses: actions/setup-python@v1
54+
- name: make cache key
55+
if: env.rebuild == '1'
56+
id: make-key
57+
run: echo "cache_key=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
58+
shell: bash
59+
- name: cache pbuilder cache
60+
id: cache-pbuilder
61+
if: env.rebuild == '1'
62+
uses: actions/cache@v3
63+
with:
64+
path: /var/cache/pbuilder
65+
key: ${{ steps.make-key.outputs.cache_key }}
66+
- name: prepare pdebuild
67+
if: env.rebuild == '1'
68+
run: |
69+
echo "Installing build tools"
70+
sudo add-apt-repository ppa:nnstreamer/ppa
71+
echo "::group::apt-get update && apt-get install"
72+
sudo apt-get update && sudo apt-get install -y pbuilder debootstrap curl ubuntu-dev-tools qemu-user-static debian-archive-keyring ubuntu-keyring debhelper
73+
echo "::endgroup::"
74+
echo "DISTRIBUTION=${{ matrix.distroname }}" > ~/.pbuilderrc
75+
echo "OTHERMIRROR=\"deb [trusted=yes] http://archive.ubuntu.com/ubuntu ${{ matrix.distroname }}-backports universe |deb [trusted=yes] http://ppa.launchpad.net/nnstreamer/ppa/ubuntu ${{ matrix.distroname }} main\"" >> ~/.pbuilderrc
76+
cat ~/.pbuilderrc
77+
sudo mkdir -p /root/
78+
sudo ln -s ~/.pbuilderrc /root/
79+
echo "=== pbuilder create"
80+
echo "::group::pbuilder create --allow-untrusted"
81+
sudo pbuilder create --allow-untrusted
82+
echo "::endgroup::"
83+
echo "=== pbuilder update"
84+
echo "::group::pbuilder update --distribution ${{ matrix.distroname }}"
85+
sudo pbuilder update --distribution ${{ matrix.distroname }}
86+
echo "::endgroup"
87+
echo "::group::pbuilder update"
88+
sudo pbuilder update
89+
echo "::endgroup"
90+
- name: run pdebuild
91+
if: env.rebuild == '1'
92+
run: |
93+
pdebuild --architecture ${{ matrix.arch }} -- --distribution ${{ matrix.distroname }}

.github/workflows/yocto.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Yocto build
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
- name: Check if rebuild required
16+
## @todo This should become a reusable workflow.
17+
run: |
18+
tmpfile=$(mktemp)
19+
git show --pretty="format:" --name-only --diff-filter=AMRC ${{ github.event.pull_request.head.sha}} -${{ github.event.pull_request.commits }} | sort | uniq | awk NF > ${tmpfile}
20+
echo "changed_file_list=${tmpfile}" >> "$GITHUB_ENV"
21+
rebuild=`bash .github/workflows/check_if_rebuild_requires.sh ${tmpfile} build | grep "REBUILD=YES" | wc -l`
22+
echo "Rebuild required: ${rebuild}"
23+
echo "rebuild=${rebuild}" >> "$GITHUB_ENV"
24+
- name: Prepare build
25+
if: env.rebuild == '1'
26+
run: |
27+
echo "::group::apt-get install"
28+
sudo apt-get update
29+
sudo apt-get install sudo curl diffstat python2.7 locales bash-completion qemu gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm python3-subunit mesa-common-dev
30+
sudo ln -sf python2.7 /usr/bin/python
31+
echo "::endgroup::"
32+
echo "::group::Locale Setup"
33+
sudo dpkg-reconfigure locales
34+
sudo locale-gen "en_US.UTF-8"
35+
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
36+
export LC_ALL=en_US.UTF-8
37+
export LANG=en_US.UTF-8
38+
export LANGUAGE=en_US:en
39+
locale
40+
echo "::endgroup::"
41+
echo "::group::eSDK install"
42+
## @todo Find a way to cache this.
43+
wget https://downloads.yoctoproject.org/releases/yocto/yocto-3.3/toolchain/x86_64/poky-glibc-x86_64-core-image-minimal-cortexa57-qemuarm64-toolchain-ext-3.3.sh
44+
sh ./poky-glibc-x86_64-core-image-minimal-cortexa57-qemuarm64-toolchain-ext-3.3.sh
45+
echo "::endgroup::"
46+
- name: Build
47+
if: env.rebuild == '1'
48+
run: |
49+
source ~/poky_sdk/environment-setup-coretexa57-poky-linux
50+
devtool
51+
id -a
52+
devtool add builddir http://github.com/nnstreamer/nnstreamer.git 2> err_report.txt 1> output_report.txt
53+
echo "\n\n============ devtool add: $?."
54+
devtool build builddir 2> err_report2.txt 1> output_report2.txt
55+
result=$?
56+
echo "\n\n============ devtool build: $result."

debian/control

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
### PPA does NOT use this file! ###
2-
### Rule file will override! ###
31
Source: nnstreamer
42
Section: libs
53
Priority: optional
64
Maintainer: MyungJoo Ham <[email protected]>
75
Build-Depends: gcc-9 | gcc-8 | gcc-7 | gcc-6 | gcc-5 (>=5.4),
8-
ninja-build, meson (>=0.50), debhelper (>=9), nnstreamer-edge-dev,
6+
ninja-build, meson (>=0.49), debhelper (>=9), nnstreamer-edge-dev,
97
libgstreamer1.0-dev, libgstreamer-plugins-base1.0-dev, libglib2.0-dev, libjson-glib-dev,
108
gstreamer1.0-tools, gstreamer1.0-plugins-base, gstreamer1.0-plugins-good,
119
libgtest-dev, ssat, libpng-dev, libopencv-dev, liborc-0.4-dev, flex, bison,

0 commit comments

Comments
 (0)