Skip to content

Commit

Permalink
[CI/CD] Adjust the format of GitHub Actions Workflow config files
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigma711 committed Mar 26, 2024
1 parent 3b4f89b commit 3461a6f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,23 @@ jobs:
sudo ninja install
sudo ldconfig
- name: Install gtest manually
run: sudo apt-get install libgtest-dev && cd /usr/src/gtest && sudo cmake CMakeLists.txt && sudo make && sudo cp lib/*.a /usr/lib && sudo ln -s /usr/lib/libgtest.a /usr/local/lib/libgtest.a && sudo ln -s /usr/lib/libgtest_main.a /usr/local/lib/libgtest_main.a
run: |
sudo apt-get install libgtest-dev
cd /usr/src/gtest
sudo cmake -DCMAKE_BUILD_TYPE=Release -G Ninja CMakeLists.txt
sudo ninja
sudo cp lib/*.a /usr/lib
sudo ln -s /usr/lib/libgtest.a /usr/local/lib/libgtest.a
sudo ln -s /usr/lib/libgtest_main.a /usr/local/lib/libgtest_main.a
- name: Install llhttp manually
working-directory: ${{github.workspace}}/..
run: git clone https://github.com/nodejs/llhttp.git && cd llhttp && sudo apt-get install npm && npm install && make && sudo make install
run: |
git clone https://github.com/nodejs/llhttp.git
cd llhttp
sudo apt-get install npm
npm install
make
sudo make install
- name: cmake
working-directory: build
run: cmake -DProtobuf_DIR=`pkg-config --variable=prefix protobuf` -DCMAKE_BUILD_TYPE=Release -G Ninja ..
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,24 @@ jobs:
sudo ldconfig
- name: Install gtest manually
run: sudo apt-get install libgtest-dev && cd /usr/src/gtest && sudo cmake CMakeLists.txt && sudo make && sudo cp lib/*.a /usr/lib && sudo ln -s /usr/lib/libgtest.a /usr/local/lib/libgtest.a && sudo ln -s /usr/lib/libgtest_main.a /usr/local/lib/libgtest_main.a
run: |
sudo apt-get install libgtest-dev
cd /usr/src/gtest
sudo cmake -DCMAKE_BUILD_TYPE=Release -G Ninja CMakeLists.txt
sudo ninja
sudo cp lib/*.a /usr/lib
sudo ln -s /usr/lib/libgtest.a /usr/local/lib/libgtest.a
sudo ln -s /usr/lib/libgtest_main.a /usr/local/lib/libgtest_main.a
- name: Install llhttp manually
working-directory: ${{github.workspace}}/..
run: git clone https://github.com/nodejs/llhttp.git && cd llhttp && sudo apt-get install npm && npm install && make && sudo make install
run: |
git clone https://github.com/nodejs/llhttp.git
cd llhttp
sudo apt-get install npm
npm install
make
sudo make install
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
Expand Down

0 comments on commit 3461a6f

Please sign in to comment.