diff options
| author | Eric Engestrom <eric@engestrom.ch> | 2022-08-17 20:57:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-17 12:57:15 -0700 |
| commit | d65c6183c0d8b365aa182c3d9026ba85522531f2 (patch) | |
| tree | acffd9f5d57d56e88e3ba06d4e86aea1cfa460f7 /.github/workflows | |
| parent | cbc7e62f42bc0770fbd9da20ed39a5191778e2af (diff) | |
Move -Werror to CI (#2362)
* move -Werror to CI
This allows people with a more up-to-date system than you to still compile your project, while still allowing you to block on every warning in your own development.
* Fixes.
* More fix.
* more fix.
* Disable werror for gcc.
* Fix bash.
* fix
* fix yml
Co-authored-by: Yong He <yonghe@outlook.com>
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/linux.yml | 7 | ||||
| -rw-r--r-- | .github/workflows/macos.yml | 3 | ||||
| -rw-r--r-- | .github/workflows/windows.yml | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index e25d03908..ebc658792 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -21,10 +21,15 @@ jobs: submodules: 'true' fetch-depth: '0' - name: build - run: + run: | CC=${{matrix.compiler}} CONFIGURATION=${{matrix.configuration}} ARCH=${{matrix.platform}} + if [[ "$CC" == "clang" ]]; then + CFLAGS=-Werror + CPPFLAGS=-Werror + CXXFLAGS=-Werror + fi source ./github_build.sh - uses: actions/upload-artifact@v3 with: diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index e9e7a7dbf..a10467f06 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -27,6 +27,9 @@ jobs: CC=${{matrix.compiler}} CONFIGURATION=${{matrix.configuration}} ARCH=${{matrix.platform}} + CPPFLAGS=-Werror + CFLAGS=-Werror + CXXFLAGS=-Werror source ./github_macos_build.sh - name: Package id: package diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 994f15853..4fb9f0c58 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -28,7 +28,7 @@ jobs: .\premake.bat vs2017 --enable-embed-stdlib=true --arch=${{matrix.platform}} --deps=true --no-progress=true - name: build run: - MSBuild.exe slang.sln -v:m -m -property:Configuration=${{matrix.configuration}} -property:Platform=${{matrix.platform}} -property:WindowsTargetPlatformVersion=10.0.19041.0 + MSBuild.exe slang.sln -v:m -m -property:Configuration=${{matrix.configuration}} -property:Platform=${{matrix.platform}} -property:WindowsTargetPlatformVersion=10.0.19041.0 -warnAsError - uses: actions/upload-artifact@v3 with: name: slang-build-${{matrix.configuration}}-${{matrix.platform}}-${{matrix.compiler}} |
