Skip to content

Commit

Permalink
Try to speed up the CI build process (p4lang#4470)
Browse files Browse the repository at this point in the history
* Try to speed up the CI build process

* Update install_fedora_deps.sh

* Update ci-test.yml
  • Loading branch information
fruffy authored Feb 26, 2024
1 parent 11e3bf3 commit c533f06
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
source ~/.bash_profile
./bootstrap.sh -DENABLE_GC=ON -DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_UNITY_BUILD=ON
make -Cbuild -j2
make -Cbuild -j$((`nproc`+1))
- name: Run tests (MacOS)
run: |
Expand Down
4 changes: 2 additions & 2 deletions tools/ci-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,8 @@ cmake ${CMAKE_FLAGS} ..

# If CMAKE_ONLY is active, only run CMake. Do not build.
if [ "$CMAKE_ONLY" == "OFF" ]; then
make
sudo make install
make -j$((`nproc`+1))
sudo make -j$((`nproc`+1)) install
# Print ccache statistics after building
ccache -p -s
fi
Expand Down
8 changes: 4 additions & 4 deletions tools/install_fedora_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ git clone --recurse-submodules --depth=1 https://github.com/p4lang/PI
cd PI
./autogen.sh
./configure --with-proto
make
make install
make -j$((`nproc`+1))
make -j$((`nproc`+1)) install
popd

# Install BMv2 from source
Expand All @@ -75,8 +75,8 @@ git clone --depth=1 https://github.com/p4lang/behavioral-model
cd behavioral-model
./autogen.sh
./configure --with-pdfixed --with-thrift --with-pi --with-stress-tests --enable-debugger CC="ccache gcc" CXX="ccache g++"
make
make install-strip
make -j$((`nproc`+1))
make -j$((`nproc`+1)) install-strip
popd

rm -rf "${tmp_dir}"

0 comments on commit c533f06

Please sign in to comment.