2023-11-01 01:29:22 +00:00
|
|
|
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\
|
2024-08-18 19:02:35 +00:00
|
|
|
xcopy /y /h /q pullrequest\ace.dll ace.dll
|
|
|
|
xcopy /y /h /q pullrequest\ace_x64.dll ace_x64.dll
|
2023-11-01 01:29:22 +00:00
|
|
|
- name: Run HEMTT build
|
|
|
|
run: hemtt build
|
|
|
|
- name: Rename build folder
|
|
|
|
run: mv .hemttout/build .hemttout/@ace
|
|
|
|
- name: Upload Artifact
|
2024-02-29 03:54:08 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-11-01 01:29:22 +00:00
|
|
|
with:
|
|
|
|
name: ace3-${{ github.sha }}
|
|
|
|
path: .hemttout/@*
|