mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 12:08:20 +00:00
Only pass CXXFLAGS to initial cmake
This commit is contained in:
parent
be29ef2691
commit
1b114b2565
21
.github/workflows/build.yaml
vendored
21
.github/workflows/build.yaml
vendored
|
@ -18,31 +18,27 @@ jobs:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
cmake-args: -G Ninja
|
cmake-args: -G Ninja
|
||||||
|
cmake-init-env: CXXFLAGS=-Werror
|
||||||
package-file: "*-linux_x86_64.tar.xz"
|
package-file: "*-linux_x86_64.tar.xz"
|
||||||
fancy: true
|
fancy: true
|
||||||
env:
|
|
||||||
CXXFLAGS: -Werror
|
|
||||||
- os: ubuntu-20.04
|
- os: ubuntu-20.04
|
||||||
cmake-path: /usr/bin/
|
cmake-path: /usr/bin/
|
||||||
cmake-args: -G Ninja -DTEST_MYSQL=ON
|
cmake-args: -G Ninja -DTEST_MYSQL=ON
|
||||||
|
cmake-init-env: CXXFLAGS=-Werror
|
||||||
package-file: "*-linux_x86_64.tar.xz"
|
package-file: "*-linux_x86_64.tar.xz"
|
||||||
fancy: false
|
fancy: false
|
||||||
env:
|
env:
|
||||||
CXXFLAGS: -Werror
|
|
||||||
GTEST_FILTER: -*SQLite*
|
GTEST_FILTER: -*SQLite*
|
||||||
- os: macOS-latest
|
- os: macOS-latest
|
||||||
cmake-args: -G Ninja
|
cmake-args: -G Ninja
|
||||||
|
cmake-init-env: CXXFLAGS=-Werror
|
||||||
package-file: "*-macos.dmg"
|
package-file: "*-macos.dmg"
|
||||||
fancy: false
|
fancy: false
|
||||||
env:
|
|
||||||
CXXFLAGS: -Werror
|
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
cmake-args: -A x64
|
cmake-args: -A x64
|
||||||
|
cmake-init-env: CXXFLAGS=/WX LDFLAGS=/WX
|
||||||
package-file: "*-win64.zip"
|
package-file: "*-win64.zip"
|
||||||
fancy: false
|
fancy: false
|
||||||
env:
|
|
||||||
CXXFLAGS: /WX
|
|
||||||
LDFLAGS: /WX
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -101,8 +97,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mkdir debug
|
mkdir debug
|
||||||
cd debug
|
cd debug
|
||||||
${{ matrix.cmake-path }}cmake --version
|
${{ matrix.cmake-path }}cmake -E env ${{ matrix.cmake-init-env }} ${{ matrix.cmake-path }}cmake ${{ matrix.cmake-args }} -DCMAKE_BUILD_TYPE=Debug -Werror=dev -DDOWNLOAD_GTEST=ON -DDEV=ON -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG=. ..
|
||||||
${{ matrix.cmake-path }}cmake ${{ matrix.cmake-args }} -DCMAKE_BUILD_TYPE=Debug -Werror=dev -DDOWNLOAD_GTEST=ON -DDEV=ON -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG=. ..
|
|
||||||
${{ matrix.cmake-path }}cmake --build . --config Debug --target everything ${{ matrix.build-args }}
|
${{ matrix.cmake-path }}cmake --build . --config Debug --target everything ${{ matrix.build-args }}
|
||||||
|
|
||||||
- name: Test debug
|
- name: Test debug
|
||||||
|
@ -122,7 +117,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mkdir release
|
mkdir release
|
||||||
cd release
|
cd release
|
||||||
${{ matrix.cmake-path }}cmake ${{ matrix.cmake-args }} -DCMAKE_BUILD_TYPE=Release -Werror=dev -DDOWNLOAD_GTEST=ON -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=. ..
|
${{ matrix.cmake-path }}cmake -E env ${{ matrix.cmake-init-env }} ${{ matrix.cmake-path }}cmake ${{ matrix.cmake-args }} -DCMAKE_BUILD_TYPE=Release -Werror=dev -DDOWNLOAD_GTEST=ON -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=. ..
|
||||||
${{ matrix.cmake-path }}cmake --build . --config Release --target everything ${{ matrix.build-args }}
|
${{ matrix.cmake-path }}cmake --build . --config Release --target everything ${{ matrix.build-args }}
|
||||||
|
|
||||||
- name: Test release
|
- name: Test release
|
||||||
|
@ -147,7 +142,7 @@ jobs:
|
||||||
CXXFLAGS="$CXXFLAGS --coverage"
|
CXXFLAGS="$CXXFLAGS --coverage"
|
||||||
LDFLAGS="$LDFLAGS --coverage"
|
LDFLAGS="$LDFLAGS --coverage"
|
||||||
${{ matrix.cmake-path }}cmake --version
|
${{ matrix.cmake-path }}cmake --version
|
||||||
${{ matrix.cmake-path }}cmake ${{ matrix.cmake-args }} -DHEADLESS_CLIENT=ON -DCMAKE_BUILD_TYPE=Debug -Werror=dev -DDOWNLOAD_GTEST=ON -DDEV=ON -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG=. ..
|
${{ matrix.cmake-path }}cmake -E env ${{ matrix.cmake-init-env }} ${{ matrix.cmake-path }}cmake ${{ matrix.cmake-args }} -DHEADLESS_CLIENT=ON -DCMAKE_BUILD_TYPE=Debug -Werror=dev -DDOWNLOAD_GTEST=ON -DDEV=ON -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG=. ..
|
||||||
${{ matrix.cmake-path }}cmake --build . --config Debug ${{ matrix.build-args }}
|
${{ matrix.cmake-path }}cmake --build . --config Debug ${{ matrix.build-args }}
|
||||||
|
|
||||||
- name: Test headless client (unit tests)
|
- name: Test headless client (unit tests)
|
||||||
|
@ -187,7 +182,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mkdir fancy
|
mkdir fancy
|
||||||
cd fancy
|
cd fancy
|
||||||
${{ matrix.cmake-path }}cmake ${{ matrix.cmake-args }} -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDOWNLOAD_GTEST=ON -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=. -DANTIBOT=ON -DWEBSOCKETS=ON ..
|
${{ matrix.cmake-path }}cmake -E env ${{ matrix.cmake-init-env }} ${{ matrix.cmake-path }}cmake ${{ matrix.cmake-args }} -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDOWNLOAD_GTEST=ON -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=. -DANTIBOT=ON -DWEBSOCKETS=ON ..
|
||||||
${{ matrix.cmake-path }}cmake --build . --config RelWithDebInfo --target everything ${{ matrix.build-args }}
|
${{ matrix.cmake-path }}cmake --build . --config RelWithDebInfo --target everything ${{ matrix.build-args }}
|
||||||
|
|
||||||
- name: Test fancy
|
- name: Test fancy
|
||||||
|
|
Loading…
Reference in a new issue