diff options
Diffstat (limited to '.github/workflows/build_cmake.yml')
-rw-r--r-- | .github/workflows/build_cmake.yml | 62 |
1 files changed, 46 insertions, 16 deletions
diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index 3d1f7f3..555319e 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -12,27 +12,31 @@ jobs: config: - { name: "Ubuntu Latest GCC Release", - os: ubuntu-latest, + os: ubuntu-18.04, build_type: "Release", cc: "gcc", cxx: "g++", - build_gen: "Unix Makefiles" + build_gen: "Unix Makefiles", + cmake_extra_opts: "-Dbuild_search=YES -Dbuild_app=YES -Dbuild_parse=YES -Dbuild_xmlparser=YES" } - { name: "Ubuntu Latest GCC Debug", - os: ubuntu-latest, + os: ubuntu-18.04, build_type: "Debug", cc: "gcc", cxx: "g++", - build_gen: "Unix Makefiles" + build_gen: "Unix Makefiles", + cmake_extra_opts: "-Dbuild_search=YES -Dbuild_app=YES -Dbuild_parse=YES -Dbuild_xmlparser=YES" } - { name: "Ubuntu Latest Clang Release", - os: ubuntu-latest, + os: ubuntu-20.04, build_type: "Release", cc: "clang", cxx: "clang++", - build_gen: "Unix Makefiles" + build_gen: "Unix Makefiles", + cmake_extra_opts: "-Duse_libclang=YES -Dstatic_libclang=YES -Duse_libc++=NO" } - { name: "Ubuntu Latest Clang Debug", - os: ubuntu-latest, + os: ubuntu-20.04, build_type: "Debug", cc: "clang", cxx: "clang++", - build_gen: "Unix Makefiles" + build_gen: "Unix Makefiles", + cmake_extra_opts: "-Duse_libclang=YES -Dstatic_libclang=YES -Duse_libc++=NO" } - { name: "macOS Latest Release", @@ -84,8 +88,8 @@ jobs: if: matrix.config.os == 'windows-latest' - name: Install LaTeX (Linux) - run: sudo apt-get install texlive texlive-generic-recommended texlive-extra-utils texlive-latex-extra texlive-font-utils - if: matrix.config.os == 'ubuntu-latest' + run: sudo apt-get install texlive texlive-latex-recommended texlive-extra-utils texlive-latex-extra texlive-font-utils + if: startsWith(matrix.config.os,'ubuntu-') - name: Install LaTeX (MacOS) run: | @@ -93,6 +97,24 @@ jobs: echo "/Library/TeX/texbin/" >> $GITHUB_PATH if: matrix.config.os == 'macos-latest' + - name: Install libclang (Ubuntu 20.04) + run: | + sudo apt remove llvm-8 clang-8 libclang-common-8-dev clang-format-8 libllvm8 + #sudo apt remove llvm-10 llvm-10-dev llvm-10-tools llvm-10-runtime clang-10 clang-format-10 libclang-common-10-dev libclang-cpp10 libclang1-10 libllvm10 + sudo apt-get autoremove + sudo apt-get clean + #sudo apt install libclang-9-dev libclang-common-9-dev + sudo apt install libclang-10-dev libclang-common-10-dev + apt list --installed | egrep '(clang|llvm)' + ls -d /usr/lib/llvm-*/include/ + clang++ -v + if: matrix.config.os == 'ubuntu-20.04' + + - name: Install libxapian (Ubuntu 18.04) + run: | + sudo apt install libxapian-dev + if: matrix.config.os == 'ubuntu-18.04' + - name: Extract MikTex zip (Windows) shell: bash run: | @@ -130,7 +152,7 @@ jobs: - name: Install Ghostscript (Linux) run: sudo apt-get install ghostscript - if: matrix.config.os == 'ubuntu-latest' + if: startsWith(matrix.config.os,'ubuntu-') - name: Install Ghostscript (Windows) run: @@ -148,7 +170,7 @@ jobs: - name: Install xmllint (Linux) run: sudo apt-get install libxml2-utils - if: matrix.config.os == 'ubuntu-latest' + if: startsWith(matrix.config.os,'ubuntu-') - name: Install xmllint (MacOS) run: brew install libxml2 @@ -167,7 +189,7 @@ jobs: - name: Install Graphviz (Linux) run: sudo apt-get install graphviz - if: matrix.config.os == 'ubuntu-latest' + if: startsWith(matrix.config.os,'ubuntu-') - name: Install Graphviz (MacOS) run: brew install graphviz @@ -192,6 +214,9 @@ jobs: refreshenv if: matrix.config.os == 'windows-latest' + - name: Install Qt + uses: jurplel/install-qt-action@v2 + - name: Check tool versions (Linux / MacOS) shell: bash run: | @@ -255,9 +280,8 @@ jobs: -D CMAKE_BUILD_TYPE=${{ matrix.config.build_type }} -G "${{ matrix.config.build_gen }}" -Dbuild_doc=YES - -Dbuild_app=YES - -Dbuild_parse=YES - -Dbuild_xmlparser=YES + -Dbuild_wizard=YES + ${{ matrix.config.cmake_extra_opts }} RESULT_VARIABLE result ) if (NOT result EQUAL 0) @@ -283,6 +307,12 @@ jobs: message(FATAL_ERROR "Build failed") endif() + - name: Archive build artifacts + uses: actions/upload-artifact@v2 + with: + name: "${{ matrix.config.name }} build artifacts" + path: build/bin/ + - name: Run tests (Linux / MacOS) shell: cmake -P {0} run: | |