Skip to content

Commit 4adffa7

Browse files
committed
Added GitHub actions
1 parent f5a64c0 commit 4adffa7

3 files changed

Lines changed: 126 additions & 0 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: kind/bug
6+
assignees: ''
7+
---
8+
9+
<!--
10+
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
11+
12+
I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
13+
1. If I delete this entire template or parts of it and go my own path, the team may close my issue without further explanation or engagement.
14+
2. If I list multiple bugs/concerns in this one issue, the team may close my issue without further explanation or engagement.
15+
3. If I write an issue that has duplicates, the team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
16+
4. If I leave the title incomplete when filing the issue, the team may close my issue without further explanation or engagement.
17+
5. If I file something completely blank in the body, the team may close my issue without further explanation or engagement.
18+
6. If I file an issue without collecting logs (RPT file, etc...), the team may close my issue without further explanation or engagement.
19+
20+
All good? Then proceed and fill out the items below.
21+
-->
22+
23+
**Mods (complete and add to the following information):**
24+
- **Arma 3:** `2.xx` [e.g. 2.00 stable, rc, dev, profiling]
25+
- **CBA:** `3.x.x` [e.g. 3.0.0 stable, commit hash]
26+
- **ACE:** `3.x.x` [e.g. 3.0.0 stable, commit hash]
27+
- **Armor Modifier - ACE:** `1.x.x` [e.g. 1.0.0 stable, commit hash]
28+
<!-- Make sure to reproduce the issue with only CBA, ACE and Armor Modifier - ACE on a newly created mission! -->
29+
30+
**Description:**
31+
A clear and concise description of what the bug is.
32+
33+
**Steps to reproduce:**
34+
_Follow [this flowchart](https://ace3.acemod.org/img/wiki/user/issue_flowchart.webp) (Replace 'ACE3' with 'Armor Modifier - ACE', ignore any 'Slack' mentions)!_
35+
36+
1. _Go to ..._
37+
2. _Click ..._
38+
3. _See ..._
39+
40+
**Expected behavior:**
41+
A clear and concise description of what you expected to happen.
42+
43+
**Where did the issue occur?**
44+
- Dedicated / Self-Hosted Multiplayer / Singleplayer / Editor (Singleplayer) / Editor (Multiplayer) / Virtual Arsenal
45+
46+
**Log Files:**
47+
- Link to ([gist](https://gist.github.com) or [pastebin](http://pastebin.com)) to the client and/or server RPT file. An instruction to find your RPT files can be found [here](https://community.bistudio.com/wiki/Crash_Files#Arma_3).
48+
49+
**Additional context:**
50+
Add any other context about the problem here.
51+
52+
**Screenshots:**
53+
If applicable, add screenshots to help explain your problem.

.github/workflows/hemtt.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# From https://github.com/acemod/ACE3/blob/master/.github/workflows/hemtt.yml
2+
name: HEMTT
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request_target:
9+
10+
jobs:
11+
windows:
12+
runs-on: windows-latest
13+
steps:
14+
- name: Checkout the source code
15+
uses: actions/checkout@v4
16+
- name: Setup HEMTT
17+
uses: arma-actions/hemtt@v1
18+
- name: Checkout pull request
19+
uses: actions/checkout@v4
20+
if: ${{ github.event_name == 'pull_request_target' }}
21+
with:
22+
path: pullrequest
23+
ref: 'refs/pull/${{ github.event.number }}/merge'
24+
- name: Replace addons with pull request addons
25+
if: ${{ github.event_name == 'pull_request_target' }}
26+
run: |
27+
rm -r addons\
28+
rm -r include\
29+
xcopy /e /h /q pullrequest\addons addons\
30+
xcopy /e /h /q pullrequest\include include\
31+
- name: Run HEMTT build
32+
run: hemtt build

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: "tagged-release"
3+
4+
on:
5+
push:
6+
tags:
7+
- "v*"
8+
9+
jobs:
10+
tagged-release:
11+
name: "Tagged Release"
12+
runs-on: windows-latest
13+
steps:
14+
- name: Checkout the source code
15+
uses: actions/checkout@v4
16+
- name: Setup HEMTT
17+
uses: arma-actions/hemtt@v1
18+
- name: Checkout pull request
19+
uses: actions/checkout@v4
20+
if: ${{ github.event_name == 'pull_request_target' }}
21+
with:
22+
path: pullrequest
23+
ref: 'refs/pull/${{ github.event.number }}/merge'
24+
- name: Replace addons with pull request addons
25+
if: ${{ github.event_name == 'pull_request_target' }}
26+
run: |
27+
rm -r addons\
28+
rm -r include\
29+
xcopy /e /h /q pullrequest\addons addons\
30+
xcopy /e /h /q pullrequest\include include\
31+
- name: Run HEMTT release
32+
run: hemtt release
33+
- name: Remove 'latest' zip
34+
run: find -type f -name '*latest.zip' -delete
35+
- name: Create release
36+
uses: marvinpinto/action-automatic-releases@latest
37+
with:
38+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
39+
automatic_release_tag: "${{ github.ref_name }}"
40+
prerelease: false
41+
files: releases/

0 commit comments

Comments
 (0)