-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
157 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
branch: | ||
type: string | ||
required: false | ||
|
||
jobs: | ||
bvt-clang: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.branch }} | ||
|
||
- name: install clang | ||
run: | | ||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | ||
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-15 main" -y | ||
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main" -y | ||
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main" -y | ||
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main" -y | ||
sudo apt update | ||
sudo apt install -y clang-15 clang-16 clang-17 clang-18 | ||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/clang-15 1 | ||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/clang++-15 1 | ||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/clang-16 1 | ||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/clang++-16 1 | ||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/clang-17 1 | ||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/clang++-17 1 | ||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/clang-18 1 | ||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/clang++-18 1 | ||
- name: check compiler versions | ||
run: | | ||
clang++-15 --version | ||
clang++-16 --version | ||
clang++-17 --version | ||
clang++-18 --version | ||
- name: build and run test with clang 15 | ||
run: | | ||
sudo update-alternatives --set gcc /usr/bin/clang-15 | ||
sudo update-alternatives --set g++ /usr/bin/clang++-15 | ||
cmake . -B build-clang-15 | ||
cmake --build ./build-clang-15 -j8 | ||
cd ./build-clang-15 | ||
ctest -j8 | ||
- name: build and run test with clang 16 | ||
run: | | ||
sudo update-alternatives --set gcc /usr/bin/clang-16 | ||
sudo update-alternatives --set g++ /usr/bin/clang++-16 | ||
cmake . -B build-clang-16 | ||
cmake --build ./build-clang-16 -j8 | ||
cd ./build-clang-16 | ||
ctest -j8 | ||
- name: build and run test with clang 17 | ||
run: | | ||
sudo update-alternatives --set gcc /usr/bin/clang-17 | ||
sudo update-alternatives --set g++ /usr/bin/clang++-17 | ||
cmake . -B build-clang-17 | ||
cmake --build ./build-clang-17 -j8 | ||
cd ./build-clang-17 | ||
ctest -j8 | ||
- name: build and run test with clang 18 | ||
run: | | ||
sudo update-alternatives --set gcc /usr/bin/clang-18 | ||
sudo update-alternatives --set g++ /usr/bin/clang++-18 | ||
cmake . -B build-clang-18 | ||
cmake --build ./build-clang-18 -j8 | ||
cd ./build-clang-18 | ||
ctest -j8 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
branch: | ||
type: string | ||
required: false | ||
|
||
jobs: | ||
bvt-gcc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.branch }} | ||
|
||
- name: install gcc | ||
run: | | ||
sudo apt update | ||
sudo apt install -y gcc-11 g++-11 gcc-12 g++-12 gcc-13 g++-13 | ||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 1 | ||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 1 | ||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 1 | ||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 1 | ||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 1 | ||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 1 | ||
- name: check compiler versions | ||
run: | | ||
g++-11 --version | ||
g++-12 --version | ||
g++-13 --version | ||
- name: build and run test with gcc 11 | ||
run: | | ||
sudo update-alternatives --set gcc /usr/bin/gcc-11 | ||
sudo update-alternatives --set g++ /usr/bin/g++-11 | ||
cmake . -B build-gcc-11 | ||
cmake --build ./build-gcc-11 -j8 | ||
cd ./build-gcc-11 | ||
ctest -j8 | ||
- name: build and run test with gcc 12 | ||
run: | | ||
sudo update-alternatives --set gcc /usr/bin/gcc-12 | ||
sudo update-alternatives --set g++ /usr/bin/g++-12 | ||
cmake . -B build-gcc-12 | ||
cmake --build ./build-gcc-12 -j8 | ||
cd ./build-gcc-12 | ||
ctest -j8 | ||
- name: build and run test with gcc 13 | ||
run: | | ||
sudo update-alternatives --set gcc /usr/bin/gcc-13 | ||
sudo update-alternatives --set g++ /usr/bin/g++-13 | ||
cmake . -B build-gcc-13 | ||
cmake --build ./build-gcc-13 -j8 | ||
cd ./build-gcc-13 | ||
ctest -j8 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters