fix collecting artifact #9
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
on: | |
push: {} | |
pull_request: {} | |
jobs: | |
windows: | |
runs-on: windows-2022 | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- | |
name: "Download BASS" | |
shell: powershell | |
run: | | |
$wc = New-Object System.Net.WebClient | |
$wc.DownloadFile("http://www.un4seen.com/files/bass24.zip", (Join-Path ($pwd).path "bass24.zip")) | |
$wc.DownloadFile("http://www.un4seen.com/files/z/2/bass_aac24.zip", (Join-Path ($pwd).path "bass_aac24.zip")) | |
$wc.DownloadFile("http://www.un4seen.com/files/z/2/bass_ac324.zip", (Join-Path ($pwd).path "bass_ac324.zip")) | |
$wc.DownloadFile("http://www.un4seen.com/files/z/2/bass_ape24.zip", (Join-Path ($pwd).path "bass_ape24.zip")) | |
$wc.DownloadFile("http://www.un4seen.com/files/z/2/bass_mpc24.zip", (Join-Path ($pwd).path "bass_mpc24.zip")) | |
$wc.DownloadFile("http://www.un4seen.com/files/z/2/bass_spx24.zip", (Join-Path ($pwd).path "bass_spx24.zip")) | |
$wc.DownloadFile("http://www.un4seen.com/files/bassalac24.zip", (Join-Path ($pwd).path "bassalac24.zip")) | |
$wc.DownloadFile("http://www.un4seen.com/files/bassflac24.zip", (Join-Path ($pwd).path "bassflac24.zip")) | |
$wc.DownloadFile("http://www.un4seen.com/files/bassopus24.zip", (Join-Path ($pwd).path "bassopus24.zip")) | |
$wc.DownloadFile("http://www.un4seen.com/files/basswm24.zip", (Join-Path ($pwd).path "basswm24.zip")) | |
$wc.DownloadFile("http://www.un4seen.com/files/basswv24.zip", (Join-Path ($pwd).path "basswv24.zip")) | |
& 7z --% x bass24.zip -obass24 -r | |
& 7z --% x bass_aac24.zip -obass_aac24 -r | |
& 7z --% x bass_ac324.zip -obass_ac324 -r | |
& 7z --% x bass_ape24.zip -obass_ape24 -r | |
& 7z --% x bass_mpc24.zip -obass_mpc24 -r | |
& 7z --% x bass_spx24.zip -obass_spx24 -r | |
& 7z --% x bassalac24.zip -obassalac24 -r | |
& 7z --% x bassflac24.zip -obassflac24 -r | |
& 7z --% x bassopus24.zip -obassopus24 -r | |
& 7z --% x basswm24.zip -obasswm24 -r | |
& 7z --% x basswv24.zip -obasswv24 -r | |
Copy-Item "bass24\c\bass.h" -Destination tcview\tcview | |
Copy-Item "bass24\c\bass.lib" -Destination "tcview\tcview\bass_x86.lib" | |
Copy-Item "bass24\c\x64\bass.lib" -Destination "tcview\tcview\bass_x64.lib" | |
- | |
name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
with: | |
msbuild-architecture: x86 | |
- | |
name: "Build x86" | |
run: msbuild tcview\tcview.sln /p:Configuration=Release /p:Platform=x86 | |
- | |
name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
with: | |
msbuild-architecture: x64 | |
- | |
name: "Build x64" | |
run: msbuild tcview\tcview.sln /p:Configuration=Release /p:Platform=x64 | |
- | |
name: Build artifact | |
shell: powershell | |
run: | | |
New-Item -Path dist\tcview\x86 -ItemType directory | |
Copy-Item tcview\\Release\tcview.wlx -Destination dist\tcview\tcview.wlx | |
Copy-Item bass24\bass.dll -Destination dist\tcview\x86\bass.dll | |
Copy-Item bass_aac24\bass_aac.dll -Destination dist\tcview\x86\bass_aac.dll | |
Copy-Item bass_ac324\bass_ac3.dll -Destination dist\tcview\x86\bass_ac3.dll | |
Copy-Item bass_ape24\bass_ape.dll -Destination dist\tcview\x86\bass_ape.dll | |
Copy-Item bass_mpc24\bass_mpc.dll -Destination dist\tcview\x86\bass_mpc.dll | |
Copy-Item bass_spx24\bass_spx.dll -Destination dist\tcview\x86\bass_spx.dll | |
Copy-Item bassalac24\bassalac.dll -Destination dist\tcview\x86\bassalac.dll | |
Copy-Item bassflac24\bassflac.dll -Destination dist\tcview\x86\bassflac.dll | |
Copy-Item bassopus24\bassopus.dll -Destination dist\tcview\x86\bassopus.dll | |
Copy-Item basswm24\basswma.dll -Destination dist\tcview\x86\basswma.dll | |
Copy-Item basswv24\basswv.dll -Destination dist\tcview\x86\basswv.dll | |
New-Item -Path dist\tcview\x64 -ItemType directory | |
Copy-Item tcview\x64\Release\tcview.wlx64 -Destination dist\tcview\tcview.wlx64 | |
Copy-Item bass24\x64\bass.dll -Destination dist\tcview\x64\bass.dll | |
Copy-Item bass_aac24\x64\bass_aac.dll -Destination dist\tcview\x64\bass_aac.dll | |
Copy-Item bass_ac324\x64\bass_ac3.dll -Destination dist\tcview\x64\bass_ac3.dll | |
Copy-Item bass_ape24\x64\bass_ape.dll -Destination dist\tcview\x64\bass_ape.dll | |
Copy-Item bass_mpc24\x64\bass_mpc.dll -Destination dist\tcview\x64\bass_mpc.dll | |
Copy-Item bass_spx24\x64\bass_spx.dll -Destination dist\tcview\x64\bass_spx.dll | |
Copy-Item bassalac24\x64\bassalac.dll -Destination dist\tcview\x64\bassalac.dll | |
Copy-Item bassflac24\x64\bassflac.dll -Destination dist\tcview\x64\bassflac.dll | |
Copy-Item bassopus24\x64\bassopus.dll -Destination dist\tcview\x64\bassopus.dll | |
Copy-Item basswm24\x64\basswma.dll -Destination dist\tcview\x64\basswma.dll | |
Copy-Item basswv24\x64\basswv.dll -Destination dist\tcview\x64\basswv.dll | |
- | |
name: "Upload artifacts" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "TCView" | |
path: dist/tcview |