Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading .NET version to .net8 #553

Merged
merged 5 commits into from
Oct 26, 2024
Merged
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
39 changes: 19 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,30 @@ name: Build

on:
push:
branches: [ dev, main, master, '**' ]
branches: [dev, main, master, "**"]
pull_request:
branches: [ dev, main, master ]
branches: [dev, main, master]

jobs:

windows:
name: build on ${{ matrix.os }}
windows:
name: build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest ]
os: [windows-latest]

steps:
- uses: actions/checkout@v4
- name: Setup .NET SDK 6.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- uses: actions/checkout@v4
- name: Setup .NET SDK 8.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x

- name: Show dotnet Version
run: |
dotnet --list-sdks
dotnet --list-runtimes

- name: Show dotnet Version
run: |
dotnet --list-sdks
dotnet --list-runtimes

- name: Build with dotnet
run: |
dotnet build --configuration Release D:\a\EasyCaching\EasyCaching\EasyCaching.sln
- name: Build with dotnet
run: |
dotnet build --configuration Release D:\a\EasyCaching\EasyCaching\EasyCaching.sln
61 changes: 30 additions & 31 deletions .github/workflows/buildandtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@ name: Build&Test

on:
push:
branches: [ dev, main, master, '**' ]
branches: [dev, main, master, "**"]
pull_request:
branches: [ dev, main, master ]
branches: [dev, main, master]

jobs:

linux:
name: build and test on ${{ matrix.os }}
linux:
name: build and test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
os: [ubuntu-latest]

services:
redis6379:
Expand All @@ -27,36 +26,36 @@ jobs:
redis6388:
image: redis
ports:
- 6388:6379
- 6388:6379
memcached1:
image: bitnami/memcached
ports:
- 11211:11211
- 11211:11211
memcached2:
image: bitnami/memcached
ports:
- 11212:11211
- 11212:11211

steps:
- uses: actions/checkout@v4
- name: Setup .NET SDK 6.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Show dotnet Version
run: |
dotnet --list-sdks
dotnet --list-runtimes

- name: Show docker info
run: |
docker ps -a

- name: Build with dotnet
run: |
dotnet build --configuration Release /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln
- name: Run tests on net6.0
run: |
dotnet test --framework=net6.0 /home/runner/work/EasyCaching/EasyCaching/test/EasyCaching.UnitTests/EasyCaching.UnitTests.csproj
- uses: actions/checkout@v4
- name: Setup .NET SDK 8.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x

- name: Show dotnet Version
run: |
dotnet --list-sdks
dotnet --list-runtimes

- name: Show docker info
run: |
docker ps -a

- name: Build with dotnet
run: |
dotnet build --configuration Release /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln

- name: Run tests on net8.0
run: |
dotnet test --framework=net8.0 /home/runner/work/EasyCaching/EasyCaching/test/EasyCaching.UnitTests/EasyCaching.UnitTests.csproj
72 changes: 36 additions & 36 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
name: Release

on:
push:
branches:
push:
branches:
- dev
- master
- main

jobs:
build_artifact:
build_artifact:
name: Build and upload artifact
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Build with dotnet
run: dotnet build --configuration Release /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln
- name: Pack with dotnet
run: dotnet pack /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln --version-suffix alpha`date +%Y%m%d%H%M%S` -o /home/runner/work/nugetpkgs -c Release --no-build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: nugetpkgs
path: /home/runner/work/nugetpkgs
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Build with dotnet
run: dotnet build --configuration Release /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln
- name: Pack with dotnet
run: dotnet pack /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln --version-suffix alpha`date +%Y%m%d%H%M%S` -o /home/runner/work/nugetpkgs -c Release --no-build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: nugetpkgs
path: /home/runner/work/nugetpkgs

release_nuget:
name: Release to Nuget
needs: build_artifact
runs-on: ubuntu-latest
steps:
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: nugetpkgs
path: nugetpkgs
- name: list nugetpkgs
run: ls nugetpkgs
- name: Release
run: |
for file in nugetpkgs/*.nupkg
do
dotnet nuget push $file -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate -s https://www.nuget.org/api/v2/package
done
name: Release to Nuget
needs: build_artifact
runs-on: ubuntu-latest

steps:
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: nugetpkgs
path: nugetpkgs
- name: list nugetpkgs
run: ls nugetpkgs
- name: Release
run: |
for file in nugetpkgs/*.nupkg
do
dotnet nuget push $file -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate -s https://www.nuget.org/api/v2/package
done
76 changes: 38 additions & 38 deletions .github/workflows/release_stable.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
name: Release_Stable

on:
push:
tags:
- '**'
push:
tags:
- "**"

jobs:
build_artifact:
build_artifact:
name: Build and upload artifact
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Build with dotnet
run: dotnet build --configuration Release /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln
- name: Pack with dotnet
run: dotnet pack /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln -o /home/runner/work/nugetpkgs -c Release --no-build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: nugetpkgs
path: /home/runner/work/nugetpkgs
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Build with dotnet
run: dotnet build --configuration Release /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln
- name: Pack with dotnet
run: dotnet pack /home/runner/work/EasyCaching/EasyCaching/EasyCaching.sln -o /home/runner/work/nugetpkgs -c Release --no-build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: nugetpkgs
path: /home/runner/work/nugetpkgs

release_nuget:
name: Release to Nuget
needs: build_artifact
runs-on: ubuntu-latest
steps:
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: nugetpkgs
path: nugetpkgs
- name: list nugetpkgs
run: ls nugetpkgs
- name: Release
run: |
for file in nugetpkgs/*.nupkg
do
dotnet nuget push $file -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate -s https://www.nuget.org/api/v2/package
done
name: Release to Nuget
needs: build_artifact
runs-on: ubuntu-latest

steps:
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: nugetpkgs
path: nugetpkgs
- name: list nugetpkgs
run: ls nugetpkgs
- name: Release
run: |
for file in nugetpkgs/*.nupkg
do
dotnet nuget push $file -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate -s https://www.nuget.org/api/v2/package
done
Loading
Loading