Skip to content

Commit

Permalink
CI - Run HEMTT on Windows for binarization (acemod#9590)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dahlgren authored Nov 1, 2023
1 parent 2dace6e commit dc944b1
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/hemtt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: HEMTT

on:
push:
branches:
- master
pull_request_target:

jobs:
windows:
runs-on: windows-latest
steps:
- name: Install Arma 3 Tools
uses: arma-actions/arma3-tools@master
with:
toolsUrl: ${{ secrets.ARMA3_TOOLS_URL }}
- 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 optionals\
rm -r include\
xcopy /e /h /q pullrequest\addons addons\
xcopy /e /h /q pullrequest\optionals optionals\
xcopy /e /h /q pullrequest\include include\
- name: Run HEMTT build
run: hemtt build
- name: Rename build folder
run: mv .hemttout/build .hemttout/@ace
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: ace3-${{ github.sha }}
path: .hemttout/@*

0 comments on commit dc944b1

Please sign in to comment.