Skip to content

Commit

Permalink
ci: add flang
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed May 21, 2024
1 parent 6ec0523 commit 92cdc13
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/oneapi-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 92cdc13

Please sign in to comment.