diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-09-13 15:28:43 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-09-13 15:28:43 +0000 |
commit | 81304f4bc85eb574e071eb896e0e31820558ca02 (patch) | |
tree | e0ab73ef6b72c3a290aa4b4d175127fdc833b0be /.github/workflows | |
parent | github actions fix attempt (diff) | |
download | cgrep-81304f4bc85eb574e071eb896e0e31820558ca02.tar.gz cgrep-81304f4bc85eb574e071eb896e0e31820558ca02.zip |
fix
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/cmake.yml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 6e515b5..db2a242 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -15,11 +15,17 @@ jobs: steps: - uses: actions/checkout@v3 - name: Get LLVM - run: sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && sudo apt-get update -y && wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh ${{matrix.version}} -n jammy && sudo apt-get install -y clang-${{matrix.version}} llvm-${{matrix.version}}-dev libclang-common-${{matrix.version}}-dev libclang-${{matrix.version}}-dev && git submodule init && git submodule update + run: + - apt install -y wget cmake git lsb-release software-properties-common gpg + - wget https://apt.llvm.org/llvm.sh + - chmod +x llvm.sh + - sudo ./llvm.sh ${{matrix.version}} + - sudo apt-get install -y clang-${{matrix.version}} llvm-${{matrix.version}}-dev libclang-common-${{matrix.version}}-dev libclang-${{matrix.version}}-dev + - git submodule init && git submodule update - name: Configure CMake - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_COMPILER=clang++-${{matrix.version}} -DUSE_MONOLITH_LIBTOOLING=ON -DLLVM_PACKAGE_VERSION=${{matrix.version}} + run: cmake -B ${{github.workspace}}/build -DCMAKE_CXX_COMPILER=clang++-${{matrix.version}} -DLLVM_CONF=llvm-config-${{matrix.version}} -DUSE_MONOLITH_LIBTOOLING=ON - name: Build - run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + run: cmake --build ${{github.workspace}}/build - name: Test working-directory: ${{github.workspace}}/build run: ctest -C ${{env.BUILD_TYPE}} |