Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanJosipovic committed Jan 17, 2024
1 parent 92c0d9e commit 0bc6ddc
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 4 deletions.
44 changes: 43 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,52 @@ jobs:
- name: Dotnet Build
run: dotnet build -c Release

- name: Dotnet Publish
- name: Dotnet Publish Browser
working-directory: src/AvaloniaTetris.Browser
run: dotnet publish -c Release

- name: Dotnet Publish win-x64
working-directory: src/AvaloniaTetris.Desktop
run: dotnet publish -c Release -r win-x64 /p:DebugType=None /p:DebugSymbols=false -o /dist

- name: Rename
run: mv /dist/AvaloniaTetris.Desktop.exe /dist/AvaloniaTetris.Desktop.win-x64.exe

- name: Dotnet Publish win-arm64
working-directory: src/AvaloniaTetris.Desktop
run: dotnet publish -c Release -r win-arm64 /p:DebugType=None /p:DebugSymbols=false -o /dist

- name: Rename
run: mv /dist/AvaloniaTetris.Desktop.exe /dist/AvaloniaTetris.Desktop.win-arm64.exe

- name: Dotnet Publish linux-x64
working-directory: src/AvaloniaTetris.Desktop
run: dotnet publish -c Release -r linux-x64 /p:DebugType=None /p:DebugSymbols=false -o /dist

- name: Rename
run: mv /dist/AvaloniaTetris.Desktop /dist/AvaloniaTetris.Desktop.linux-x64

- name: Dotnet Publish linux-arm64
working-directory: src/AvaloniaTetris.Desktop
run: dotnet publish -c Release -r linux-arm64 /p:DebugType=None /p:DebugSymbols=false -o /dist

- name: Rename
run: mv /dist/AvaloniaTetris.Desktop /dist/AvaloniaTetris.Desktop.linux-arm64

- name: Dotnet Publish osx-x64
working-directory: src/AvaloniaTetris.Desktop
run: dotnet publish -c Release -r osx-x64 /p:DebugType=None /p:DebugSymbols=false -o /dist

- name: Rename
run: mv /dist/AvaloniaTetris.Desktop /dist/AvaloniaTetris.Desktop.macos-x64

- name: Dotnet Publish osx-arm64
working-directory: src/AvaloniaTetris.Desktop
run: dotnet publish -c Release -r osx-arm64 /p:DebugType=None /p:DebugSymbols=false -o /dist

- name: Rename
run: mv /dist/AvaloniaTetris.Desktop /dist/AvaloniaTetris.Desktop.osx-arm64

- name: Setup Node
uses: actions/setup-node@v4
with:
Expand Down
6 changes: 5 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
[
"@semantic-release/github",
{
"assets": []
"assets": [
{
"path": "dist/**"
}
]
}
]
]
Expand Down
3 changes: 3 additions & 0 deletions src/AvaloniaTetris.Desktop/AvaloniaTetris.Desktop.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<Nullable>enable</Nullable>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<ApplicationManifest>app.manifest</ApplicationManifest>
<PublishSingleFile>true</PublishSingleFile>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<PublishTrimmed>true</PublishTrimmed>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 1 addition & 2 deletions src/AvaloniaTetris/Game.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Avalonia.Controls;
using Avalonia.Threading;
using Avalonia.Threading;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using System;
Expand Down

0 comments on commit 0bc6ddc

Please sign in to comment.