Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request]
jobs:
build:

runs-on: ubuntu-latest
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
Expand All @@ -20,14 +20,14 @@ jobs:
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Publish for win-x64
run: dotnet publish -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:PublishTrimmed=True
run: dotnet publish -c Release -r win-x64 --self-contained true
- name: Publish for win-arm64
run: dotnet publish -c Release -r win-arm64 --self-contained true -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:PublishTrimmed=True
run: dotnet publish -c Release -r win-arm64 --self-contained true
- uses: actions/upload-artifact@v3
with:
name: release-win-x64
path: /home/runner/work/EnergyStar/EnergyStar/EnergyStar/bin/Release/net6.0/win-x64/publish/EnergyStar.exe
path: ${{ github.workspace }}/EnergyStar/bin/Release/net6.0/win-x64/publish/EnergyStar.exe
- uses: actions/upload-artifact@v3
with:
name: release-win-arm64
path: /home/runner/work/EnergyStar/EnergyStar/EnergyStar/bin/Release/net6.0/win-arm64/publish/EnergyStar.exe
path: ${{ github.workspace }}/EnergyStar/bin/Release/net6.0/win-arm64/publish/EnergyStar.exe
4 changes: 4 additions & 0 deletions EnergyStar/EnergyStar.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@
<Folder Include="Config\" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.DotNet.ILCompiler; runtime.win-x64.Microsoft.DotNet.ILCompiler" Version="7.0.0-preview.6.22324.4" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ steps:
command: 'publish'
publishWebProjects: false
projects: 'EnergyStar/EnergyStar.csproj'
arguments: '-c ReleaseInvisible -r win-x64 --self-contained true -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:PublishTrimmed=True'
arguments: '-c ReleaseInvisible -r win-x64 --self-contained true'
zipAfterPublish: false
modifyOutputPath: false

Expand All @@ -33,7 +33,7 @@ steps:
command: 'publish'
publishWebProjects: false
projects: 'EnergyStar/EnergyStar.csproj'
arguments: '-c ReleaseInvisible -r win-arm64 --self-contained true -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:PublishTrimmed=True'
arguments: '-c ReleaseInvisible -r win-arm64 --self-contained true'
zipAfterPublish: false
modifyOutputPath: false

Expand Down