Skip to content

Commit cbb9a36

Browse files
authored
Add clang 21 to linux CI and update actions/checkout (#2869)
# Checklist - [x] The title and commit message(s) are descriptive. - [ ] Small commits made to fix your PR have been squashed to avoid history pollution. - [ ] Tests have been added for new features or bug fixes. - [ ] API of new functions and classes are documented. # Description Update the github action actions/checkout to v4 and add clang 21
1 parent 883ff34 commit cbb9a36

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.github/workflows/linux.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- {compiler: clang, version: '18', name: column-major, flags: -DDEFAULT_COLUMN_MAJOR=ON}
2323
- {compiler: clang, version: '19', name: assert, flags: -DXTENSOR_ENABLE_ASSERT=ON}
2424
- {compiler: clang, version: '20', name: column-major, flags: -DDEFAULT_COLUMN_MAJOR=ON}
25+
- {compiler: clang, version: '21', name: assert, flags: -DXTENSOR_ENABLE_ASSERT=ON}
2526
- {compiler: gcc, version: '11', name: openmp, flags: -DXTENSOR_USE_OPENMP=ON}
2627
- {compiler: gcc, version: '11', name: noexcept, flags: -DXTENSOR_DISABLE_EXCEPTIONS=ON}
2728
- {compiler: gcc, version: '12', name: xsimd, flags: -DXTENSOR_USE_XSIMD=ON}
@@ -44,15 +45,15 @@ jobs:
4445
chmod +x llvm.sh
4546
sudo ./llvm.sh ${{matrix.sys.version}}
4647
sudo apt-get install -y clang-tools-${{matrix.sys.version}}
47-
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${{matrix.sys.version}} 200
48-
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{matrix.sys.version}} 200
49-
sudo update-alternatives --install /usr/bin/clang-scan-deps clang-scan-deps /usr/bin/clang-scan-deps-${{matrix.sys.version}} 200
48+
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${{matrix.sys.version}} 200
49+
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{matrix.sys.version}} 200
50+
sudo update-alternatives --install /usr/bin/clang-scan-deps clang-scan-deps /usr/bin/clang-scan-deps-${{matrix.sys.version}} 200
5051
sudo update-alternatives --set clang /usr/bin/clang-${{matrix.sys.version}}
5152
sudo update-alternatives --set clang++ /usr/bin/clang++-${{matrix.sys.version}}
5253
sudo update-alternatives --set clang-scan-deps /usr/bin/clang-scan-deps-${{matrix.sys.version}}
5354
5455
- name: Checkout code
55-
uses: actions/checkout@v3
56+
uses: actions/checkout@v4
5657

5758
- name: Set conda environment
5859
uses: mamba-org/setup-micromamba@main
@@ -75,7 +76,7 @@ jobs:
7576

7677
- name: Build
7778
working-directory: build
78-
run: cmake --build . --target test_xtensor_lib --parallel 8
79+
run: cmake --build . --target test_xtensor_lib
7980

8081
- name: Run tests
8182
working-directory: build

.github/workflows/osx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
steps:
2626

2727
- name: Checkout code
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929

3030
- name: Set conda environment
3131
uses: mamba-org/setup-micromamba@main

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
echo "CXX=clang++" >> $GITHUB_ENV
3737
3838
- name: Checkout code
39-
uses: actions/checkout@v3
39+
uses: actions/checkout@v4
4040

4141
- name: Set conda environment
4242
uses: mamba-org/setup-micromamba@main

0 commit comments

Comments
 (0)