Skip to content

Commit

Permalink
Fix source checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
veteran29 committed Dec 29, 2024
1 parent e5af87c commit 490dabd
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions .github/workflows/workbench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,31 @@ jobs:
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}

- name: Checkout upstream
uses: actions/checkout@v4
with:
path: Upstream
persist-credentials: false

- name: Steam Client Login
run: |
C:\Steam\steam.exe -silent -login ${env:STEAM_USERNAME} ${env:STEAM_PASSWORD}
${{ github.workspace }}\Mod\tools\steam-check.exe
${{ github.workspace }}\Upstream\tools\steam-check.exe
env:
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}

- name: Checkout
uses: actions/checkout@v4
if: ${{ github.event_name != 'pull_request_target' }}
with:
path: Source
- name: Checkout pull request
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v4
with:
path: Mod
path: Source
ref: 'refs/pull/${{ github.event.number }}/merge'

- name: Workbench build
run: >
Expand All @@ -45,7 +58,7 @@ jobs:
-noThrow
-noSound
-wbModule=ResourceManager
-addonsDir "C:/reforger/addons/,${{ github.workspace }}/Mod/addons/"
-addonsDir "C:/reforger/addons/,${{ github.workspace }}/Source/addons/"
-addons "ArmaForces_Mods_Core"
-profile "${{ github.workspace }}/profile"
-packAddon
Expand Down Expand Up @@ -81,18 +94,31 @@ jobs:
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}

- name: Checkout upstream
uses: actions/checkout@v4
with:
path: Upstream
persist-credentials: false

- name: Steam Client Login
run: |
C:\Steam\steam.exe -silent -login ${env:STEAM_USERNAME} ${env:STEAM_PASSWORD}
${{ github.workspace }}\Mod\tools\steam-check.exe
${{ github.workspace }}\Upstream\tools\steam-check.exe
env:
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}

- name: Checkout
uses: actions/checkout@v4
if: ${{ github.event_name != 'pull_request_target' }}
with:
path: Source
- name: Checkout pull request
if: ${{ github.event_name == 'pull_request_target' }}
uses: actions/checkout@v4
with:
path: Mod
path: Source
ref: 'refs/pull/${{ github.event.number }}/merge'

- name: Experimental build
run: >
Expand All @@ -102,7 +128,7 @@ jobs:
-noThrow
-noSound
-wbModule=ResourceManager
-addonsDir "C:/reforger/addons/,${{ github.workspace }}\Mod/addons/"
-addonsDir "C:/reforger/addons/,${{ github.workspace }}\Source/addons/"
-addons "ArmaForces_Mods_Core"
-profile "${{ github.workspace }}/output/profile"
-packAddon
Expand Down

0 comments on commit 490dabd

Please sign in to comment.