Skip to content

Commit

Permalink
update build ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Scighost committed Sep 1, 2023
1 parent ad5c26a commit cbca8e8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 35 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,21 @@ jobs:
- name: Setup MSBuild
uses: microsoft/[email protected]

- name: SHA
id: sha
run: echo "sha=$("${{ github.sha }}".SubString(0, 7))" >> $env:GITHUB_OUTPUT

- name: Build
run: |
msbuild src/Starward.Launcher "-property:Configuration=$env:Configuration;Platform=$env:Platform"
dotnet build src/Starward -c $env:Configuration -p:Platform=$env:Platform
$sha = "${{ steps.sha.outputs.sha }}"
New-Item -Path "build/Starward/" -Type Directory
msbuild src/Starward.Launcher "-property:Configuration=$env:Configuration;Platform=$env:Platform;OutDir=$(Resolve-Path "build/Starward/")"
dotnet build src/Starward -c $env:Configuration -o "build/Starward/app-build.$sha" -p:Platform=$env:Platform -p:Version="100-build.$sha"
Add-Content "build/Starward/version.ini" -Value "app_folder=app-build.$sha`r`nexe_name=Starward.exe"
Remove-Item "build/Starward/Starward.pdb" -Force
- name: Upload Artifact
uses: actions/[email protected]
with:
name: Starward_${{ matrix.configuration }}_${{ matrix.platform }}_${{ steps.sha.outputs.sha }}
path: build/Starward/
32 changes: 0 additions & 32 deletions .github/workflows/l10n.yml

This file was deleted.

0 comments on commit cbca8e8

Please sign in to comment.