Skip to content

Commit 2ffb9f1

Browse files
committed
ci: only use powershell
1 parent 2579eb5 commit 2ffb9f1

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,43 +25,33 @@ jobs:
2525
run: |
2626
$env:revision = git describe --tags --always
2727
echo "GIT_REVISION=$env:revision" >> $env:GITHUB_ENV
28-
shell: pwsh
2928
- name: Restore Packages
3029
run: |
3130
nuget restore
32-
shell: cmd
33-
- name: Download latest Spore-ModAPI
31+
- name: Download Spore-ModAPI
3432
run: |
3533
Invoke-WebRequest "${env:modApiUrl}" -OutFile SporeModAPIdlls.zip
3634
Invoke-WebRequest "${env:legacyModApiUrl}" -OutFile SporeModAPIlegacydlls.zip
37-
shell: pwsh
3835
- name: Build modapi-launcher-kit
3936
run: |
40-
msbuild /p:Configuration=Release
41-
shell: cmd
37+
msbuild /p:Configuration=Release /m
4238
- name: Package ModApiUpdate.zip
4339
run: |
44-
"C:\Program Files\7-Zip\7z.exe" e -y SporeModAPIdlls.zip -oOutput\coreLibs
45-
"C:\Program Files\7-Zip\7z.exe" e -y SporeModAPIlegacydlls.zip -oOutput\
46-
47-
copy LegacyLibs\SporeModAPI-disk.dll Output\SporeModAPI-disk.dll
48-
copy LegacyLibs\SporeModAPI-steam_patched.dll Output\SporeModAPI-steam_patched.dll
40+
& "C:\Program Files\7-Zip\7z.exe" e -y SporeModAPIdlls.zip -oOutput\coreLibs
41+
& "C:\Program Files\7-Zip\7z.exe" e -y SporeModAPIlegacydlls.zip -oOutput\
4942
5043
cd Output
51-
"C:\Program Files\7-Zip\7z" a -tzip "..\ModApiUpdate.zip" *
52-
shell: cmd
44+
& "C:\Program Files\7-Zip\7z" a -tzip "..\ModApiUpdate.zip" *
5345
- name: Build ModApi.InterimSetup
5446
run: |
55-
copy /Y ModApiUpdate.zip ModApi.InterimSetup\ModApi.InterimSetup\Resources\ModApiUpdate.zip
47+
Copy -Force ModApiUpdate.zip ModApi.InterimSetup\ModApi.InterimSetup\Resources\ModApiUpdate.zip
5648
5749
msbuild ModApi.InterimSetup /p:Configuration=Release
58-
shell: cmd
5950
- name: Build ModApi.Updater
6051
run: |
61-
copy /Y ModApiUpdate.zip Updater\ModApi.Updater\Resources\ModApiUpdate.zip
52+
Copy -Force ModApiUpdate.zip Updater\ModApi.Updater\Resources\ModApiUpdate.zip
6253
6354
msbuild Updater /p:Configuration=Release
64-
shell: cmd
6555
- name: Upload ModApi.InterimSetup
6656
uses: actions/upload-artifact@v4
6757
with:

0 commit comments

Comments
 (0)