Initialize member variables on declaration instead of contructor #3460
Workflow file for this run
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: macOS | |
on: [push] | |
env: | |
# TeamTalk unit test environment variables | |
VIDEODEVICEID: None | |
VERBOSE: 0 | |
GITHUBSKIP: 1 | |
jobs: | |
build: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v4 | |
with: | |
version: '6.5.*' | |
modules: 'qtmultimedia qtspeech' | |
cache-key-prefix: 'install-qt-action' | |
- name: Install Toolchain Dependencies | |
working-directory: ${{runner.workspace}}/TeamTalk5/Build | |
run: | | |
brew update | |
make depend-mac | |
- name: Print env | |
run: printenv | sort | |
- name: Init TeamTalk Library submodules | |
working-directory: ${{runner.workspace}}/TeamTalk5 | |
run: | | |
git submodule update --init --recursive | |
- name: Install TeamTalk Library Dependencies | |
run: brew install doxygen | |
- name: Build TeamTalk Library and Apps | |
working-directory: ${{runner.workspace}}/TeamTalk5 | |
shell: bash | |
run: | | |
make CMAKE_EXTRA="-DFEATURE_WEBRTC=OFF -DBUILD_TEAMTALK_LIBRARY_UNITTEST_CATCH2=ON -DBUILD_TEAMTALK_LIBRARY_UNITTEST_CATCH2_PERF=OFF -DBUILD_TEAMTALK_CLIENT_QTTEAMTALK_PRODUCT=ON -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install" -C Build mac | |
- name: Start TeamTalk Standard Server | |
working-directory: ${{runner.workspace}}/TeamTalk5 | |
run: | | |
cp Library/TeamTalkLib/test/tt5srv.xml_template Server/tt5srv.xml | |
Server/tt5srv -d -c Server/tt5srv.xml | |
- name: Start TeamTalk Pro Server (encrypted) | |
working-directory: ${{runner.workspace}}/TeamTalk5 | |
run: | | |
cp -f Library/TeamTalkLib/test/tt5prosrv.xml_template Server/tt5prosrv.xml | |
cp Library/TeamTalkLib/test/ttservercert.pem Server/ | |
cp Library/TeamTalkLib/test/ttserverkey.pem Server/ | |
cp Library/TeamTalkLib/test/ca.cer Server/ | |
Server/tt5prosrv -d -wd Server/ | |
- name: Catch unit-test | |
working-directory: ${{runner.workspace}}/TeamTalk5/Library/TeamTalkLib/test | |
run: catchtt.app/Contents/MacOS/catchtt --durations yes | |
- name: Stop TeamTalk Pro Server | |
run: killall tt5prosrv | |
- name: Stop TeamTalk Standard Server | |
run: killall tt5srv | |
- name: Run CMake Install Target | |
working-directory: ${{runner.workspace}}/TeamTalk5/Build/build-mac | |
run: cmake --build . --target install | |
- name: Upload TeamTalk Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: teamtalksdk-macos | |
path: ${{runner.workspace}}/install |