4
4
branches : master
5
5
pull_request :
6
6
types : [opened, synchronize, reopened]
7
+ env :
8
+ MO_BRANCH : ${{ github.head_ref || github.ref_name }}
7
9
jobs :
8
10
build :
9
11
runs-on : windows-2022
22
24
key : ${{ runner.OS }}-mob-cache-${{ hashFiles('mob/.git/refs/heads/master') }}
23
25
restore-keys : |
24
26
${{ runner.OS }}-mob-cache-
25
- - if : ${{ steps.cache-mob.outputs.cache-hit != 'true' }}
27
+ - if : steps.cache-mob.outputs.cache-hit != 'true'
26
28
name : Build mob
27
29
run : .\mob\bootstrap.ps1
28
30
- name : Install Qt
@@ -42,13 +44,13 @@ jobs:
42
44
key : ${{ runner.OS }}-mo2-dependencies-${{ hashFiles('mob/.git/refs/heads/master') }}
43
45
restore-keys : |
44
46
${{ runner.OS }}-mo2-dependencies-
45
- - if : ${{ steps.cache-dependencies.outputs.cache-hit != 'true' }}
47
+ - if : steps.cache-dependencies.outputs.cache-hit != 'true'
46
48
name : Build dependencies with mob
47
49
run : .\mob\mob.exe
48
50
-l 4 -d .
49
51
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
52
54
- name : Build dependencies log
53
55
uses : actions/upload-artifact@v3
54
56
with :
@@ -57,13 +59,17 @@ jobs:
57
59
mob.log
58
60
# TODO: cache this?
59
61
- 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
61
65
--ignore-uncommitted-changes
62
66
--redownload --reextract --reconfigure --rebuild
63
67
cmake_common uibase
64
68
# TODO: cache this?
65
69
- 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
67
73
--ignore-uncommitted-changes
68
74
--redownload --reextract --reconfigure --rebuild
69
75
githubpp bsatk esptk archive lootcli game_gamebryo
0 commit comments