Skip to content

Commit 194e705

Browse files
committed
Update workflow to use current branch for dependencies.
1 parent b03027e commit 194e705

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
branches: master
55
pull_request:
66
types: [opened, synchronize, reopened]
7+
env:
8+
MO_BRANCH: ${{ github.head_ref || github.ref_name }}
79
jobs:
810
build:
911
runs-on: windows-2022
@@ -22,7 +24,7 @@ jobs:
2224
key: ${{ runner.OS }}-mob-cache-${{ hashFiles('mob/.git/refs/heads/master') }}
2325
restore-keys: |
2426
${{ runner.OS }}-mob-cache-
25-
- if: ${{ steps.cache-mob.outputs.cache-hit != 'true' }}
27+
- if: steps.cache-mob.outputs.cache-hit != 'true'
2628
name: Build mob
2729
run: .\mob\bootstrap.ps1
2830
- name: Install Qt
@@ -42,13 +44,13 @@ jobs:
4244
key: ${{ runner.OS }}-mo2-dependencies-${{ hashFiles('mob/.git/refs/heads/master') }}
4345
restore-keys: |
4446
${{ runner.OS }}-mo2-dependencies-
45-
- if: ${{ steps.cache-dependencies.outputs.cache-hit != 'true' }}
47+
- if: steps.cache-dependencies.outputs.cache-hit != 'true'
4648
name: Build dependencies with mob
4749
run: .\mob\mob.exe
4850
-l 4 -d .
4951
build
50-
7z zlib fmt gtest libbsarch libloot openssl libffi bzip2 python lz4 spdlog
51-
boost boost-di sip pyqt pybind11 ss licenses explorerpp usvfs
52+
7z zlib fmt gtest libbsarch libloot openssl libffi bzip2 lz4 spdlog
53+
boost ss licenses explorerpp usvfs
5254
- name: Build dependencies log
5355
uses: actions/upload-artifact@v3
5456
with:
@@ -57,13 +59,17 @@ jobs:
5759
mob.log
5860
# TODO: cache this?
5961
- name: Build cmake_common and uibase
60-
run: .\mob\mob.exe -l 4 -d . build
62+
run: .\mob\mob.exe -l 4 -d .
63+
-s task/mo_fallback=master -s task/mo_branch=${MO_BRANCH}
64+
build
6165
--ignore-uncommitted-changes
6266
--redownload --reextract --reconfigure --rebuild
6367
cmake_common uibase
6468
# TODO: cache this?
6569
- name: Build ModOrganizer dependencies
66-
run: .\mob\mob.exe -l 4 -d . build
70+
run: .\mob\mob.exe -l 4 -d .
71+
-s task/mo_fallback=master -s task/mo_branch=${MO_BRANCH}
72+
build
6773
--ignore-uncommitted-changes
6874
--redownload --reextract --reconfigure --rebuild
6975
githubpp bsatk esptk archive lootcli game_gamebryo

src/pluginmanager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ bool PluginManager::loadPlugins(const MOBase::PluginExtension& extension)
499499

500500
// find the best interface
501501
auto it = std::min_element(std::begin(objectGroup), std::end(objectGroup),
502-
[&](auto const& lhs, auto const& rhs) {
502+
[&](auto const& lhs, auto const& rhs) {
503503
return isBetterInterface(lhs, rhs);
504504
});
505505
IPlugin* master = qobject_cast<IPlugin*>(*it);

0 commit comments

Comments
 (0)