-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Adds the HEMTT build system to TMF (#442)
* work * more * Added addon.toml * git ignore * Tweaked pipelines * tweaked * tweaks * remove tabs * use hemtt for building addon * fixes include name * tweak actions * Update build_pbo.yml * rename flow to lint
- Loading branch information
Showing
141 changed files
with
8,140 additions
and
274 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
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,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 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 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 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 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 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 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 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 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
File renamed without changes.
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,5 @@ | ||
[rapify] | ||
enabled = false # Default: true | ||
exclude = [ | ||
"adminMenu.hpp" | ||
] |
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
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,3 +1,4 @@ | ||
#include "\x\tmf\addons\adminmenu\script_component.hpp" | ||
private _fnc_settings = { | ||
[ | ||
QGVAR(printToChat), | ||
|
File renamed without changes.
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,3 +1,3 @@ | ||
#include "script_component.hpp" | ||
|
||
#include "XEH_PREP.sqf" | ||
#include "XEH_PREP.hpp" |
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,3 +1,3 @@ | ||
#include "script_component.hpp" | ||
|
||
#include "XEH_PREP.sqf" | ||
#include "XEH_PREP.hpp" |
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
File renamed without changes.
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
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 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 |
---|---|---|
@@ -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 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
File renamed without changes.
Oops, something went wrong.