Skip to content

Commit

Permalink
Update workflow to use current branch for dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed Jul 9, 2023
1 parent b03027e commit 194e705
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
branches: master
pull_request:
types: [opened, synchronize, reopened]
env:
MO_BRANCH: ${{ github.head_ref || github.ref_name }}
jobs:
build:
runs-on: windows-2022
Expand All @@ -22,7 +24,7 @@ jobs:
key: ${{ runner.OS }}-mob-cache-${{ hashFiles('mob/.git/refs/heads/master') }}
restore-keys: |
${{ runner.OS }}-mob-cache-
- if: ${{ steps.cache-mob.outputs.cache-hit != 'true' }}
- if: steps.cache-mob.outputs.cache-hit != 'true'
name: Build mob
run: .\mob\bootstrap.ps1
- name: Install Qt
Expand All @@ -42,13 +44,13 @@ jobs:
key: ${{ runner.OS }}-mo2-dependencies-${{ hashFiles('mob/.git/refs/heads/master') }}
restore-keys: |
${{ runner.OS }}-mo2-dependencies-
- if: ${{ steps.cache-dependencies.outputs.cache-hit != 'true' }}
- if: steps.cache-dependencies.outputs.cache-hit != 'true'
name: Build dependencies with mob
run: .\mob\mob.exe
-l 4 -d .
build
7z zlib fmt gtest libbsarch libloot openssl libffi bzip2 python lz4 spdlog
boost boost-di sip pyqt pybind11 ss licenses explorerpp usvfs
7z zlib fmt gtest libbsarch libloot openssl libffi bzip2 lz4 spdlog
boost ss licenses explorerpp usvfs
- name: Build dependencies log
uses: actions/upload-artifact@v3
with:
Expand All @@ -57,13 +59,17 @@ jobs:
mob.log
# TODO: cache this?
- name: Build cmake_common and uibase
run: .\mob\mob.exe -l 4 -d . build
run: .\mob\mob.exe -l 4 -d .
-s task/mo_fallback=master -s task/mo_branch=${MO_BRANCH}
build
--ignore-uncommitted-changes
--redownload --reextract --reconfigure --rebuild
cmake_common uibase
# TODO: cache this?
- name: Build ModOrganizer dependencies
run: .\mob\mob.exe -l 4 -d . build
run: .\mob\mob.exe -l 4 -d .
-s task/mo_fallback=master -s task/mo_branch=${MO_BRANCH}
build
--ignore-uncommitted-changes
--redownload --reextract --reconfigure --rebuild
githubpp bsatk esptk archive lootcli game_gamebryo
Expand Down
2 changes: 1 addition & 1 deletion src/pluginmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ bool PluginManager::loadPlugins(const MOBase::PluginExtension& extension)

// find the best interface
auto it = std::min_element(std::begin(objectGroup), std::end(objectGroup),
[&](auto const& lhs, auto const& rhs) {
[&](auto const& lhs, auto const& rhs) {
return isBetterInterface(lhs, rhs);
});
IPlugin* master = qobject_cast<IPlugin*>(*it);
Expand Down

0 comments on commit 194e705

Please sign in to comment.