diff options
author | Rye <rye@lindenlab.com> | 2024-10-11 06:35:10 -0700 |
---|---|---|
committer | Rye <rye@lindenlab.com> | 2024-10-11 14:59:04 -0700 |
commit | a6a3a1771b81e551e2d7fcd68e9df0cec092b27b (patch) | |
tree | cc66d36873ee157429668cbaef6bfd5f47848dd1 | |
parent | bed3b57c52574ec593293c7397dd0da18e801fb4 (diff) |
Rework GHA matrix config to fix linux build
-rw-r--r-- | .github/workflows/build.yaml | 23 | ||||
-rw-r--r-- | indra/cmake/UI.cmake | 1 | ||||
-rw-r--r-- | indra/newview/rlvhelper.cpp | 4 |
3 files changed, 13 insertions, 15 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index fda6545e83..b35b98a641 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest outputs: release_run: ${{ steps.setvar.outputs.release_run }} - configurations: ${{ steps.setvar.outputs.configurations }} + config: ${{ steps.setvar.outputs.config }} bugsplat_db: ${{ steps.setvar.outputs.bugsplat_db }} env: # Build with a tag like "Second_Life#abcdef0" to generate a release page @@ -36,10 +36,10 @@ jobs: if [[ "$FROM_FORK" == "true" ]]; then # PR from fork; don't build with Bugsplat, proprietary libs - echo 'configurations=["ReleaseOS"]' >> $GITHUB_OUTPUT + echo 'config=ReleaseOS' >> $GITHUB_OUTPUT echo "bugsplat_db=" >> $GITHUB_OUTPUT else - echo 'configurations=["Release"]' >> $GITHUB_OUTPUT + echo 'config=Release' >> $GITHUB_OUTPUT echo "bugsplat_db=SecondLife_Viewer_2018" >> $GITHUB_OUTPUT fi build: @@ -48,7 +48,6 @@ jobs: strategy: matrix: runner: [windows-large, macos-14-xlarge] - configuration: ${{ fromJSON(needs.setup.outputs.configurations) }} experimental: [false] include: - runner: linux-large @@ -60,11 +59,11 @@ jobs: viewer_branch: ${{ steps.which-branch.outputs.branch }} relnotes: ${{ steps.which-branch.outputs.relnotes }} imagename: ${{ steps.build.outputs.imagename }} - configuration: ${{ matrix.configuration }} + config: ${{ needs.setup.outputs.config }} env: AUTOBUILD_ADDRSIZE: 64 AUTOBUILD_BUILD_ID: ${{ github.run_id }} - AUTOBUILD_CONFIGURATION: ${{ matrix.configuration }} + AUTOBUILD_CONFIGURATION: ${{ needs.setup.outputs.config }} # authorizes fetching private constituent packages AUTOBUILD_GITHUB_TOKEN: ${{ secrets.SHARED_AUTOBUILD_GITHUB_TOKEN }} AUTOBUILD_INSTALLABLE_CACHE: ${{ github.workspace }}/.autobuild-installables @@ -91,7 +90,7 @@ jobs: master_message_template_checkout: ${{ github.workspace }}/.master-message-template # Only set variants to the one configuration: don't let build.sh loop # over variants, let GitHub distribute variants over multiple hosts. - variants: ${{ matrix.configuration }} + variants: ${{ needs.setup.outputs.config }} steps: - name: Checkout code uses: actions/checkout@v4 @@ -124,9 +123,9 @@ jobs: uses: actions/cache@v4 with: path: .autobuild-installables - key: ${{ runner.os }}-64-${{ matrix.configuration }}-${{ hashFiles('autobuild.xml') }} + key: ${{ runner.os }}-64-${{ needs.setup.outputs.config }}-${{ hashFiles('autobuild.xml') }} restore-keys: | - ${{ runner.os }}-64-${{ matrix.configuration }}- + ${{ runner.os }}-64-${{ needs.setup.outputs.config }}- ${{ runner.os }}-64- - name: Install Linux dependencies @@ -321,7 +320,7 @@ jobs: - name: Upload physics package uses: actions/upload-artifact@v4 # should only be set for viewer-private - if: matrix.configuration == 'Release' && steps.build.outputs.physicstpv + if: needs.setup.outputs.config == 'Release' && steps.build.outputs.physicstpv with: name: "${{ steps.build.outputs.artifact }}-physics" # emitted by build.sh, zero or one lines @@ -395,7 +394,7 @@ jobs: BUGSPLAT_USER: ${{ secrets.BUGSPLAT_USER }} BUGSPLAT_PASS: ${{ secrets.BUGSPLAT_PASS }} needs: build - if: needs.build.outputs.configuration == 'Release' + if: needs.build.outputs.config == 'Release' runs-on: ubuntu-latest steps: - name: Download viewer exe @@ -430,7 +429,7 @@ jobs: BUGSPLAT_USER: ${{ secrets.BUGSPLAT_USER }} BUGSPLAT_PASS: ${{ secrets.BUGSPLAT_PASS }} needs: build - if: needs.build.outputs.configuration == 'Release' + if: needs.build.outputs.config == 'Release' runs-on: ubuntu-latest steps: - name: Download Mac Symbols diff --git a/indra/cmake/UI.cmake b/indra/cmake/UI.cmake index 23bd8018dd..595f394af4 100644 --- a/indra/cmake/UI.cmake +++ b/indra/cmake/UI.cmake @@ -6,7 +6,6 @@ include(GLIB) add_library( ll::uilibraries INTERFACE IMPORTED ) if (LINUX) - use_prebuilt_binary(fltk) target_compile_definitions(ll::uilibraries INTERFACE LL_X11=1 ) if( USE_CONAN ) diff --git a/indra/newview/rlvhelper.cpp b/indra/newview/rlvhelper.cpp index 7cb1473c8c..1dac297bf1 100644 --- a/indra/newview/rlvhelper.cpp +++ b/indra/newview/rlvhelper.cpp @@ -95,12 +95,12 @@ void BehaviourDictionary::addEntry(const BehaviourInfo* entry_p) } // Sanity check for duplicate entries -#ifndef LL_RELEASE_FOR_DOWNLOAD +#if LL_RELEASE_WITH_DEBUG_INFO || LL_DEBUG std::for_each(mBhvrInfoList.begin(), mBhvrInfoList.end(), [&entry_p](const BehaviourInfo* bhvr_info_p) { RLV_ASSERT_DBG((bhvr_info_p->getBehaviour() != entry_p->getBehaviour()) || ((bhvr_info_p->getParamTypeMask() & entry_p->getParamTypeMask()) == 0)); }); -#endif // LL_RELEASE_FOR_DOWNLOAD +#endif // LL_RELEASE_WITH_DEBUG_INFO || LL_DEBUG mBhvrInfoList.push_back(entry_p); } |