Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/autotools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:

runs-on: ubuntu-latest
name: Ubuntu
env:
CFLAGS: "-Werror"
CXXFLAGS: "-Werror"
Comment thread
veprbl marked this conversation as resolved.

steps:
- uses: actions/checkout@v2
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
cmake_options:
-DPA_USE_OSS=ON
-DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake
werror_flags: "-Werror"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be done in CMakeLists.txt for ${CMAKE_BUILD_TYPE} STREQUAL "Debug" and change the cmake_build_type variable in this GH Actions workflow file to Debug.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI builds should use -Werror for both debug and release builds.

- name: Ubuntu MinGW
os: ubuntu-latest
install_dir: ~/portaudio
Expand All @@ -29,6 +30,7 @@ jobs:
-DPA_USE_ASIO=ON
-DASIO_SDK_ZIP_PATH=asiosdk.zip
-DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/i686-w64-mingw32.cmake
werror_flags: "-Werror"
- name: Windows MSVC
os: windows-latest
install_dir: C:\portaudio
Expand All @@ -42,6 +44,7 @@ jobs:
-DPA_USE_ASIO=ON
-DASIO_SDK_ZIP_PATH="asiosdk.zip"
-DCMAKE_TOOLCHAIN_FILE=D:\a\portaudio\portaudio\vcpkg\scripts\buildsystems\vcpkg.cmake
werror_flags: "" # TODO: use "/WX"
- name: Windows MinGW
os: windows-latest
install_dir: C:\portaudio
Expand All @@ -55,6 +58,7 @@ jobs:
-DPA_USE_ASIO=ON
-DASIO_SDK_ZIP_PATH="asiosdk.zip"
-DCMAKE_TOOLCHAIN_FILE=D:\a\portaudio\portaudio\vcpkg\scripts\buildsystems\vcpkg.cmake
werror_flags: "-Werror"
- name: macOS Clang
os: macOS-latest
install_dir: ~/portaudio
Expand All @@ -63,6 +67,7 @@ jobs:
cmake_options:
-DCMAKE_FRAMEWORK=OFF
-DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake
werror_flags: "-Werror"
- name: macOS Clang framework
os: macOS-latest
install_dir: ~/portaudio
Expand All @@ -71,11 +76,14 @@ jobs:
cmake_options:
-DCMAKE_FRAMEWORK=ON
-DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake
werror_flags: "-Werror"

runs-on: ${{ matrix.os }}
name: ${{ matrix.name }}
env:
cmake_build_type: RelWithDebInfo
CFLAGS: ${{ matrix.werror_flags }}
CXXFLAGS: ${{ matrix.werror_flags }}
steps:
- name: checkout Git repository
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -15866,7 +15866,7 @@ case "${host_os}" in
$as_echo "#define PA_USE_COREAUDIO 1" >>confdefs.h


CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix -Wno-deprecated -Werror"
CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix -Wno-deprecated"
LIBS="-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework CoreFoundation -framework CoreServices"

if test "x$enable_mac_universal" = "xyes" ; then
Expand Down
2 changes: 1 addition & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ case "${host_os}" in

AC_DEFINE(PA_USE_COREAUDIO,1)

CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix -Wno-deprecated -Werror"
CFLAGS="$CFLAGS -I\$(top_srcdir)/src/os/unix -Wno-deprecated"
LIBS="-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework CoreFoundation -framework CoreServices"

if test "x$enable_mac_universal" = "xyes" ; then
Expand Down