Skip to content

Commit

Permalink
[CI] update build script
Browse files Browse the repository at this point in the history
This commit updates build scripts to initializ git submodules recursively.

**Self-evaluation:**
1. Build test: [ ]Passed [ ]Failed [X]Skipped
2. Run test:   [ ]Passed [ ]Failed [X]Skipped

Signed-off-by: Donghyeon Jeong <[email protected]>
  • Loading branch information
djeong20 committed Feb 25, 2025
1 parent 2925049 commit 961aae1
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
sudo apt-get install tar wget gzip libglib2.0-dev libjson-glib-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libunwind-dev googletest liborc-0.4-dev flex bison libopencv-dev pkg-config python3-dev python3-numpy python3 meson ninja-build libflatbuffers-dev flatbuffers-compiler protobuf-compiler
echo "::endgroup::"
- name: Install submodules
run: git submodule sync && git submodule update --init --depth 1
run: git submodule sync && git submodule update --init --recursive
- name: NDK Build
if: env.rebuild == '1'
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 1000
sudo update-alternatives --set gcc /usr/bin/gcc-13
pip install meson ninja
git submodule sync && git submodule update --init --depth 1
git submodule sync && git submodule update --init --recursive
meson setup \
--buildtype=plain \
--prefix=/usr \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/daily_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 1000
sudo update-alternatives --set gcc /usr/bin/gcc-13
- name: Install submodules
run: git submodule sync && git submodule update --init --depth 1
run: git submodule sync && git submodule update --init --recursive
- name: install build systems
run: sudo apt install meson ninja-build
- run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/static.check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ jobs:
echo "Checking $file"
FILESIZE=$(stat -c%s "$file")
FILESIZE_NUM=`echo $FILESIZE | sed ':a;s/\B[0-9]\{3\}\>/,&/;ta'`
if [[ $FILESIZE -gt $[ 5*1024*1024 ] ]]; then
echo "::error $file is too large: $FILESIZE > 5MiB"
if [[ $FILESIZE -gt $[ 30*1024*1024 ] ]]; then
echo "::error $file is too large: $FILESIZE > 30MiB"
exit 1
fi
done
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: install additional packages for features
run: sudo apt-get install -y python3-dev python3-numpy python3
- name: Install submodules
run: git submodule sync && git submodule update --init --depth 1
run: git submodule sync && git submodule update --init --recursive
- name: install build systems
run: sudo apt install meson ninja-build
- run: meson setup build/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu_clean_meson_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 1000
sudo update-alternatives --set gcc /usr/bin/gcc-13
- name: Install submodules
run: git submodule sync && git submodule update --init --depth 1
run: git submodule sync && git submodule update --init --recursive
- name: install build systems
run: sudo apt install meson ninja-build
- run: |
Expand Down

0 comments on commit 961aae1

Please sign in to comment.