From 81304f4bc85eb574e071eb896e0e31820558ca02 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Fri, 13 Sep 2024 11:28:43 -0400 Subject: fix --- .github/workflows/cmake.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to '.github/workflows') 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}} -- cgit v1.2.3