-
Notifications
You must be signed in to change notification settings - Fork 27
chore: Adds the HEMTT build system to TMF #442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
e54a970
work
headswe 0385e74
more
headswe 168070d
Added addon.toml
headswe d74c010
git ignore
headswe 2efed17
Tweaked pipelines
headswe e00507a
tweaked
headswe f99a99c
tweaks
headswe 1778f55
remove tabs
headswe b0f02ea
use hemtt for building addon
headswe 8e9052c
fixes include name
headswe 4d24fda
tweak actions
headswe 2afb18c
Update build_pbo.yml
headswe bb7033e
rename flow to lint
headswe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,26 +1,18 @@ | ||
| name: Build addon | ||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| - dev | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| - dev | ||
| name: Build | ||
|
|
||
| on: [push] | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: windows-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| name: Checkout repository | ||
| - name: Building pbos | ||
| run: ./Build.exe | ||
| - uses: actions/upload-artifact@v2 | ||
| name: Upload artifacts | ||
| with: | ||
| name: build | ||
| path: | | ||
| addons/*.pbo | ||
| mod.cpp | ||
| README.md | ||
| build: | ||
| runs-on: windows-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Setup HEMTT | ||
| uses: arma-actions/hemtt@v1 | ||
| - name: Run HEMTT build | ||
| run: hemtt release | ||
| - name: Upload Release | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: tmf | ||
| path: releases/tmf-latest.zip |
This file contains hidden or 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 +1,3 @@ | ||
| /addons/*.pbo | ||
| .vscode/* | ||
| .hemttout/* | ||
| releases |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,25 @@ | ||
| [sqf.banned_commands] | ||
| options.ignore = [ | ||
| "addPublicVariableEventHandler", # Alt syntax is broken, we are using main syntax | ||
| "createSoundSource", # Greatly attenuated when in first person and in a vehicle | ||
| "getPersonUsedDLCs", # Only used for editor testing | ||
| ] | ||
|
|
||
| [sqf.var_all_caps] | ||
| options.ignore = [ | ||
| "SLX_*", "ACE_*" | ||
| ] | ||
|
|
||
| [sqf.undefined] | ||
| enabled = true | ||
| options.check_orphan_code = true | ||
|
|
||
| [sqf.unused] | ||
| #enabled = true #many false positives without DEBUG_MODE_FULL | ||
| options.check_params = false | ||
|
|
||
| [sqf.shadowed] | ||
| enabled = false | ||
|
|
||
| [sqf.not_private] | ||
| enabled = true |
This file contains hidden or 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,4 @@ | ||
| name = "TMF" | ||
| prefix = "tmf" | ||
| [version] | ||
| path = "addons/main/script_mod.hpp" |
This file contains hidden or 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,20 @@ | ||
| ################################################################ | ||
| ### This file contains a list of paths to ignore changes of. ### | ||
| ### The paths are relative to the workspace root. ### | ||
| ### The paths are separated by newlines. ### | ||
| ### Note that this is not behaving like a .gitignore file, ### | ||
| ### and you cannot invert some paths by prefixing them with ### | ||
| ### a ! or use wildcards. ### | ||
| ### Any subfolder of a path is also ignored. ### | ||
| ### Important: No leading or trailing whitespace is allowed ### | ||
| ### on any line. ### | ||
| ### Changing anything in this file will have no effect until ### | ||
| ### the language server is restarted. ### | ||
| ### Keep in mind that already analyzed files will not be ### | ||
| ### re-analyzed OR removed from the database. ### | ||
| ################################################################ | ||
| .vscode\sqfvm-lsp | ||
| .vscode | ||
| .github | ||
| .git | ||
| .hemtt |
File renamed without changes.
This file contains hidden or 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,5 @@ | ||
| #include "script_component.hpp" | ||
|
|
||
| #include "XEH_PREP.sqf" | ||
| #include "XEH_PREP.hpp" | ||
|
|
||
| GVAR(showSpectatorRadios) = false; |
This file contains hidden or 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,3 +1,3 @@ | ||
| #include "script_component.hpp" | ||
|
|
||
| #include "XEH_PREP.sqf" | ||
| #include "XEH_PREP.hpp" |
This file contains hidden or 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,5 @@ | ||
| [rapify] | ||
| enabled = false # Default: true | ||
| exclude = [ | ||
| "Cfg3DEN.hpp" | ||
| ] |
This file contains hidden or 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 hidden or 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
File renamed without changes.
This file contains hidden or 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 hidden or 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,5 @@ | ||
| [rapify] | ||
| enabled = false # Default: true | ||
| exclude = [ | ||
| "adminMenu.hpp" | ||
| ] |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,3 +1,4 @@ | ||
| #include "\x\tmf\addons\adminmenu\script_component.hpp" | ||
| private _fnc_settings = { | ||
| [ | ||
| QGVAR(printToChat), | ||
|
|
||
File renamed without changes.
This file contains hidden or 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,3 +1,3 @@ | ||
| #include "script_component.hpp" | ||
|
|
||
| #include "XEH_PREP.sqf" | ||
| #include "XEH_PREP.hpp" |
This file contains hidden or 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,3 +1,3 @@ | ||
| #include "script_component.hpp" | ||
|
|
||
| #include "XEH_PREP.sqf" | ||
| #include "XEH_PREP.hpp" |
This file contains hidden or 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 hidden or 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 hidden or 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
File renamed without changes.
This file contains hidden or 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 hidden or 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 hidden or 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,5 @@ | ||
| [rapify] | ||
| enabled = false # Default: true | ||
| exclude = [ | ||
| "TMF_RscAttributeLoadout.hpp" | ||
| ] |
This file contains hidden or 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 hidden or 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,25 +1,28 @@ | ||
| #include "\x\tmf\addons\assignGear\script_component.hpp" | ||
| #include "\x\tmf\addons\assigngear\script_component.hpp" | ||
| /* | ||
| * Name = TMF_assignGear_fnc_addBackpackItems | ||
| * Author = Nick | ||
| * | ||
| * Arguments: | ||
| * 0: Object. Unit | ||
| * 1: ARRAY. Array of items to add | ||
| * | ||
| * Return: | ||
| * 0: ARRAY. Array of items that could not be added | ||
| * | ||
| * Description: | ||
| * Tries to add items to a units' backpack. Logs those that were skipped | ||
| * name = TMF_assignGear_fnc_addBackpackItems | ||
| * Author = Nick | ||
| * | ||
| * Arguments: | ||
| * 0: Object. Unit | ||
| * 1: ARRAY. Array of items to add | ||
| * | ||
| * Return: | ||
| * 0: ARRAY. Array of items that could not be added | ||
| * | ||
| * Description: | ||
| * Tries to add items to a units' backpack. Logs those that were skipped | ||
| */ | ||
| params ["_unit","_items"]; | ||
| params ["_unit", "_items"]; | ||
|
|
||
| if (isNil "_unit" || isNil "_items") exitWith {}; | ||
| { | ||
| if (!(isNil "_x") && {_unit canAddItemToBackpack _x}) then { | ||
| if (!(isNil "_x") && { | ||
| _unit canAddItemToBackpack _x | ||
| }) then { | ||
| _unit addItemToBackpack _x; | ||
| } else { | ||
| WARNING_3("Adding item to backpack failed. Unit: %1, Item: %2.",_unit,_x); | ||
| WARNING_2("Adding item to backpack failed. Unit: %1, Item: %2.", _unit, _x); | ||
| continue; | ||
| }; | ||
| } forEach _items; | ||
| } forEach _items; |
This file contains hidden or 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 hidden or 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
File renamed without changes.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.