Skip to content

Commit 0011113

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

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,40 +25,35 @@ 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
3331
- name: Download latest 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\
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\
4642
47-
copy LegacyLibs\SporeModAPI-disk.dll Output\SporeModAPI-disk.dll
48-
copy LegacyLibs\SporeModAPI-steam_patched.dll Output\SporeModAPI-steam_patched.dll
43+
Copy LegacyLibs\SporeModAPI-disk.dll Output\SporeModAPI-disk.dll
44+
Copy LegacyLibs\SporeModAPI-steam_patched.dll Output\SporeModAPI-steam_patched.dll
4945
5046
cd Output
51-
"C:\Program Files\7-Zip\7z" a -tzip "..\ModApiUpdate.zip" *
52-
shell: cmd
47+
& "C:\Program Files\7-Zip\7z" a -tzip "..\ModApiUpdate.zip" *
5348
- name: Build ModApi.InterimSetup
5449
run: |
55-
copy /Y ModApiUpdate.zip ModApi.InterimSetup\ModApi.InterimSetup\Resources\ModApiUpdate.zip
50+
Copy -Force ModApiUpdate.zip ModApi.InterimSetup\ModApi.InterimSetup\Resources\ModApiUpdate.zip
5651
5752
msbuild ModApi.InterimSetup /p:Configuration=Release
5853
shell: cmd
5954
- name: Build ModApi.Updater
6055
run: |
61-
copy /Y ModApiUpdate.zip Updater\ModApi.Updater\Resources\ModApiUpdate.zip
56+
Copy -Force ModApiUpdate.zip Updater\ModApi.Updater\Resources\ModApiUpdate.zip
6257
6358
msbuild Updater /p:Configuration=Release
6459
shell: cmd

0 commit comments

Comments
 (0)