From e3081a971e5e71978015caa34bd0b21e9661b97e Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Tue, 10 Aug 2021 11:18:16 +0200 Subject: [PATCH] CMakeLists, Actions: Introduce env secret url --- .github/workflows/cmake-linux.yml | 4 +++- CMakeLists.txt | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake-linux.yml b/.github/workflows/cmake-linux.yml index a1d69d3..3cb9d29 100644 --- a/.github/workflows/cmake-linux.yml +++ b/.github/workflows/cmake-linux.yml @@ -27,7 +27,9 @@ jobs: - name: Configure CMake shell: bash working-directory: ${{github.workspace}}/build-linux - run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_CXX_COMPILER=g++-10 + env: + beammp_sentry_url: ${{ secrets.BEAMMP_SECRET_SENTRY_URL }} + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_CXX_COMPILER=g++-10 -DBEAMMP_SECRET_SENTRY_URL=$beammp_sentry_url - name: Build working-directory: ${{github.workspace}}/build-linux diff --git a/CMakeLists.txt b/CMakeLists.txt index e3e3b60..8ba627f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,9 @@ if (NOT DEFINED BEAMMP_SECRET_SENTRY_URL) message(WARNING "No sentry URL configured. Sentry logging is disabled for this build. \ This is not an error, and if you're building the BeamMP-Server yourself, this is expected and can be ignored.") set(BEAMMP_SECRET_SENTRY_URL "") +else() + string(LENGTH BEAMMP_SECRET_SENTRY_URL URL_LEN) + message(STATUS "Sentry URL is length ${URL_LEN}") endif() message(STATUS "Adding local source dependencies")