Skip to content

Commit 4594429

Browse files
authored
Merge branch 'master' into dzn-inventory-frame-noninherit-actions
2 parents 9e087e6 + d8e102d commit 4594429

621 files changed

Lines changed: 12839 additions & 4304 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
*.png binary
33
*.jpg binary
44
*.paa binary
5+
6+
/tools/make_docs eol=lf
7+
/tools/make_docs_docker eol=lf

.github/release-drafter.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ exclude-labels:
2626

2727
change-template: '- $TITLE (#$NUMBER) **$AUTHOR**'
2828
template: |
29-
DESCRIPTION HERE
30-
3129
$CHANGES
3230
3331
Change log for [CBA v$NEXT_PATCH_VERSION](https://github.com/CBATeam/CBA_A3/milestone/00?closed=1)

.github/workflows/arma.yml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout the source code
14-
uses: actions/checkout@master
14+
uses: actions/checkout@v6
1515
- name: Validate SQF
1616
run: python3 tools/sqf_validator.py
1717
- name: Validate Config
@@ -21,26 +21,20 @@ jobs:
2121
- name: Check for BOM
2222
uses: arma-actions/bom-check@v1
2323

24-
lint:
25-
runs-on: ubuntu-latest
26-
steps:
27-
- name: Checkout the source code
28-
uses: actions/checkout@master
29-
- name: Lint (sqflint)
30-
uses: arma-actions/sqflint@master
31-
continue-on-error: true # No failure due to many false-positives
32-
3324
build:
3425
runs-on: ubuntu-latest
3526
steps:
3627
- name: Checkout the source code
37-
uses: actions/checkout@master
38-
- name: Build using HEMTT
39-
uses: arma-actions/hemtt@master
40-
with:
41-
command: build --release --ci
28+
uses: actions/checkout@v6
29+
- name: Setup HEMTT
30+
uses: arma-actions/hemtt@v1
31+
- name: Run HEMTT build
32+
run: hemtt build
33+
- name: Rename build folder
34+
run: mv .hemttout/build .hemttout/@CBA_A3
4235
- name: Upload Artifact
43-
uses: actions/upload-artifact@v2-preview
36+
uses: actions/upload-artifact@v6
4437
with:
45-
name: CBA_A3-${{ github.sha }}-nobin
46-
path: releases/CBA_A3_*.zip
38+
name: CBA_A3_${{ github.sha }}-nobin
39+
path: .hemttout/@*
40+
include-hidden-files: true # Because .hemttout is a hidden directory

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout the source code
13-
uses: actions/checkout@master
13+
uses: actions/checkout@v6
1414
- name: Install Python packages
1515
run: |
1616
pip3 install wheel

.github/workflows/pboproject.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,31 @@ on:
88

99
jobs:
1010
pboproject:
11-
runs-on: windows-2019
11+
runs-on: windows-latest
1212
steps:
1313
- name: Install Arma 3 Tools
1414
uses: arma-actions/arma3-tools@master
1515
with:
1616
toolsUrl: ${{ secrets.ARMA3_TOOLS_URL }}
1717
- name: Install Mikero Tools
18-
uses: arma-actions/mikero-tools@2021-04-10
18+
uses: arma-actions/mikero-tools@2024-10-11
1919
- name: Download game data
2020
run: |
2121
Invoke-WebRequest "$env:ARMA3_DATA_URL" -OutFile arma3.zip
2222
$files = @("arma3.zip")
2323
ForEach ($file in $files) {
24-
Extract-7Zip -Path $file -DestinationPath .
24+
Expand-7ZipArchive -Path $file -DestinationPath .
2525
Remove-Item $file
2626
}
2727
env:
2828
ARMA3_DATA_URL: ${{ secrets.ARMA3_DATA_URL }}
2929
- name: Checkout CBA A3
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@v6
3131
with:
3232
path: x\cba
3333
persist-credentials: false
3434
- name: Checkout pull request
35-
uses: actions/checkout@v2
35+
uses: actions/checkout@v6
3636
if: ${{ github.event_name == 'pull_request_target' }}
3737
with:
3838
path: pullrequest
@@ -53,13 +53,13 @@ jobs:
5353
env:
5454
PYTHONUNBUFFERED: 1
5555
- name: Archive logs
56-
uses: actions/upload-artifact@v2
56+
uses: actions/upload-artifact@v6
5757
if: ${{ always() }}
5858
with:
5959
name: logs
6060
path: temp/*.log
6161
- name: Archive @cba_a3
62-
uses: actions/upload-artifact@v2
62+
uses: actions/upload-artifact@v6
6363
with:
6464
name: '@cba_a3-${{ github.sha }}'
6565
path: x\cba\release\@cba_a3

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
if: github.repository == 'CBATeam/CBA_A3'
1212
steps:
1313
- name: Release Drafter
14-
uses: release-drafter/release-drafter@v5
14+
uses: release-drafter/release-drafter@v6
1515
env:
1616
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
release/*
22
releases/*
33
keys/*
4+
.hemttout
45
hemtt
56
hemtt.exe
6-
tools/hemtt*.tar.gz*
7-
tools/hemtt*.zip*
8-
.hemtt/local
97
*.cache
108
*.pbo
119
texHeaders.bin
@@ -18,6 +16,7 @@ Thumbs.db
1816
/store/wiki/*
1917
.vscode/*
2018

19+
*.zip
2120
*.7z
2221

2322
/addons/CBA_Project.sublime-workspace
@@ -29,3 +28,4 @@ tools/ndocs-project/Data/*
2928

3029
ArmaScriptCompiler.exe
3130
*.sqfc
31+
sqfvm.exe
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
let releases = HEMTT_RFS.join("releases");
2+
3+
let src = releases.join(HEMTT.project().prefix() + "-" + HEMTT.project().version().to_string() + ".zip");
4+
let dst = releases.join(HEMTT.project().name() + "_v" + HEMTT.project().version().to_string_short() + ".zip");
5+
6+
print("Moving zip to " + dst);
7+
if !src.move(dst) {
8+
fatal("Failed to move " + src + " to " + dst);
9+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
let modcpp = HEMTT_VFS.join("mod.cpp").open_file().read();
2+
modcpp.replace("0.0.0", HEMTT.project().version().to_string_short());
3+
HEMTT_VFS.join("mod.cpp").create_file().write(modcpp);
4+
print("mod.cpp version set");
5+
6+
let cfgmodshpp = HEMTT_VFS.join("addons").join("main_a3").join("CfgMods.hpp").open_file().read();
7+
cfgmodshpp.replace("0.0.0", HEMTT.project().version().to_string_short());
8+
HEMTT_VFS.join("addons").join("main_a3").join("CfgMods.hpp").create_file().write(cfgmodshpp);
9+
print("addons/main_a3/CfgMods.hpp version set");
10+
11+
let scriptversion = HEMTT_VFS.join("addons").join("main").join("script_version.hpp").open_file().read();
12+
let scriptversion_date = date("[year repr:last_two][month][day]");
13+
scriptversion.replace("000000", scriptversion_date);
14+
HEMTT_VFS.join("addons").join("main").join("script_version.hpp").create_file().write(scriptversion);
15+
print("addons/main/script_version.hpp build set to " + scriptversion_date);

.hemtt/lints.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[config.file_type]
2+
options.allow_no_extension = true
3+
4+
[sqf.banned_commands]
5+
options.ignore = [
6+
"addPublicVariableEventHandler", # Alt syntax is broken, we are using main syntax
7+
]
8+
9+
[sqf.var_all_caps]
10+
options.ignore = [
11+
"SLX_*"
12+
]
13+
14+
[stringtables.usage]
15+
options.ignore_unused = true
16+
17+
[sqf.undefined]
18+
enabled = true
19+
options.check_orphan_code = false
20+
21+
[sqf.unused]
22+
#enabled = true #many false positives without DEBUG_MODE_FULL
23+
options.check_params = false
24+
25+
[sqf.not_private]
26+
enabled = true

0 commit comments

Comments
 (0)