Skip to content

Commit

Permalink
[CI] Fix meson ubuntu ci build
Browse files Browse the repository at this point in the history
Fix build bug
- Currently, there is a bug in the matrix used in CI where the first Meson build runs successfully but subsequent builds fail due to the presence of a 'build' folder. I would like to fix this issue.
- Before running the Meson build, ensure that any existing folders named 'build' are deleted.
- fix gcc version to 13

Resolves:
- nnstreamer#2715

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

Signed-off-by: Donghak PARK <[email protected]>
Co-authored-by: hyeonseok <[email protected]>
Co-authored-by: Donghyeon Jeong <[email protected]>
  • Loading branch information
3 people committed Aug 27, 2024
1 parent cc5ca33 commit d56c8a7
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ubuntu_clean_meson_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,18 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y gcc g++ pkg-config libopenblas-dev libiniparser-dev libjsoncpp-dev libcurl3-dev tensorflow2-lite-dev nnstreamer-dev libglib2.0-dev libgstreamer1.0-dev libgtest-dev ml-api-common-dev flatbuffers-compiler ml-inference-api-dev libunwind-dev
- name: install additional packages for features
run: sudo apt-get install -y python3-dev python3-numpy python3
- name: gcc version change
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
sudo apt-get install build-essential
sudo apt-get install gcc-13 g++-13
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 1000
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 1000
sudo update-alternatives --set gcc /usr/bin/gcc-13
- name: check gcc version
run: gcc --version
- name: install build systems
run: sudo apt install meson ninja-build
- run: meson setup build/
env:
CC: gcc
- run: |
meson \
--buildtype=plain \
Expand Down

0 comments on commit d56c8a7

Please sign in to comment.