Skip to content

Commit 215a67f

Browse files
[cicd] shorten dependency script installation (#242)
1 parent 5bf8517 commit 215a67f

18 files changed

+122
-312
lines changed

.github/workflows/clang_tidy.yml

+16-30
Original file line numberDiff line numberDiff line change
@@ -18,39 +18,25 @@ jobs:
1818
chmod +x llvm.sh
1919
sudo ./llvm.sh 15 all
2020
( cd /tmp
21-
git clone --depth 1 https://gitlab.com/libeigen/eigen.git
22-
mkdir eigen/build
23-
( cd eigen/build
24-
cmake ..
25-
cmake --build . --parallel 4
26-
sudo cmake --install . ) )
21+
git clone --depth 1 "https://gitlab.com/libeigen/eigen.git"
22+
cmake -S "eigen" -B "eigen/build"
23+
cmake --build "eigen/build" --parallel 4
24+
sudo cmake --install "eigen/build" )
2725
( cd /tmp
28-
git clone --depth 1 https://github.com/fmtlib/fmt.git
29-
mkdir fmt/build
30-
( cd fmt/build
31-
cmake ..
32-
cmake --build . --parallel 4
33-
sudo cmake --install . ) )
26+
git clone --depth 1 "https://github.com/fmtlib/fmt.git"
27+
cmake -S "fmt" -B "fmt/build"
28+
cmake --build "fmt/build" --parallel 4
29+
sudo cmake --install "fmt/build" )
3430
( cd /tmp
35-
git clone --depth 1 https://github.com/kokkos/mdspan.git
36-
mkdir mdspan/build
37-
( cd mdspan/build
38-
cmake ..
39-
cmake --build . --parallel 4
40-
sudo cmake --install . ) )
31+
git clone --depth 1 "https://github.com/kokkos/mdspan.git"
32+
cmake -S "mdspan" -B "mdspan/build"
33+
cmake --build "mdspan/build" --parallel 4
34+
sudo cmake --install "mdspan/build" )
4135
( cd /tmp
42-
git clone --depth 1 https://github.com/kokkos/stdBLAS.git
43-
mkdir stdBLAS/build
44-
( cd stdBLAS/build
45-
cmake ..
46-
cmake --build . --parallel 4
47-
sudo cmake --install . ) )
48-
( cd /tmp
49-
git clone --depth 1 https://github.com/BobSteagall/wg21.git
50-
mkdir wg21/build
51-
( cd wg21/build
52-
cmake ..
53-
sudo cmake --install . ) )
36+
git clone --depth 1 "https://github.com/kokkos/stdBLAS.git"
37+
cmake -S "stdBLAS" -B "stdBLAS/build"
38+
cmake --build "stdBLAS/build" --parallel 4
39+
sudo cmake --install "stdBLAS/build" )
5440
- name: Verify
5541
run: |
5642
FILES=`find . -iname *.hpp`

.github/workflows/cppcheck.yml

+20-36
Original file line numberDiff line numberDiff line change
@@ -15,46 +15,30 @@ jobs:
1515
- name: Install
1616
run: |
1717
( cd /tmp
18-
git clone --depth 1 https://gitlab.com/libeigen/eigen.git
19-
mkdir eigen/build
20-
( cd eigen/build
21-
cmake ..
22-
cmake --build . --parallel 4
23-
sudo cmake --install . ) )
18+
git clone --depth 1 "https://gitlab.com/libeigen/eigen.git"
19+
cmake -S "eigen" -B "eigen/build"
20+
cmake --build "eigen/build" --parallel 4
21+
sudo cmake --install "eigen/build" )
2422
( cd /tmp
25-
git clone --depth 1 https://github.com/fmtlib/fmt.git
26-
mkdir fmt/build
27-
( cd fmt/build
28-
cmake ..
29-
cmake --build . --parallel 4
30-
sudo cmake --install . ) )
23+
git clone --depth 1 "https://github.com/fmtlib/fmt.git"
24+
cmake -S "fmt" -B "fmt/build"
25+
cmake --build "fmt/build" --parallel 4
26+
sudo cmake --install "fmt/build" )
3127
( cd /tmp
32-
git clone https://github.com/danmar/cppcheck.git
33-
mkdir cppcheck/build
34-
( cd cppcheck/build
35-
cmake ..
36-
cmake --build . --parallel 4
37-
sudo cmake --install . ) )
28+
git clone --depth 1 "https://github.com/kokkos/mdspan.git"
29+
cmake -S "mdspan" -B "mdspan/build"
30+
cmake --build "mdspan/build" --parallel 4
31+
sudo cmake --install "mdspan/build" )
3832
( cd /tmp
39-
git clone --depth 1 https://github.com/kokkos/mdspan.git
40-
mkdir mdspan/build
41-
( cd mdspan/build
42-
cmake ..
43-
cmake --build . --parallel 4
44-
sudo cmake --install . ) )
33+
git clone --depth 1 "https://github.com/kokkos/stdBLAS.git"
34+
cmake -S "stdBLAS" -B "stdBLAS/build"
35+
cmake --build "stdBLAS/build" --parallel 4
36+
sudo cmake --install "stdBLAS/build" )
4537
( cd /tmp
46-
git clone --depth 1 https://github.com/kokkos/stdBLAS.git
47-
mkdir stdBLAS/build
48-
( cd stdBLAS/build
49-
cmake ..
50-
cmake --build . --parallel 4
51-
sudo cmake --install . ) )
52-
( cd /tmp
53-
git clone --depth 1 https://github.com/BobSteagall/wg21.git
54-
mkdir wg21/build
55-
( cd wg21/build
56-
cmake ..
57-
sudo cmake --install . ) )
38+
git clone --depth 1 "https://github.com/danmar/cppcheck.git"
39+
cmake -S "cppcheck" -B "cppcheck/build"
40+
cmake --build "cppcheck/build" --parallel 4
41+
sudo cmake --install "cppcheck/build" )
5842
- name: Verify
5943
# unusedStructMember https://trac.cppcheck.net/ticket/10699
6044
run: |

.github/workflows/deploy_test_coverage_coveralls.yml

+16-30
Original file line numberDiff line numberDiff line change
@@ -18,39 +18,25 @@ jobs:
1818
run: |
1919
sudo apt install gcc-12 g++-12 lcov
2020
( cd /tmp
21-
git clone --depth 1 https://gitlab.com/libeigen/eigen.git
22-
mkdir eigen/build
23-
( cd eigen/build
24-
cmake ..
25-
cmake --build . --parallel 4
26-
sudo cmake --install . ) )
21+
git clone --depth 1 "https://gitlab.com/libeigen/eigen.git"
22+
cmake -S "eigen" -B "eigen/build"
23+
cmake --build "eigen/build" --parallel 4
24+
sudo cmake --install "eigen/build" )
2725
( cd /tmp
28-
git clone --depth 1 https://github.com/fmtlib/fmt.git
29-
mkdir fmt/build
30-
( cd fmt/build
31-
cmake ..
32-
cmake --build . --parallel 4
33-
sudo cmake --install . ) )
26+
git clone --depth 1 "https://github.com/fmtlib/fmt.git"
27+
cmake -S "fmt" -B "fmt/build"
28+
cmake --build "fmt/build" --parallel 4
29+
sudo cmake --install "fmt/build" )
3430
( cd /tmp
35-
git clone --depth 1 https://github.com/kokkos/mdspan.git
36-
mkdir mdspan/build
37-
( cd mdspan/build
38-
cmake ..
39-
cmake --build . --parallel 4
40-
sudo cmake --install . ) )
31+
git clone --depth 1 "https://github.com/kokkos/mdspan.git"
32+
cmake -S "mdspan" -B "mdspan/build"
33+
cmake --build "mdspan/build" --parallel 4
34+
sudo cmake --install "mdspan/build" )
4135
( cd /tmp
42-
git clone --depth 1 https://github.com/kokkos/stdBLAS.git
43-
mkdir stdBLAS/build
44-
( cd stdBLAS/build
45-
cmake ..
46-
cmake --build . --parallel 4
47-
sudo cmake --install . ) )
48-
( cd /tmp
49-
git clone --depth 1 https://github.com/BobSteagall/wg21.git
50-
mkdir wg21/build
51-
( cd wg21/build
52-
cmake ..
53-
sudo cmake --install . ) )
36+
git clone --depth 1 "https://github.com/kokkos/stdBLAS.git"
37+
cmake -S "stdBLAS" -B "stdBLAS/build"
38+
cmake --build "stdBLAS/build" --parallel 4
39+
sudo cmake --install "stdBLAS/build" )
5440
- name: Build
5541
run: |
5642
gcc-12 \

.github/workflows/install_ubuntu-22-04_clang.yml

-9
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v3.1.0
15-
- name: Install
16-
# Workaround to wg21 CMake installation issues.
17-
run: |
18-
( cd /tmp
19-
git clone --depth 1 https://github.com/BobSteagall/wg21.git
20-
mkdir wg21/build
21-
( cd wg21/build
22-
cmake ..
23-
sudo cmake --install . ) )
2415
- name: Build
2516
run: |
2617
export CC=clang

.github/workflows/install_ubuntu-22-04_gcc.yml

-9
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v3.1.0
15-
- name: Install
16-
# Workaround to wg21 CMake installation issues.
17-
run: |
18-
( cd /tmp
19-
git clone --depth 1 https://github.com/BobSteagall/wg21.git
20-
mkdir wg21/build
21-
( cd wg21/build
22-
cmake ..
23-
sudo cmake --install . ) )
2415
- name: Build
2516
run: |
2617
cmake -B "build" .

.github/workflows/install_windows-2019_msvc.yml

-8
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ jobs:
1414
uses: actions/checkout@v3.1.0
1515
- name: Install
1616
uses: ilammy/msvc-dev-cmd@v1.12.0
17-
- name: "Install Linear Algebra"
18-
# Workaround to wg21 CMake installation issues.
19-
run: |
20-
git clone --depth 1 https://github.com/BobSteagall/wg21.git
21-
mkdir wg21/build
22-
cd wg21/build
23-
cmake ..
24-
cmake --install .
2517
- name: Version
2618
run: cl
2719
- name: Build

.github/workflows/memory_valgrind.yml

+1-9
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,7 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v3.1.0
1515
- name: Install
16-
# Workaround to wg21 CMake installation issues.
17-
run: |
18-
sudo apt install valgrind
19-
( cd /tmp
20-
git clone --depth 1 https://github.com/BobSteagall/wg21.git
21-
mkdir wg21/build
22-
( cd wg21/build
23-
cmake ..
24-
sudo cmake --install . ) )
16+
run: sudo apt install valgrind
2517
- name: Build
2618
run: |
2719
cmake -B "build" .

.github/workflows/package_ubuntu-22-04_clang.yml

-9
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v3.1.0
15-
- name: Install
16-
# Workaround to wg21 CMake installation issues.
17-
run: |
18-
( cd /tmp
19-
git clone --depth 1 https://github.com/BobSteagall/wg21.git
20-
mkdir wg21/build
21-
( cd wg21/build
22-
cmake ..
23-
sudo cmake --install . ) )
2415
- name: Build
2516
run: |
2617
export CC=clang

.github/workflows/package_ubuntu-22-04_gcc.yml

-9
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v3.1.0
15-
- name: Install
16-
# Workaround to wg21 CMake installation issues.
17-
run: |
18-
( cd /tmp
19-
git clone --depth 1 https://github.com/BobSteagall/wg21.git
20-
mkdir wg21/build
21-
( cd wg21/build
22-
cmake ..
23-
sudo cmake --install . ) )
2415
- name: Build
2516
run: |
2617
cmake -B "build" .

.github/workflows/package_windows-2019_msvc.yml

-8
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ jobs:
1414
uses: actions/checkout@v3.1.0
1515
- name: Install
1616
uses: ilammy/msvc-dev-cmd@v1.12.0
17-
- name: "Install Linear Algebra"
18-
# Workaround to wg21 CMake installation issues.
19-
run: |
20-
git clone --depth 1 https://github.com/BobSteagall/wg21.git
21-
mkdir wg21/build
22-
cd wg21/build
23-
cmake ..
24-
cmake --install .
2517
- name: Version
2618
run: cl
2719
- name: Build

.github/workflows/sanitizer_address.yml

+17-32
Original file line numberDiff line numberDiff line change
@@ -16,44 +16,29 @@ jobs:
1616
run: sudo apt update
1717
- name: Install
1818
run: |
19-
sudo apt install gcc-12 g++-12
2019
( cd /tmp
21-
git clone --depth 1 https://gitlab.com/libeigen/eigen.git
22-
mkdir eigen/build
23-
( cd eigen/build
24-
cmake ..
25-
cmake --build . --parallel 4
26-
sudo cmake --install . ) )
20+
git clone --depth 1 "https://gitlab.com/libeigen/eigen.git"
21+
cmake -S "eigen" -B "eigen/build"
22+
cmake --build "eigen/build" --parallel 4
23+
sudo cmake --install "eigen/build" )
2724
( cd /tmp
28-
git clone --depth 1 https://github.com/fmtlib/fmt.git
29-
mkdir fmt/build
30-
( cd fmt/build
31-
cmake ..
32-
cmake --build . --parallel 4
33-
sudo cmake --install . ) )
25+
git clone --depth 1 "https://github.com/fmtlib/fmt.git"
26+
cmake -S "fmt" -B "fmt/build"
27+
cmake --build "fmt/build" --parallel 4
28+
sudo cmake --install "fmt/build" )
3429
( cd /tmp
35-
git clone --depth 1 https://github.com/kokkos/mdspan.git
36-
mkdir mdspan/build
37-
( cd mdspan/build
38-
cmake ..
39-
cmake --build . --parallel 4
40-
sudo cmake --install . ) )
30+
git clone --depth 1 "https://github.com/kokkos/mdspan.git"
31+
cmake -S "mdspan" -B "mdspan/build"
32+
cmake --build "mdspan/build" --parallel 4
33+
sudo cmake --install "mdspan/build" )
4134
( cd /tmp
42-
git clone --depth 1 https://github.com/kokkos/stdBLAS.git
43-
mkdir stdBLAS/build
44-
( cd stdBLAS/build
45-
cmake ..
46-
cmake --build . --parallel 4
47-
sudo cmake --install . ) )
48-
( cd /tmp
49-
git clone --depth 1 https://github.com/BobSteagall/wg21.git
50-
mkdir wg21/build
51-
( cd wg21/build
52-
cmake ..
53-
sudo cmake --install . ) )
35+
git clone --depth 1 "https://github.com/kokkos/stdBLAS.git"
36+
cmake -S "stdBLAS" -B "stdBLAS/build"
37+
cmake --build "stdBLAS/build" --parallel 4
38+
sudo cmake --install "stdBLAS/build" )
5439
- name: Build
5540
run: |
56-
gcc-12 \
41+
gcc \
5742
sample/*.cpp test/*.cpp source/*.cpp \
5843
-Iinclude -I/usr/local/include/eigen3 -Isupport \
5944
-std=c++23 -g -fsanitize=address -fsanitize-address-use-after-scope -fno-omit-frame-pointer -lstdc++ -lm -lfmt

0 commit comments

Comments
 (0)