Skip to content

Commit

Permalink
Switch to generic mob action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 committed Jul 10, 2023
1 parent 0dd04fb commit 92689d1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 64 deletions.
72 changes: 9 additions & 63 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,74 +1,20 @@
name: Build ModOrganizer 2

on:
push:
branches: master
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
runs-on: windows-2022
steps:
- name: Checkout mob
uses: actions/checkout@master
- name: Build ModOrganizer 2
uses: ModOrganizer2/build-with-mob-action@master
with:
repository: modorganizer2/mob
path: ./mob
- name: Cache mob
id: cache-mob
uses: actions/cache@v3
with:
path: |
./mob/mob.exe
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' }}
name: Build mob
run: .\mob\bootstrap.ps1
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: 6.5.1
modules: qtpositioning qtwebchannel qtwebengine qtwebsockets
cache: true
- name: Cache dependencies
id: cache-dependencies
uses: actions/cache@v3
with:
# TODO: finer cache
path: |
./install
./build
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' }}
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
- name: Build dependencies log
uses: actions/upload-artifact@v3
with:
name: build-dependencies-log
path: |
mob.log
# TODO: cache this?
- name: Build cmake_common and uibase
run: .\mob\mob.exe -l 4 -d . 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
--ignore-uncommitted-changes
--redownload --reextract --reconfigure --rebuild
githubpp bsatk esptk archive lootcli game_gamebryo
- uses: actions/checkout@v3
with:
path: ./build/modorganizer_super/modorganizer
- name: Build ModOrganizer
run: .\mob\mob.exe -l 5 -d . build --no-fetch-task --no-pull modorganizer
qt-modules: qtpositioning qtwebchannel qtwebengine qtwebsockets
mo2-third-parties:
7z zlib fmt gtest libbsarch libloot openssl libffi bzip2 python lz4 spdlog
boost boost-di sip pyqt pybind11 ss licenses explorerpp usvfs
mo2-dependencies: cmake_common uibase githubpp bsatk esptk archive lootcli game_gamebryo
7 changes: 6 additions & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Lint ModOrganizer 2
on: [push]

on:
push:
pull_request:
types: [opened, synchronize, reopened]

jobs:
lint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 92689d1

Please sign in to comment.