Skip to content

Commit

Permalink
Merge pull request #77 from SharpAdb/feature/csupdate
Browse files Browse the repository at this point in the history
Upgrade C# language version to 12.0
  • Loading branch information
wherewhere committed Nov 14, 2023
2 parents 77ea6d0 + 9781d3d commit 871f6ee
Show file tree
Hide file tree
Showing 213 changed files with 12,695 additions and 8,839 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ body:
- ".NET 6"
- ".NET 7"
- ".NET 8"
- ".NET 9"
- "Others"
- type: dropdown
attributes:
Expand Down
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: Question
url: https://github.com/SharpAdb/AdvancedSharpAdbClient/discussions/new?category=q-a
about: Ask a question
- name: Discussion
url: https://github.com/SharpAdb/AdvancedSharpAdbClient/discussions/new?category=general
about: Start a discussion
12 changes: 0 additions & 12 deletions .github/ISSUE_TEMPLATE/question.yaml

This file was deleted.

17 changes: 10 additions & 7 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
pull_request:
branches:
- main
paths:
- '.github/workflows/build-and-test.yml'
- 'AdvancedSharpAdbClient**'
workflow_dispatch:

env:
Expand All @@ -23,15 +26,14 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup .NET Core App
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
dotnet-quality: 'preview'

- name: Install Dependencies
run: dotnet restore -p:FullTargets=false
Expand All @@ -40,24 +42,23 @@ jobs:
run: dotnet build --no-restore -p:FullTargets=false

- name: Test
run: dotnet test --no-restore -p:FullTargets=false
run: dotnet test --no-restore --blame-hang-timeout 1m -p:FullTargets=false

pack-and-publish:
name: pack-and-publish
needs: build-and-test
runs-on: ubuntu-latest
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup .NET Core App
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
dotnet-quality: 'preview'

- name: Install Dependencies
run: dotnet restore -p:FullTargets=true
Expand All @@ -67,7 +68,9 @@ jobs:

- name: Publish
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
run: dotnet nuget push ./nugets/*nupkg --source https://nuget.pkg.github.com/SharpAdb/index.json --skip-duplicate --api-key ${{ secrets.NUGET_KEY }}
run: dotnet nuget push nugets/**.nupkg --source $env:NUGET_SOURCE --skip-duplicate --api-key ${{ secrets.NUGET_KEY }}
env:
NUGET_SOURCE: https://nuget.pkg.github.com/SharpAdb/index.json

- name: Upload
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 871f6ee

Please sign in to comment.