generated from CoolLibs/library-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔨 [CI] Fix after renaming open_link to open
- Loading branch information
1 parent
27aeb46
commit 3cdf439
Showing
1 changed file
with
131 additions
and
133 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 |
---|---|---|
@@ -1,228 +1,226 @@ | ||
name: Build and run tests | ||
|
||
on: | ||
on: | ||
push: | ||
branches: [ main ] | ||
branches: [main] | ||
|
||
pull_request: | ||
branches: [ main ] | ||
|
||
branches: [main] | ||
|
||
env: | ||
TARGET: open_link-tests # Should be the name of the target you created in your CMakeLists.txt and want to build and run | ||
|
||
TARGET: open-tests # Should be the name of the target you created in your CMakeLists.txt and want to build and run | ||
|
||
jobs: | ||
#----------------------------------------------------------------------------------------------- | ||
#----------------------------------------------------------------------------------------------- | ||
Windows_MSVC_Debug: | ||
name: Windows MSVC Debug | ||
runs-on: windows-2022 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure CMake | ||
run: cmake .\tests -B ${{github.workspace}}\build -DWARNINGS_AS_ERRORS_FOR_OPEN_LINK=ON -D CMAKE_C_COMPILER=cl -D CMAKE_CXX_COMPILER=cl | ||
- name: Configure CMake | ||
run: cmake .\tests -B ${{github.workspace}}\build -DWARNINGS_AS_ERRORS_FOR_OPEN=ON -D CMAKE_C_COMPILER=cl -D CMAKE_CXX_COMPILER=cl | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}\build --config Debug --target ${{env.TARGET}} | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}\build --config Debug --target ${{env.TARGET}} | ||
|
||
- name: Run | ||
run: ${{github.workspace}}\build\Debug\${{env.TARGET}} | ||
- name: Run | ||
run: ${{github.workspace}}\build\Debug\${{env.TARGET}} | ||
|
||
#----------------------------------------------------------------------------------------------- | ||
#----------------------------------------------------------------------------------------------- | ||
Windows_MSVC_Release: | ||
name: Windows MSVC Release | ||
runs-on: windows-2022 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure CMake | ||
run: cmake .\tests -B ${{github.workspace}}\build -DWARNINGS_AS_ERRORS_FOR_OPEN_LINK=ON -D CMAKE_C_COMPILER=cl -D CMAKE_CXX_COMPILER=cl | ||
- name: Configure CMake | ||
run: cmake .\tests -B ${{github.workspace}}\build -DWARNINGS_AS_ERRORS_FOR_OPEN=ON -D CMAKE_C_COMPILER=cl -D CMAKE_CXX_COMPILER=cl | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}\build --config Release --target ${{env.TARGET}} | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}\build --config Release --target ${{env.TARGET}} | ||
|
||
- name: Run | ||
run: ${{github.workspace}}\build\Release\${{env.TARGET}} | ||
#----------------------------------------------------------------------------------------------- | ||
- name: Run | ||
run: ${{github.workspace}}\build\Release\${{env.TARGET}} | ||
#----------------------------------------------------------------------------------------------- | ||
Windows_Clang_Debug: | ||
name: Windows Clang Debug | ||
runs-on: windows-2022 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure CMake | ||
run: cmake .\tests -B ${{github.workspace}}\build -DWARNINGS_AS_ERRORS_FOR_OPEN_LINK=ON -T ClangCL | ||
- name: Configure CMake | ||
run: cmake .\tests -B ${{github.workspace}}\build -DWARNINGS_AS_ERRORS_FOR_OPEN=ON -T ClangCL | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}\build --config Debug --target ${{env.TARGET}} | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}\build --config Debug --target ${{env.TARGET}} | ||
|
||
- name: Run | ||
run: ${{github.workspace}}\build\Debug\${{env.TARGET}} | ||
- name: Run | ||
run: ${{github.workspace}}\build\Debug\${{env.TARGET}} | ||
|
||
#----------------------------------------------------------------------------------------------- | ||
#----------------------------------------------------------------------------------------------- | ||
Windows_Clang_Release: | ||
name: Windows Clang Release | ||
runs-on: windows-2022 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure CMake | ||
run: cmake .\tests -B ${{github.workspace}}\build -DWARNINGS_AS_ERRORS_FOR_OPEN_LINK=ON -T ClangCL | ||
- name: Configure CMake | ||
run: cmake .\tests -B ${{github.workspace}}\build -DWARNINGS_AS_ERRORS_FOR_OPEN=ON -T ClangCL | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}\build --config Release --target ${{env.TARGET}} | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}\build --config Release --target ${{env.TARGET}} | ||
|
||
- name: Run | ||
run: ${{github.workspace}}\build\Release\${{env.TARGET}} | ||
#----------------------------------------------------------------------------------------------- | ||
Linux_GCC_Debug: | ||
- name: Run | ||
run: ${{github.workspace}}\build\Release\${{env.TARGET}} | ||
#----------------------------------------------------------------------------------------------- | ||
Linux_GCC_Debug: | ||
name: Linux GCC Debug | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure CMake | ||
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_OPEN=ON -D CMAKE_BUILD_TYPE=Debug -D CMAKE_C_COMPILER=gcc-11 -D CMAKE_CXX_COMPILER=g++-11 | ||
|
||
- name: Configure CMake | ||
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_OPEN_LINK=ON -D CMAKE_BUILD_TYPE=Debug -D CMAKE_C_COMPILER=gcc-11 -D CMAKE_CXX_COMPILER=g++-11 | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config Debug --target ${{env.TARGET}} | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config Debug --target ${{env.TARGET}} | ||
- name: Run | ||
run: ${{github.workspace}}/build/${{env.TARGET}} | ||
|
||
- name: Run | ||
run: ${{github.workspace}}/build/${{env.TARGET}} | ||
|
||
#----------------------------------------------------------------------------------------------- | ||
Linux_GCC_Release: | ||
#----------------------------------------------------------------------------------------------- | ||
Linux_GCC_Release: | ||
name: Linux GCC Release | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure CMake | ||
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_OPEN_LINK=ON -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=gcc-11 -D CMAKE_CXX_COMPILER=g++-11 | ||
- name: Configure CMake | ||
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_OPEN=ON -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=gcc-11 -D CMAKE_CXX_COMPILER=g++-11 | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config Release --target ${{env.TARGET}} | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config Release --target ${{env.TARGET}} | ||
|
||
- name: Run | ||
run: ${{github.workspace}}/build/${{env.TARGET}} | ||
- name: Run | ||
run: ${{github.workspace}}/build/${{env.TARGET}} | ||
|
||
#----------------------------------------------------------------------------------------------- | ||
#----------------------------------------------------------------------------------------------- | ||
Linux_Clang_Debug: | ||
name: Linux Clang Debug | ||
name: Linux Clang Debug | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure CMake | ||
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_OPEN_LINK=ON -D CMAKE_BUILD_TYPE=Debug -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ | ||
- name: Configure CMake | ||
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_OPEN=ON -D CMAKE_BUILD_TYPE=Debug -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config Debug --target ${{env.TARGET}} | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config Debug --target ${{env.TARGET}} | ||
|
||
- name: Run | ||
run: ${{github.workspace}}/build/${{env.TARGET}} | ||
- name: Run | ||
run: ${{github.workspace}}/build/${{env.TARGET}} | ||
|
||
#----------------------------------------------------------------------------------------------- | ||
Linux_Clang_Release: | ||
#----------------------------------------------------------------------------------------------- | ||
Linux_Clang_Release: | ||
name: Linux Clang Release | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure CMake | ||
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_OPEN_LINK=ON -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ | ||
- name: Configure CMake | ||
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_OPEN=ON -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=clang -D CMAKE_CXX_COMPILER=clang++ | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config Release --target ${{env.TARGET}} | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config Release --target ${{env.TARGET}} | ||
|
||
- name: Run | ||
run: ${{github.workspace}}/build/${{env.TARGET}} | ||
#----------------------------------------------------------------------------------------------- | ||
MacOS_GCC_Debug: | ||
- name: Run | ||
run: ${{github.workspace}}/build/${{env.TARGET}} | ||
|
||
#----------------------------------------------------------------------------------------------- | ||
MacOS_GCC_Debug: | ||
name: MacOS GCC Debug | ||
runs-on: macos-11 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure CMake | ||
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_OPEN=ON -D CMAKE_BUILD_TYPE=Debug -D CMAKE_C_COMPILER=gcc-11 -D CMAKE_CXX_COMPILER=g++-11 | ||
|
||
- name: Configure CMake | ||
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_OPEN_LINK=ON -D CMAKE_BUILD_TYPE=Debug -D CMAKE_C_COMPILER=gcc-11 -D CMAKE_CXX_COMPILER=g++-11 | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config Debug --target ${{env.TARGET}} | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config Debug --target ${{env.TARGET}} | ||
- name: Run | ||
run: ${{github.workspace}}/build/${{env.TARGET}} | ||
|
||
- name: Run | ||
run: ${{github.workspace}}/build/${{env.TARGET}} | ||
|
||
#----------------------------------------------------------------------------------------------- | ||
MacOS_GCC_Release: | ||
#----------------------------------------------------------------------------------------------- | ||
MacOS_GCC_Release: | ||
name: MacOS GCC Release | ||
runs-on: macos-11 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure CMake | ||
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_OPEN_LINK=ON -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=gcc-11 -D CMAKE_CXX_COMPILER=g++-11 | ||
- name: Configure CMake | ||
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_OPEN=ON -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=gcc-11 -D CMAKE_CXX_COMPILER=g++-11 | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config Release --target ${{env.TARGET}} | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config Release --target ${{env.TARGET}} | ||
|
||
- name: Run | ||
run: ${{github.workspace}}/build/${{env.TARGET}} | ||
- name: Run | ||
run: ${{github.workspace}}/build/${{env.TARGET}} | ||
|
||
#----------------------------------------------------------------------------------------------- | ||
#----------------------------------------------------------------------------------------------- | ||
MacOS_Clang_Debug: | ||
name: MacOS Clang Debug | ||
name: MacOS Clang Debug | ||
runs-on: macos-11 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure CMake | ||
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_OPEN_LINK=ON -D CMAKE_BUILD_TYPE=Debug -D CMAKE_C_COMPILER=$(brew --prefix llvm)/bin/clang -D CMAKE_CXX_COMPILER=$(brew --prefix llvm)/bin/clang++ | ||
- name: Configure CMake | ||
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_OPEN=ON -D CMAKE_BUILD_TYPE=Debug -D CMAKE_C_COMPILER=$(brew --prefix llvm)/bin/clang -D CMAKE_CXX_COMPILER=$(brew --prefix llvm)/bin/clang++ | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config Debug --target ${{env.TARGET}} | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config Debug --target ${{env.TARGET}} | ||
|
||
- name: Run | ||
run: ${{github.workspace}}/build/${{env.TARGET}} | ||
- name: Run | ||
run: ${{github.workspace}}/build/${{env.TARGET}} | ||
|
||
#----------------------------------------------------------------------------------------------- | ||
MacOS_Clang_Release: | ||
#----------------------------------------------------------------------------------------------- | ||
MacOS_Clang_Release: | ||
name: MacOS Clang Release | ||
runs-on: macos-11 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Configure CMake | ||
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_OPEN_LINK=ON -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=$(brew --prefix llvm)/bin/clang -D CMAKE_CXX_COMPILER=$(brew --prefix llvm)/bin/clang++ | ||
- name: Configure CMake | ||
run: cmake ./tests -B ${{github.workspace}}/build -DWARNINGS_AS_ERRORS_FOR_OPEN=ON -D CMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=$(brew --prefix llvm)/bin/clang -D CMAKE_CXX_COMPILER=$(brew --prefix llvm)/bin/clang++ | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config Release --target ${{env.TARGET}} | ||
- name: Build | ||
run: cmake --build ${{github.workspace}}/build --config Release --target ${{env.TARGET}} | ||
|
||
- name: Run | ||
run: ${{github.workspace}}/build/${{env.TARGET}} | ||
- name: Run | ||
run: ${{github.workspace}}/build/${{env.TARGET}} |