Skip to content

Commit

Permalink
Update .net 9 target on all projects and github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
helto4real committed Nov 17, 2024
1 parent 53e684b commit 38cc9ec
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

If user exposed functionality or configuration are added/changed:

- [ ] Documentation added/updated for http://netdaemon.xtz
- [ ] Documentation added/updated for https://netdaemon.xyz


<!--
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ jobs:
- name: 📤 Checkout the repository
uses: actions/checkout@main

- name: 🥅 Install .Net 8
- name: 🥅 Install .Net 9
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
dotnet-quality: 'preview'
dotnet-version: '9.0.x'
- name: 🔍 Enable problem matchers
run: echo "::add-matcher::.github/matchers/dotnet.json"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push_docker_addon_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ jobs:
--no-cache \
--file ./Dockerfile.AddOn . \
--compress \
--tag "netdaemon/netdaemon_addon4:feature-${{ github.event.inputs.tag }}" \
--tag "ghcr.io/netdaemon_addon4:feature-${{ github.event.inputs.tag }}"
--tag "netdaemon/netdaemon_addon5:feature-${{ github.event.inputs.tag }}" \
--tag "ghcr.io/netdaemon_addon5:feature-${{ github.event.inputs.tag }}"
4 changes: 2 additions & 2 deletions .github/workflows/push_docker_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,5 @@ jobs:
--no-cache \
--file ./Dockerfile.AddOn . \
--compress \
--tag "netdaemon/netdaemon_addon4:feature-${{ github.event.inputs.tag }}" \
--tag "ghcr.io/net-daemon/netdaemon_addon4:feature-${{ github.event.inputs.tag }}"
--tag "netdaemon/netdaemon_addon5:feature-${{ github.event.inputs.tag }}" \
--tag "ghcr.io/net-daemon/netdaemon_addon5:feature-${{ github.event.inputs.tag }}"
4 changes: 2 additions & 2 deletions .github/workflows/push_docker_prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@ jobs:
--no-cache \
--file ./Dockerfile.AddOn . \
--compress \
--tag "netdaemon/netdaemon_addon4:${{ github.event.inputs.pre }}" \
--tag "ghcr.io/net-daemon/netdaemon_addon4:${{ github.event.inputs.pre }}"
--tag "netdaemon/netdaemon_addon5:${{ github.event.inputs.pre }}" \
--tag "ghcr.io/net-daemon/netdaemon_addon5:${{ github.event.inputs.pre }}"
6 changes: 3 additions & 3 deletions .github/workflows/push_nuget_prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ jobs:
echo "version=$datepre.$newpost" >> $GITHUB_OUTPUT
# Get the build number
echo "build=$(git rev-list $(git rev-list --tags --no-walk --max-count=1)..HEAD --count)" >> $GITHUB_OUTPUT
- name: 🥅 Install .Net 8
- name: 🥅 Install .Net 9
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
dotnet-quality: 'preview'
dotnet-version: '9.0.x'
# dotnet-quality: 'preview'
- name: 🔖 Set version number
run: |
sed -i "/ private const string Version = /c\ private const string Version = \"${{ steps.version.outputs.version }}-${{ github.event.inputs.pre }}-${{ steps.version.outputs.build }}\";" ${{github.workspace}}/src/Runtime/NetDaemon.Runtime/Internal/NetDaemonRuntime.cs
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tags_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ jobs:
--no-cache \
--file ./Dockerfile.AddOn . \
--compress \
--tag netdaemon/netdaemon_addon4:${{ steps.version.outputs.version }} \
--tag netdaemon/netdaemon_addon4:latest \
--tag ghcr.io/net-daemon/netdaemon_addon4:${{ steps.version.outputs.version }} \
--tag ghcr.io/net-daemon/netdaemon_addon4:latest
--tag netdaemon/netdaemon_addon5:${{ steps.version.outputs.version }} \
--tag netdaemon/netdaemon_addon5:latest \
--tag ghcr.io/net-daemon/netdaemon_addon5:${{ steps.version.outputs.version }} \
--tag ghcr.io/net-daemon/netdaemon_addon5:latest
deploy_docker:
name: 📦 Deploy to Docker Hub
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tags_nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
echo Current version: $latest
echo "::set-output name=version::$latest"
- name: 🥅 Install .Net 8
- name: 🥅 Install .Net 9
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x" # SDK Version
dotnet-version: "9.0.x" # SDK Version

- name: 🔖 Set version number
run: |
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- main
- dev
- dotnet8

jobs:
test:
Expand Down Expand Up @@ -34,4 +33,4 @@ jobs:
--output "type=image,push=false" \
--no-cache \
--file ./${{ matrix.dockerfile }} . \
--tag netdaemon/netdaemon4:dev
--tag netdaemon/netdaemon5:dev
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<LangVersion>12.0</LangVersion>
<LangVersion>13.0</LangVersion>
</PropertyGroup>

<PropertyGroup>
Expand All @@ -11,7 +11,7 @@

<!--Some sensible defaults for all projects, can be overriden in the projects themselves-->
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<IsPackable>false</IsPackable>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
4 changes: 2 additions & 2 deletions src/debug/MyNDApp/MyNDApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>12.0</LangVersion>
<TargetFramework>net9.0</TargetFramework>
<LangVersion>13.0</LangVersion>
<Nullable>enable</Nullable>
<RootNamespace>Debug</RootNamespace>
<IsPackable>false</IsPackable>
Expand Down

0 comments on commit 38cc9ec

Please sign in to comment.