Skip to content

Commit

Permalink
Switch to self-hosted runner
Browse files Browse the repository at this point in the history
  • Loading branch information
veteran29 committed Dec 29, 2024
1 parent 3a6d945 commit e5af87c
Showing 1 changed file with 18 additions and 38 deletions.
56 changes: 18 additions & 38 deletions .github/workflows/workbench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,37 @@ jobs:
stable:
if: github.ref_name == 'master'
name: Stable
runs-on: windows-2025
runs-on: [self-hosted, Windows, steam]
steps:
- name: Install DepotDownloader
run: |
winget install --disable-interactivity --accept-source-agreements --exact --id SteamRE.DepotDownloader --location C:\tools
- name: Install Arma Reforger
run: |
C:\tools\DepotDownloader -dir c:\reforger -app 1874880 -username ${env:STEAM_USERNAME} -password ${env:STEAM_PASSWORD}
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 -app 1874910 -username ${env:STEAM_USERNAME} -password ${env:STEAM_PASSWORD}
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\ArmaReforgerWorkbenchSteamDiag.exe
C:\tools\workbench\Workbench\ArmaReforgerWorkbenchSteamDiag.exe
-enableWARP
-exitAfterInit
-noThrow
Expand All @@ -62,34 +66,25 @@ jobs:

experimental:
name: Experimental
runs-on: windows-2025
runs-on: [self-hosted, Windows, steam]
steps:
- name: Install DepotDownloader
run: |
winget install --disable-interactivity --accept-source-agreements --exact --id SteamRE.DepotDownloader --location C:\tools
- name: Install Arma Reforger
run: |
C:\tools\DepotDownloader -dir c:\reforger -app 1890860 -username ${env:STEAM_USERNAME} -password ${env:STEAM_PASSWORD}
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: |
C:\tools\DepotDownloader -dir C:\tools -app 1890880 -username ${env:STEAM_USERNAME} -password ${env:STEAM_PASSWORD}
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 Install
run: |
$url = 'https://cdn.akamai.steamstatic.com/client/installer/SteamSetup.exe'
Invoke-RestMethod -Uri $url -OutFile SteamSetup.exe
.\SteamSetup.exe /S /D=C:\Steam
- name: Steam Client Login
run: |
C:\Steam\steam.exe -silent -forceservice -login ${env:STEAM_USERNAME} ${env:STEAM_PASSWORD}
sleep 10
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 }}
Expand All @@ -101,8 +96,7 @@ jobs:

- name: Experimental build
run: >
${{ github.workspace }}\Mod\tools\steam-check.exe
C:\tools\Workbench\ArmaReforgerWorkbenchSteamDiag.exe
C:\tools\workbench-exp\Workbench\ArmaReforgerWorkbenchSteamDiag.exe
-enableWARP
-exitAfterInit
-noThrow
Expand All @@ -114,11 +108,6 @@ jobs:
-packAddon
-packAddonDir "${{ github.workspace }}/output/pack"
- name: Test
run: |
ls ${{ github.workspace }}/output
ls ${{ github.workspace }}/pack
- name: Archive profile
uses: actions/upload-artifact@v4
if: always()
Expand All @@ -131,12 +120,3 @@ jobs:
with:
name: Experimental Package
path: output/pack

- name: Archive steam logs
uses: actions/upload-artifact@v4
if: always()
with:
name: Experimental Package
path: |
C:\Steam\logs
!C:\Steam\logs\bootstrap_log.txt

0 comments on commit e5af87c

Please sign in to comment.