-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated tools and workflows * Fixed script_component.hpp * Run all validations always * Arma is now testing in action caption * Added manual deploy
- Loading branch information
1 parent
1c619ca
commit b2fe15a
Showing
23 changed files
with
1,335 additions
and
293 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Deploy | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
environment: | ||
description: 'Selected deploy enviroment' | ||
required: true | ||
default: 'dev' | ||
type: choice | ||
options: | ||
- dev | ||
- live | ||
jobs: | ||
windows: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout the source code | ||
uses: actions/checkout@v4 | ||
- name: Setup HEMTT | ||
uses: arma-actions/hemtt@v1 | ||
- name: Checkout pull request | ||
uses: actions/checkout@v4 | ||
- name: Run HEMTT release | ||
run: hemtt release | ||
#- name: Rename build folder | ||
# run: mv .hemttout/build .hemttout/@cav | ||
- name: DEBUG ending... | ||
run: | | ||
Write-Host "Environment: $ENVIRONMENT" | ||
Get-Content -Path .hemttout | ||
env: | ||
ENVIRONMENT: ${{ inputs.environment }} | ||
shell: pwsh | ||
#- name: Upload Artifact | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: cav-${{ github.sha }} | ||
# path: .hemttout/@* |
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,38 @@ | ||
name: HEMTT | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request_target: | ||
|
||
jobs: | ||
windows: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout the source code | ||
uses: actions/checkout@v4 | ||
- name: Setup HEMTT | ||
uses: arma-actions/hemtt@v1 | ||
- name: Checkout pull request | ||
uses: actions/checkout@v4 | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
with: | ||
path: pullrequest | ||
ref: 'refs/pull/${{ github.event.number }}/merge' | ||
- name: Replace addons with pull request addons | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
run: | | ||
rm -r addons\ | ||
rm -r include\ | ||
xcopy /e /h /q pullrequest\addons addons\ | ||
xcopy /e /h /q pullrequest\include include\ | ||
- name: Run HEMTT build | ||
run: hemtt build | ||
- name: Rename build folder | ||
run: mv .hemttout/build .hemttout/@cav | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: cav-${{ github.sha }} | ||
path: .hemttout/@* |
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 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
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,97 @@ | ||
#!/usr/bin/env python3 | ||
# vim: set fileencoding=utf-8 : | ||
|
||
# compileExtensions.py (from acre2's make.py) | ||
|
||
############################################################################### | ||
|
||
# The MIT License (MIT) | ||
|
||
# Copyright (c) 2013-2014 Ryan Schultz | ||
|
||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
# in the Software without restriction, including without limitation the rights | ||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
# copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
|
||
# The above copyright notice and this permission notice shall be included in | ||
# all copies or substantial portions of the Software. | ||
|
||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
# THE SOFTWARE. | ||
|
||
############################################################################### | ||
|
||
import sys | ||
import os.path | ||
import subprocess | ||
import shutil | ||
import time | ||
import timeit | ||
|
||
if sys.platform == "win32": | ||
import winreg | ||
|
||
|
||
def compile_extensions(force_build): | ||
originalDir = os.getcwd() | ||
extensions_root = os.path.join(os.path.dirname(os.getcwd()), "extensions") | ||
os.chdir(extensions_root) | ||
print("\nCompiling extensions in {} with rebuild:{}\n".format(extensions_root, force_build)) | ||
|
||
if shutil.which("git") == None: | ||
print("Failed to find Git!") | ||
return | ||
if shutil.which("cmake") == None: | ||
print("Failed to find CMake!") | ||
return | ||
if shutil.which("msbuild") == None: | ||
print("Failed to find MSBuild!") | ||
return | ||
|
||
try: | ||
buildType = "rebuild" if force_build else "build" | ||
# 32-bit | ||
vcproj32 = os.path.join(extensions_root, "vcproj32") | ||
if not os.path.exists(vcproj32): | ||
os.mkdir(vcproj32) | ||
os.chdir(vcproj32) | ||
subprocess.call(["cmake", "..", "-A", "Win32"]) # note: cmake will update ace_version stuff | ||
subprocess.call(["msbuild", "ACE.sln", "/m", "/t:{}".format(buildType), "/p:Configuration=Release"]) | ||
|
||
# 64-bit | ||
vcproj64 = os.path.join(extensions_root, "vcproj64") | ||
if not os.path.exists(vcproj64): | ||
os.mkdir(vcproj64) | ||
os.chdir(vcproj64) | ||
subprocess.call(["cmake", "..", "-A", "x64"]) | ||
subprocess.call(["msbuild", "ACE.sln", "/m", "/t:{}".format(buildType), "/p:Configuration=Release"]) | ||
except Exception as e: | ||
print("Error: COMPILING EXTENSIONS - {}".format(e)) | ||
raise | ||
finally: | ||
os.chdir(originalDir) | ||
|
||
|
||
def main(argv): | ||
if "force" in argv: | ||
argv.remove("force") | ||
force_build = True | ||
else: | ||
force_build = False | ||
|
||
compile_extensions(force_build) | ||
|
||
|
||
if __name__ == "__main__": | ||
start_time = timeit.default_timer() | ||
main(sys.argv) | ||
print("\nTotal Program time elapsed: {0} sec".format(timeit.default_timer() - start_time)) | ||
input("Press Enter to continue...") |
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
Oops, something went wrong.