mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 09:38:19 +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:
|
||||
- os: ubuntu-latest
|
||||
cmake-args: -G Ninja
|
||||
cmake-init-env: CXXFLAGS=-Werror
|
||||
package-file: "*-linux_x86_64.tar.xz"
|
||||
fancy: true
|
||||
env:
|
||||
CXXFLAGS: -Werror
|
||||
- os: ubuntu-20.04
|
||||
cmake-path: /usr/bin/
|
||||
cmake-args: -G Ninja -DTEST_MYSQL=ON
|
||||
cmake-init-env: CXXFLAGS=-Werror
|
||||
package-file: "*-linux_x86_64.tar.xz"
|
||||
fancy: false
|
||||
env:
|
||||
CXXFLAGS: -Werror
|
||||
GTEST_FILTER: -*SQLite*
|
||||
- os: macOS-latest
|
||||
cmake-args: -G Ninja
|
||||
cmake-init-env: CXXFLAGS=-Werror
|
||||
package-file: "*-macos.dmg"
|
||||
fancy: false
|
||||
env:
|
||||
CXXFLAGS: -Werror
|
||||
- os: windows-latest
|
||||
cmake-args: -A x64
|
||||
cmake-init-env: CXXFLAGS=/WX LDFLAGS=/WX
|
||||
package-file: "*-win64.zip"
|
||||
fancy: false
|
||||
env:
|
||||
CXXFLAGS: /WX
|
||||
LDFLAGS: /WX
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -101,8 +97,7 @@ jobs:
|
|||
run: |
|
||||
mkdir debug
|
||||
cd debug
|
||||
${{ matrix.cmake-path }}cmake --version
|
||||
${{ 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 -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 --build . --config Debug --target everything ${{ matrix.build-args }}
|
||||
|
||||
- name: Test debug
|
||||
|
@ -122,7 +117,7 @@ jobs:
|
|||
run: |
|
||||
mkdir 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 }}
|
||||
|
||||
- name: Test release
|
||||
|
@ -147,7 +142,7 @@ jobs:
|
|||
CXXFLAGS="$CXXFLAGS --coverage"
|
||||
LDFLAGS="$LDFLAGS --coverage"
|
||||
${{ 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 }}
|
||||
|
||||
- name: Test headless client (unit tests)
|
||||
|
@ -187,7 +182,7 @@ jobs:
|
|||
run: |
|
||||
mkdir 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 }}
|
||||
|
||||
- name: Test fancy
|
||||
|
|
Loading…
Reference in a new issue