Switch to self-hosted runner #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Release | |
on: | |
push: ~ | |
release: | |
types: [published] | |
jobs: | |
stable: | |
if: github.ref_name == 'master' | |
name: Stable | |
runs-on: [self-hosted, Windows, steam] | |
steps: | |
- name: Install Arma Reforger | |
run: | | |
C:\tools\DepotDownloader -dir c:\tools\reforger -app 1874880 -username ${env:STEAM_USERNAME} -password ${env:STEAM_PASSWORD} -validate | |
env: | |
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }} | |
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }} | |
- name: Install Arma Reforger Tools | |
run: | | |
C:\tools\DepotDownloader -dir C:\tools\workbench -app 1874910 -username ${env:STEAM_USERNAME} -password ${env:STEAM_PASSWORD} -validate | |
env: | |
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }} | |
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }} | |
- name: Steam Client Login | |
run: | | |
C:\Steam\steam.exe -silent -login ${env:STEAM_USERNAME} ${env:STEAM_PASSWORD} | |
${{ github.workspace }}\Mod\tools\steam-check.exe | |
env: | |
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }} | |
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: Mod | |
- name: Workbench build | |
run: > | |
C:\tools\workbench\Workbench\ArmaReforgerWorkbenchSteamDiag.exe | |
-enableWARP | |
-exitAfterInit | |
-noThrow | |
-noSound | |
-wbModule=ResourceManager | |
-addonsDir "C:/reforger/addons/,${{ github.workspace }}/Mod/addons/" | |
-addons "ArmaForces_Mods_Core" | |
-profile "${{ github.workspace }}/profile" | |
-packAddon | |
-packAddonDir "${{ github.workspace }}/pack" | |
- name: Archive profile | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: Stable profile | |
path: profile | |
- name: Archive pack | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: Stable package | |
path: pack | |
experimental: | |
name: Experimental | |
runs-on: [self-hosted, Windows, steam] | |
steps: | |
- name: Install Arma Reforger | |
run: | | |
DepotDownloader -dir c:\tools\reforger-exp -app 1890860 -username ${env:STEAM_USERNAME} -password ${env:STEAM_PASSWORD} -validate | |
env: | |
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }} | |
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }} | |
- name: Install Arma Reforger Tools | |
run: | | |
DepotDownloader -dir C:\tools\workbench-exp -app 1890880 -username ${env:STEAM_USERNAME} -password ${env:STEAM_PASSWORD} -validate | |
env: | |
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }} | |
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }} | |
- name: Steam Client Login | |
run: | | |
C:\Steam\steam.exe -silent -login ${env:STEAM_USERNAME} ${env:STEAM_PASSWORD} | |
${{ github.workspace }}\Mod\tools\steam-check.exe | |
env: | |
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }} | |
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: Mod | |
- name: Experimental build | |
run: > | |
C:\tools\workbench-exp\Workbench\ArmaReforgerWorkbenchSteamDiag.exe | |
-enableWARP | |
-exitAfterInit | |
-noThrow | |
-noSound | |
-wbModule=ResourceManager | |
-addonsDir "C:/reforger/addons/,${{ github.workspace }}\Mod/addons/" | |
-addons "ArmaForces_Mods_Core" | |
-profile "${{ github.workspace }}/output/profile" | |
-packAddon | |
-packAddonDir "${{ github.workspace }}/output/pack" | |
- name: Archive profile | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: Experimental profile | |
path: output/profile | |
- name: Archive pack | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: Experimental Package | |
path: output/pack |