Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #36

Open
wants to merge 28 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
577f596
Adapt to HEMTT v1
jonpas Jun 19, 2023
3ca4acf
Fix PBOPREFIX slash use (backwards slash instead of forward slash)
jonpas Jun 15, 2023
0303894
Fix missing semi-colon
jonpas Jun 19, 2023
d4cbe5a
Remove release folder with build PBOs and add it to .gitignore
jonpas Jun 19, 2023
db1f79c
Remove unused .travis.yml
jonpas Jun 19, 2023
ea1de87
Remove unused AUTHORS.txt
jonpas Jun 19, 2023
73ea247
Add HEMTT setup/download script for Windows
jonpas Jun 19, 2023
1d82e52
Use HEMTT v1 in CI
jonpas Jun 19, 2023
2aa9798
Name things properly
jonpas Jun 19, 2023
2ffd501
Remove legacy components
jonpas Jun 19, 2023
9919ff6
Rework CI
jonpas Jun 19, 2023
8960819
Fix logo name
jonpas Jun 19, 2023
a007c91
Add HEMTT build script for Windows
jonpas Jun 19, 2023
ef50c9f
Improve EditorConfig and Git Attributes
jonpas Jun 19, 2023
c901eb5
Fix release CI job
jonpas Jun 19, 2023
a3f8fab
Move SCONS configuration files to tools folder
jonpas Jun 19, 2023
7cf4227
Update ACE3 Python tools
jonpas Jun 19, 2023
89ac4d6
Remove old ACE3 build tools
jonpas Jun 19, 2023
4002d07
Cleanup temporary SCONS database file
jonpas Jun 19, 2023
a3f8f5a
Always build
jonpas Jun 19, 2023
c382c9d
No more AUTHORS.txt
jonpas Jun 19, 2023
ca7e0b2
More ASC excludes
jonpas Jun 19, 2023
8e88595
ACE3 is not required
jonpas Jun 19, 2023
50c22a3
Rename CI artifact name
jonpas Jun 19, 2023
32f6186
Merge pull request #31 from jonpas/hemtt-ci-and-cleanup
YannikH Nov 3, 2023
91f78c8
fix sound macro
BroBeansCPG Nov 4, 2023
9414bb5
Merge pull request #35 from Project-Hatchet/fix-soundmacro
BroBeansCPG Nov 4, 2023
d48eed4
Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows
dependabot[bot] Sep 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
root = true

[*]
indent_size = 2
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* text=auto
*.png binary
*.jpg binary
*.paa binary
File renamed without changes.
10 changes: 0 additions & 10 deletions .github/workflows/Workflows_Documentation.md

This file was deleted.

49 changes: 32 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI/Validate
name: Build

on:
push:
Expand All @@ -11,29 +11,44 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Validate SQF
run: python3 tools/sqf_validator.py
- name: Validate Config
run: python3 tools/config_style_checker.py
- name: Validate Stringtables
run: python3 tools/stringtable_validator.py
- name: Validate Return Types
run: python3 tools/return_checker.py
- name: Check for BOM
uses: arma-actions/bom-check@master

build:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Build with HEMTT
uses: arma-actions/hemtt@master
with:
command: build --release --ci
- uses: actions/upload-artifact@v2
- name: Checkout the source code
uses: actions/checkout@v3
- name: Setup HEMTT
uses: arma-actions/hemtt@v1
- name: Run HEMTT release
run: hemtt release --no-archive
- name: Rename release folder
run: mv .hemttout/release .hemttout/@hatchet_framework
- uses: actions/upload-artifact@v3
with:
name: hatchet_framework-${{ github.sha }}-nobin
path: .hemttout/@*

publish:
needs: [build]
if: github.repository == 'Project-Hatchet/Interaction-Framework' && ! contains(github.event.head_commit.message, '[ci skip]') && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
# Upload to Steam Workshop
- name: Download Artifacts
uses: actions/download-artifact@v4.1.7
- uses: arma-actions/workshop-upload@v1
with:
name: hatchet
path: releases/hatchet.zip
appId: '107410'
itemId: '2403978406' # Hatchet Framework - Test Version
contentPath: '.hemttout/@*'
changelog: 'See changelog on GitHub: https://github.com/Project-Hatchet/Interaction-Framework/commits'
env:
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}
30 changes: 0 additions & 30 deletions .github/workflows/development.yml

This file was deleted.

14 changes: 6 additions & 8 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ on:
- main

jobs:
update_release_draft:
draft:
runs-on: ubuntu-latest
if: github.repository == 'Project-Hatchet/Interaction-Framework'
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
with:
config-name: my-config.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Drafter
uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

on:
push:
tags:
- 'v*.*.*'

jobs:
build_addon:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v3
- name: Setup HEMTT
uses: arma-actions/hemtt@v1
- name: Run HEMTT release
run: hemtt release
- name: Rename release folder
run: mv .hemttout/release .hemttout/@hatchet_framework
- name: Upload to GitHub
uses: actions/action-gh-release@v1
with:
draft: true
files: releases/hatchet_framework_*.zip
name: 'Hatchet Framework ${{ github.ref_name }}'
tag_name: ${{ github.ref_name }}
target_commitish: ${{ github.sha }}
#- uses: arma-actions/workshop-upload@v1
# with:
# appId: '107410'
# itemId: '' # Hatchet Framework - Stable Version
# contentPath: '.hemttout/@*'
# changelog: 'See changelog on GitHub: https://github.com/Project-Hatchet/Interaction-Framework/releases'
# env:
# STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
# STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}
28 changes: 0 additions & 28 deletions .github/workflows/release_main.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/release_rc.yml

This file was deleted.

24 changes: 19 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
*.zip
*.bak
*.cache
keys/*
*.pbo
texHeaders.bin
*.swp
*.swo
*.biprivatekey
Thumbs.db

## Added by HEMTT
## HEMTT
releases/*
*.biprivatekey
keys/*
.hemtt/local.toml
addons/*.pbo
hemtt
hemtt.exe
.hemttout
####

## SCONS
release
.sconsign.dblite
####
9 changes: 0 additions & 9 deletions .hemtt/base.toml

This file was deleted.

11 changes: 11 additions & 0 deletions .hemtt/hooks/post_release/01_rename_zip.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
let releases = HEMTT_RFS.join("releases");
let name_nospaces = HEMTT.project().name();
name_nospaces.replace(" ", "_");

let src = releases.join(HEMTT.project().prefix() + "-" + HEMTT.project().version().to_string() + ".zip");
let dst = releases.join(name_nospaces.to_lower() + "_" + HEMTT.project().version().to_string_short() + ".zip");

print("Moving zip to " + dst);
if !src.move(dst) {
warn("Failed to move " + src + " to " + dst + " (maybe --no-archive?)");

Check failure on line 10 in .hemtt/hooks/post_release/01_rename_zip.rhai

View workflow job for this annotation

GitHub Actions / build

Script /.hemtt/hooks/post_release/01_rename_zip.rhai failed at runtime

Runtime error: No such file or directory (os error 2) (line 9, position 9)
}
35 changes: 35 additions & 0 deletions .hemtt/project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name = "Hatchet Framework"
prefix = "hatchet_vxf"
author = "Project Hatchet"
mainprefix = "z"

[files]
include = [
"mod.cpp",
"README.md",
"LICENSE",
"logo_vxf_ca.paa",
"meta.cpp",
]

[version]
git_hash = 0

[asc]
enabled = true
exclude = [
"/initsettings.sqf",
"/initkeybinds.sqf",
"/xeh_prep.sqf",
]

[hemtt.config]
preset = "Hemtt"

[hemtt.release]
folder = "vxf_framework"

[hemtt.launch]
workshop = [
"450814997", # CBA_A3's Workshop ID
]
Binary file removed .sconsign.dblite
Binary file not shown.
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

6 changes: 0 additions & 6 deletions AUTHORS.txt

This file was deleted.

12 changes: 6 additions & 6 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def allFilesIn(path):
return [s.replace("$", "$$") for s in glob.glob(path + '/**/*', recursive=True) if os.path.isfile(s)]

def getSettings():
with open("build.json") as file:
with open("tools/build.json") as file:
return json.load(file)

def targetDefinition(target, description):
Expand Down Expand Up @@ -82,8 +82,8 @@ def commandsToCreateSymlink(pbo):
return commands

def buildPbo(settings,env, pbo):
env.Command(pbo.outputPath, allFilesIn(pbo.folder),
f'"{addonBuilderPath()}" "{os.path.abspath(pbo.folder)}" "{os.path.abspath(settings["addonsFolder"])}" -clear -include=buildExtIncludes.txt')
env.Command(pbo.outputPath, allFilesIn(pbo.folder),
f'"{addonBuilderPath()}" "{os.path.abspath(pbo.folder)}" "{os.path.abspath(settings["addonsFolder"])}" -clear -include=tools\\buildExtIncludes.txt')
targetDefinition(pbo.name, f"Build the {pbo.name} pbo.")
return env.Alias(pbo.name, pbo.outputPath)

Expand All @@ -100,14 +100,14 @@ pbos = getPboInfo(settings)
pboAliases = [buildPbo(settings,env, pbo) for pbo in pbos]

env.Command("buildTools", [], Mkdir("buildTools"))

env.Command(r"buildTools\Natural Docs", [], [downloadNaturaldocs, Delete(r"buildTools\NaturalDocs.zip")])

allPbos = env.Alias("all", pboAliases)
targetDefinition("all", "Build all pbos.")

buildDocs = env.Command(r"docs\index.html",
[s for s in allFilesIn(settings["addonsFolder"]) if s.endswith(".sqf")] + [r"buildTools\Natural Docs"],
[s for s in allFilesIn(settings["addonsFolder"]) if s.endswith(".sqf")] + [r"buildTools\Natural Docs"],
[Mkdir("docs"), r'"buildTools\Natural Docs\NaturalDocs.exe" naturaldocs'])
env.AlwaysBuild(buildDocs)

Expand All @@ -130,4 +130,4 @@ except Exception as e:
print(e)
print("Error: Couldn't find arma 3, cannot make or remove symlinks")

env.Default("all")
env.Default("all")
1 change: 0 additions & 1 deletion addons/hatchet_vxf_core/$PBOPREFIX$

This file was deleted.

Loading
Loading