Skip to content

Commit

Permalink
fix cmake action
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolasK-source committed Mar 31, 2024
1 parent f6bf58e commit 8d97ba1
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,39 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Init submodules
run: git submodule init
- name: create tmp dir
run: mkdir tmp

- name: Update submodules
run: git submodule update
- name: update
run: |
sudo apt update
sudo apt upgrade -y
- name: install cxxopts
run: |
sudo apt install libcxxopts-dev
- name: install cxxshm
run: |
git clone https://github.com/NikolasK-source/cxxshm.git tmp/cxxshm
cd tmp/cxxshm
git checkout $(git tag | grep -P '^v\d+\.\d+\.\d+$' | sort | tail -1)
cmake -B build . -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCLANG_FORMAT=OFF -DCOMPILER_WARNINGS=OFF -DCLANG_TIDY=OFF
cmake --build build
sudo cmake --install build
cd -
- name: install cxxsemaphore
run: |
git clone https://github.com/NikolasK-source/cxxsemaphore.git tmp/cxxsemaphore
cd tmp/cxxsemaphore
git checkout $(git tag | grep -P '^v\d+\.\d+\.\d+$' | sort | tail -1)
cmake -B build . -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCLANG_FORMAT=OFF -DCOMPILER_WARNINGS=OFF -DCLANG_TIDY=OFF
cmake --build build
sudo cmake --install build
cd -
- 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 8d97ba1

Please sign in to comment.