2019-10-05 20:53:16 +00:00
|
|
|
name: Arma
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
validate:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout the source code
|
2023-10-26 17:24:01 +00:00
|
|
|
uses: actions/checkout@v4
|
2019-10-05 20:53:16 +00:00
|
|
|
- name: Validate SQF
|
|
|
|
run: python3 tools/sqf_validator.py
|
|
|
|
- name: Validate Config
|
|
|
|
run: python3 tools/config_style_checker.py
|
2019-11-18 18:48:40 +00:00
|
|
|
- name: Validate Stringtables
|
|
|
|
run: python3 tools/stringtable_validator.py
|
|
|
|
- name: Check Strings
|
2019-10-05 20:53:16 +00:00
|
|
|
run: python3 tools/check_strings.py
|
|
|
|
- name: Check for BOM
|
|
|
|
uses: arma-actions/bom-check@master
|
2023-10-20 17:22:26 +00:00
|
|
|
with:
|
|
|
|
path: 'addons'
|
2023-04-30 21:03:35 +00:00
|
|
|
- name: Validate function headers
|
|
|
|
run: python3 docs/tools/document_functions.py --debug
|
2019-10-05 20:53:16 +00:00
|
|
|
|
|
|
|
lint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout the source code
|
2023-10-26 17:24:01 +00:00
|
|
|
uses: actions/checkout@v4
|
2019-10-05 20:53:16 +00:00
|
|
|
- name: Lint (sqflint)
|
|
|
|
uses: arma-actions/sqflint@master
|
|
|
|
continue-on-error: true # No failure due to many false-positives
|
|
|
|
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout the source code
|
2023-10-26 17:24:01 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-04-30 21:01:45 +00:00
|
|
|
- name: Setup HEMTT
|
|
|
|
uses: arma-actions/hemtt@v1
|
|
|
|
- name: Run HEMTT build
|
|
|
|
run: hemtt build
|
|
|
|
- name: Rename build folder
|
|
|
|
run: mv .hemttout/build .hemttout/@ace
|
2020-04-18 17:04:26 +00:00
|
|
|
- name: Upload Artifact
|
2024-02-29 03:54:08 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2020-04-18 17:04:26 +00:00
|
|
|
with:
|
|
|
|
name: ace3-${{ github.sha }}-nobin
|
2023-04-30 21:01:45 +00:00
|
|
|
path: .hemttout/@*
|