Skip to content

Commit

Permalink
Full rework (#10)
Browse files Browse the repository at this point in the history
* Restructure mod and repository

* switch idle sound handling, no more double triggers

* fix comet for module usage

* fix build
  • Loading branch information
diwako authored Oct 20, 2024
1 parent 594ae04 commit 2556e1d
Show file tree
Hide file tree
Showing 202 changed files with 6,586 additions and 6,342 deletions.
59 changes: 59 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
root = true

[*]
end_of_line = crlf
charset = utf-8

[*.sqf]
indent_size = 4
insert_final_newline = true
indent_style = space
trim_trailing_whitespace = true

[*.cpp]
indent_size = 4
insert_final_newline = true
indent_style = space
trim_trailing_whitespace = true

[*.hpp]
indent_size = 4
insert_final_newline = true
indent_style = space
trim_trailing_whitespace = true

[*.js]
indent_size = 2
insert_final_newline = true
indent_style = space
trim_trailing_whitespace = true

[*.xml]
indent_size = 4
insert_final_newline = true
indent_style = space
trim_trailing_whitespace = true

[*.paa]
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset

[*.fsm]
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset

[*.json]
charset = unset
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
indent_style = unset
indent_size = unset
12 changes: 12 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
*.sqf text eol=crlf
*.hpp text eol=crlf
*.cpp text eol=crlf
*.paa binary
*.fsm text eol=crlf
*.json text eol=crlf
*.js text eol=crlf
*.py text eol=crlf
*.md text eol=crlf
*.toml text eol=crlf
*.txt text eol=crlf
*.xml text eol=crlf
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
branches:
- master
pull_request:

jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@master
- name: Check for BOM
uses: arma-actions/bom-check@master

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- 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: "@diwako_anomalies"
path: ".hemttout/release/*"
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

*.biprivatekey

hemtt\.exe
armake2\.exe
.hemttout/
keys/
releases/
*.pbo

*.bisign

releases/*
keys/*
.hemtt/local
*.pdb
*.exe
*.sqfc
*.bat
*.dll

.vscode/*
/.hemtt/missions/test.vr/mission.sqm
14 changes: 14 additions & 0 deletions .hemtt/hooks/pre_release/set_version.rhai
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);
Loading

0 comments on commit 2556e1d

Please sign in to comment.