forked from TanninOne/modorganizer-installer_bundle
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
119 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,43 @@ | ||
name: Build Installer Bundle Plugin | ||
name: Build Installer Bundle Library | ||
|
||
on: | ||
push: | ||
branches: master | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
env: | ||
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Build Installer Bundle Plugin | ||
uses: ModOrganizer2/build-with-mob-action@master | ||
# https://learn.microsoft.com/en-us/vcpkg/consume/binary-caching-github-actions-cache | ||
- name: Export GitHub Actions cache environment variables | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | ||
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | ||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v3 | ||
with: | ||
mo2-dependencies: cmake_common uibase | ||
setup-python: false | ||
version: 6.7.0 | ||
modules: | ||
cache: true | ||
|
||
- uses: actions/checkout@v4 | ||
- uses: lukka/run-vcpkg@v11 | ||
|
||
- name: Configure Installer Bundle | ||
shell: pwsh | ||
run: | | ||
cmake --preset vs2022-windows-standalone ` | ||
"-DCMAKE_PREFIX_PATH=${env:QT_ROOT_DIR}\msvc2019_64" ` | ||
"-DCMAKE_INSTALL_PREFIX=install" | ||
- name: Build Installer Bundle | ||
run: cmake --build vsbuild --config RelWithDebInfo --target INSTALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"configurePresets": [ | ||
{ | ||
"errors": { | ||
"deprecated": true | ||
}, | ||
"hidden": true, | ||
"name": "cmake-dev", | ||
"warnings": { | ||
"deprecated": true, | ||
"dev": true | ||
} | ||
}, | ||
{ | ||
"cacheVariables": { | ||
"VCPKG_MANIFEST_NO_DEFAULT_FEATURES": { | ||
"type": "BOOL", | ||
"value": "ON" | ||
} | ||
}, | ||
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake", | ||
"hidden": true, | ||
"name": "vcpkg" | ||
}, | ||
{ | ||
"hidden": true, | ||
"inherits": ["vcpkg"], | ||
"name": "vcpkg-dev" | ||
}, | ||
{ | ||
"binaryDir": "${sourceDir}/vsbuild", | ||
"architecture": { | ||
"strategy": "set", | ||
"value": "x64" | ||
}, | ||
"cacheVariables": { | ||
"CMAKE_CXX_FLAGS": "/EHsc /MP /W4", | ||
"VCPKG_TARGET_TRIPLET": { | ||
"type": "STRING", | ||
"value": "x64-windows-static-md" | ||
} | ||
}, | ||
"generator": "Visual Studio 17 2022", | ||
"inherits": ["cmake-dev", "vcpkg-dev"], | ||
"name": "vs2022-windows", | ||
"toolset": "v143" | ||
}, | ||
{ | ||
"cacheVariables": { | ||
"VCPKG_MANIFEST_FEATURES": { | ||
"type": "STRING", | ||
"value": "standalone" | ||
} | ||
}, | ||
"inherits": "vs2022-windows", | ||
"name": "vs2022-windows-standalone" | ||
} | ||
], | ||
"version": 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
|
||
find_package(mo2-cmake CONFIG REQUIRED) | ||
find_package(mo2-uibase CONFIG REQUIRED) | ||
|
||
add_library(installer_bundle SHARED) | ||
mo2_configure_plugin(installer_bundle WARNINGS OFF) | ||
mo2_install_target(installer_bundle) | ||
target_link_libraries(installer_bundle PRIVATE mo2::uibase) | ||
mo2_install_plugin(installer_bundle) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"dependencies": ["mo2-cmake"], | ||
"features": { | ||
"standalone": { | ||
"description": "Build Standalone.", | ||
"dependencies": ["mo2-uibase"] | ||
} | ||
}, | ||
"vcpkg-configuration": { | ||
"default-registry": { | ||
"kind": "git", | ||
"repository": "https://github.com/ModOrganizer2/vcpkg-registry", | ||
"baseline": "d194ec4e14052784518d5e9f1c5ccac16de49c2c" | ||
} | ||
} | ||
} |