Merge pull request #95 from rtobar/remove-warnings #136
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
name: build_and_test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
windows: | |
runs-on: windows-2022 | |
timeout-minutes: 5 | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Windows VS2022 | |
run: | | |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && msbuild.exe projects/vs2019/ClangBuildAnalyzer.sln /p:Configuration=Debug /p:CL_MPCount=2 | |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && msbuild.exe projects/vs2019/ClangBuildAnalyzer.sln /p:Configuration=Release /p:CL_MPCount=2 | |
build\ClangBuildAnalyzer.exe --test tests | |
shell: cmd | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: ClangBuildAnalyzer-win.exe | |
path: build/ClangBuildAnalyzer.exe | |
mac: | |
runs-on: macos-14 | |
timeout-minutes: 5 | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v1 | |
- name: macOS Xcode 15 | |
run: | | |
xcodebuild -project projects/xcode/ClangBuildAnalyzer.xcodeproj -configuration Debug build | |
xcodebuild -project projects/xcode/ClangBuildAnalyzer.xcodeproj -configuration Release build | |
projects/xcode/build/Release/ClangBuildAnalyzer --test tests | |
mkdir buildCmake | |
cd buildCmake | |
cmake -DCMAKE_BUILD_TYPE=Release .. | |
make -j 2 | |
cd .. | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: ClangBuildAnalyzer-mac | |
path: projects/xcode/build/Release/ClangBuildAnalyzer | |
linux: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 5 | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Ubuntu22 Gcc11 | |
env: | |
CC: gcc-11 | |
CXX: g++-11 | |
run: | | |
mkdir buildCmake | |
cd buildCmake | |
cmake -DCMAKE_BUILD_TYPE=Release .. | |
make -j 2 | |
cd .. | |
buildCmake/ClangBuildAnalyzer --test tests | |
make -f projects/make/Makefile -j 2 | |
build/ClangBuildAnalyzer --test tests | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: ClangBuildAnalyzer-linux | |
path: build/ClangBuildAnalyzer | |