-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* changes for latest hemtt version * update for new hemtt releases * update workflow * upper lower case linux is hard * fix artifact upload * do not grab the zip, but the loose files * add release script * rename release script and update run * enable mod.cpp changes * improve Hemtt upgrade add improved ci annotations for hemtt warnings * fix path issue in main workflow * upgrade some deprecated packages * upgrade artifcat uploader in the place i missed it * fix notices not showing fix some warnings * improve logging in StringTable Duplicated Entry Checker * Improve PrepChecker * add some more notices to stringtable checker * improve message of hemttchecker * always use Latest Major for actions --------- Co-authored-by: jokoho482 <hoffmann.jonas95@gmail.com> Co-authored-by: Joko <hoffman.jonas95@gmail.com>
- Loading branch information
1 parent
28b8a7b
commit c084c95
Showing
29 changed files
with
486 additions
and
185 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
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,33 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Setup HEMTT | ||
uses: arma-actions/hemtt@main | ||
- name: Run HEMTT build | ||
run: hemtt release | ||
- run: | | ||
version="${{ github.event.release.tag_name }}" | ||
mv releases/lambs-latest.zip "@LambsDanger_${version//[.]/_}.zip" | ||
- name: Update Release with Files | ||
id: create_version_release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
allowUpdates: true # Set this to false if you want to prevent updating existing releases | ||
name: ${{ github.event.release.name }} | ||
draft: ${{ github.event.release.unpublished }} | ||
prerelease: ${{ github.event.release.prerelease }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
artifacts: "./@LambsDanger_*.zip" | ||
tag: ${{ github.event.release.tag_name }} | ||
body: ${{ github.event.release.body }} |
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,14 @@ | ||
// Read the current contents of the mod.cpp | ||
// file from the project source | ||
let version = HEMTT_DIRECTORY | ||
.join("mod.cpp") | ||
.open_file() | ||
.read(); | ||
// Replace the placeholder version with the actual version | ||
version.replace("{version}", HEMTT.project().version().to_string_short()); | ||
// Write the new contents to the build output | ||
// create_file will overwrite the file if it exists | ||
HEMTT_OUTPUT | ||
.join("mod.cpp") | ||
.create_file() | ||
.write(version); |
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,37 @@ | ||
name = "LAMBS Danger" | ||
prefix = "lambs" | ||
author = "LAMBS Dev Team" | ||
mainprefix = "z" | ||
|
||
[version] | ||
path = "addons/main/script_version.hpp" | ||
git_hash = 0 | ||
|
||
[files] | ||
include = [ | ||
"mod.cpp", | ||
"*.paa", | ||
"LICENSE", | ||
"readme.txt", | ||
"readme.md" | ||
] | ||
|
||
[hemtt.signing] | ||
authority = "LambsDanger" | ||
|
||
[hemtt.release] | ||
folder = "lambs_danger" | ||
|
||
[hemtt.launch.default] | ||
workshop = [ | ||
"450814997", # CBA_A3's Workshop ID | ||
] | ||
|
||
parameters = [ | ||
"-skipIntro", # These parameters are passed to the Arma 3 executable | ||
"-noSplash", # They do not need to be added to your list | ||
"-showScriptErrors", # You can add additional parameters here | ||
"-debug", | ||
"-world=empty", | ||
"-filePatching", | ||
] |
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
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 |
---|---|---|
|
@@ -29,8 +29,8 @@ class CfgFSMs { | |
function = "nothing"; | ||
parameters[] = {}; | ||
thresholds[] = {}; | ||
} | ||
} | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; |
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,4 +1,4 @@ | ||
#define MAJOR 0 | ||
#define MINOR 0 | ||
#define PATCHLVL 0 | ||
#define MAJOR 1 | ||
#define MINOR 6 | ||
#define PATCHLVL 1 | ||
#define BUILD 0 |
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
File renamed without changes.
Oops, something went wrong.