Skip to content

Commit

Permalink
Workflow update + Cleanup (#40)
Browse files Browse the repository at this point in the history
* update workflow

for auto git builds

* extra cleanup
  • Loading branch information
BroBeansCPG authored Dec 16, 2024
1 parent cb8ae23 commit 67d0896
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 37 deletions.
59 changes: 36 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,52 @@

name: CI/Validate

on:
workflow_dispatch:
push:
branches:
- main
pull_request:

jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v2
- 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
# validate:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout the source code
# uses: actions/checkout@v2
# - 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
runs-on: windows-2022
steps:
- name: Checkout the source code
uses: actions/checkout@v2
uses: actions/checkout@v4.2.0
with:
fetch-depth: 1
- name: Build with HEMTT
uses: arma-actions/hemtt@master
- name: Set up A3Tools
uses: arma-actions/arma3-tools@master
with:
toolsUrl: ${{ secrets.A3TOOLS_S3_URL }}
- name: Set up scons
run: python -m pip install scons
- name: Build with Scons
run: scons
- name: Archive Release
uses: thedoctor0/[email protected]
with:
command: build --release --ci
- uses: actions/upload-artifact@v2
type: 'zip'
path: 'release'
filename: 'hatchet_framework.zip'
- name: Upload Artifact
uses: actions/[email protected]
with:
name: hatchet
path: releases/hatchet.zip
name: hatchet-${{ github.sha }}-nobin
path: hatchet_framework.zip
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@

## Added by HEMTT

releases/*
*.biprivatekey
keys/*
.hemtt/local.toml
addons/*.pbo
####
.vscode
.sconsign.dblite
release/*

6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

6 changes: 0 additions & 6 deletions AUTHORS.txt

This file was deleted.

0 comments on commit 67d0896

Please sign in to comment.