Skip to content

Commit

Permalink
Use .NET9
Browse files Browse the repository at this point in the history
  • Loading branch information
couchoud-t committed Dec 18, 2024
1 parent b044459 commit afd1c8a
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x
- name: Build
run: dotnet build PowerToys-Run-Tempo.sln --configuration Release /p:Platform=${{matrix.platform}} /p:EnableWindowsTargeting=true
- name: Prepare artifact
Expand Down
48 changes: 12 additions & 36 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,23 @@
name: Release

on:
push:
tags:
- "*.*.*"
release:
types: [ published ]

env:
PLUGIN_NAME: Tempo
permissions:
contents: write

jobs:
publish:
name: Add artifact to release (${{matrix.platform}})
runs-on: windows-latest
permissions:
contents: write
concurrency: zip_${{matrix.platform}}
uses: RakambdaOrg/rakambda-github-workflows/.github/workflows/powertoys-run-publish.yml@main
strategy:
matrix:
platform:
platform:
- x64
- ARM64
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet build PowerToys-Run-Tempo.sln --configuration Release /p:Platform=${{matrix.platform}} /p:EnableWindowsTargeting=true
- name: Prepare artifact
run: |
Remove-Item -Path Community.PowerToys.Run.Plugin.Tempo\bin\* -Recurse -Include *.xml, *.pdb, PowerToys.*, Wox.*
Rename-Item -Path Community.PowerToys.Run.Plugin.Tempo\bin\${{matrix.platform}}\Release -NewName $env:PLUGIN_NAME
if (Test-Path -Path "${{env.PLUGIN_NAME}}-${{matrix.platform}}.zip")
{
Remove-Item -Path "${{env.PLUGIN_NAME}}-${{matrix.platform}}.zip"
}
Compress-Archive -Path Community.PowerToys.Run.Plugin.Tempo\bin\${{matrix.platform}}\$env:PLUGIN_NAME -DestinationPath "${{env.PLUGIN_NAME}}-${{matrix.platform}}.zip"
- name: Release
uses: softprops/[email protected]
with:
fail_on_unmatched_files: false
generate_release_notes: true
files: |
${{env.PLUGIN_NAME}}-${{matrix.platform}}.zip
with:
dotnet-version: "9.0.x"
plugin-name: "Tempo"
platform: ${{ matrix.platform }}
solution-path: "PowerToys-Run-Tempo.sln"
project-path: "Community.PowerToys.Run.Plugin.Tempo"
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<TargetFramework>net9.0-windows</TargetFramework>
<Platforms>x64;ARM64</Platforms>
<PlatformTarget>$(Platform)</PlatformTarget>
<RootNamespace>PowerToys-Run-Tempo-UnitTest</RootNamespace>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<TargetFramework>net9.0-windows</TargetFramework>
<Platforms>x64;ARM64</Platforms>
<PlatformTarget>$(Platform)</PlatformTarget>
<UseWPF>true</UseWPF>
Expand Down
2 changes: 1 addition & 1 deletion Community.PowerToys.Run.Plugin.Tempo/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"IsGlobal": false,
"Name": "Tempo",
"Author": "Rakambda,muller-j",
"Version": "0.0.2",
"Version": "0.0.0",
"Language": "csharp",
"Website": "https://github.com/RakambdaOrg/PowerToys-Run-Tempo",
"ExecuteFileName": "Community.PowerToys.Run.Plugin.Tempo.dll",
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.0",
"version": "9.0.0",
"rollForward": "latestMajor",
"allowPrerelease": true
}
Expand Down

0 comments on commit afd1c8a

Please sign in to comment.