Skip to content

Commit

Permalink
move winavara.zip task into a ps1, add a ps1 for creating GitVersion.h
Browse files Browse the repository at this point in the history
  • Loading branch information
assertivist committed Mar 25, 2024
1 parent a2b2711 commit c716331
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/avara-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,15 @@ jobs:
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
- name: Build
run: msbuild /m /p:Platform=x64 /p:Configuration=Release .\Avara.msvc\Avara.sln
run: |
.\bin\git_version.ps1
msbuild /m /p:Platform=x64 /p:Configuration=Release .\Avara.msvc\Avara.sln
shell: pwsh
- name: Run headless test
run: .\Avara.msvc\x64\Release\Tests.exe
shell: pwsh
- name: WinAvara archive
run: |
mkdir WinAvara
cp .\Avara.msvc\x64\Release\*.exe WinAvara
cp .\Avara.msvc\x64\Release\*.dll WinAvara
cp -r .\levels WinAvara
cp -r .\rsrc WinAvara
Compress-Archive -Path .\WinAvara -DestinationPath .\WinAvara.zip
run: .\bin\winavarazip.ps1
shell: pwsh
- name: deploy main nightly
if: startsWith(github.repository_owner, 'avaraline') && endsWith(github.ref, 'main')
Expand Down
1 change: 1 addition & 0 deletions bin/git_version.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
'#define GIT_VERSION "{0}"' -f (git describe --always --dirty) | Out-File -FilePath .\src\util\GitVersion.h
6 changes: 6 additions & 0 deletions bin/winavarazip.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
mkdir WinAvara
cp .\Avara.msvc\x64\Release\*.exe WinAvara
cp .\Avara.msvc\x64\Release\*.dll WinAvara
cp -r .\levels WinAvara
cp -r .\rsrc WinAvara
Compress-Archive -Path .\WinAvara -DestinationPath .\WinAvara.zip

0 comments on commit c716331

Please sign in to comment.