From 92cdc13dc2511cba41b5a6198300d498e4bfc664 Mon Sep 17 00:00:00 2001 From: scivision Date: Tue, 21 May 2024 14:42:57 -0400 Subject: [PATCH] ci: add flang --- .github/workflows/cmake.yml | 24 ++++++++++++++++++++++++ .github/workflows/oneapi-linux.yml | 4 +++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index d5d81db..e61aac3 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -3,6 +3,8 @@ name: cmake env: CTEST_NO_TESTS_ACTION: error HOMEBREW_NO_INSTALL_CLEANUP: 1 + CTEST_PARALLEL_LEVEL: 0 + CMAKE_BUILD_PARALLEL_LEVEL: 4 on: push: @@ -67,6 +69,28 @@ jobs: - run: cmake --workflow --preset release + linux-flang: + runs-on: ubuntu-24.04 + timeout-minutes: 15 + + strategy: + matrix: + clang-version: [18] + + env: + CC: clang-${{ matrix.clang-version }} + CXX: clang++-${{ matrix.clang-version }} + FC: flang-new + + steps: + - uses: actions/checkout@v4 + + - name: install Flang + run: sudo apt install --no-install-recommends flang + + - run: cmake --workflow --preset default + + windows: runs-on: windows-latest timeout-minutes: 10 diff --git a/.github/workflows/oneapi-linux.yml b/.github/workflows/oneapi-linux.yml index 553cd78..237ec77 100644 --- a/.github/workflows/oneapi-linux.yml +++ b/.github/workflows/oneapi-linux.yml @@ -4,6 +4,7 @@ env: CTEST_NO_TESTS_ACTION: error CMAKE_BUILD_PARALLEL_LEVEL: 4 CMAKE_BUILD_TYPE: Release + CTEST_PARALLEL_LEVEL: 0 on: push: @@ -23,7 +24,8 @@ jobs: strategy: matrix: - os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest] +# Windows takes tens of minutes to install oneAPI runs-on: ${{ matrix.os }} timeout-minutes: 10