Skip to content

Commit

Permalink
Pin .NET version in GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jfversluis committed Nov 18, 2024
1 parent fcca3af commit dd05139
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci-sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,21 @@ on:
pull_request:
branches: [ "main" ]

env:
DOTNET_VERSION: '9.0.x' # The .NET SDK version to use

jobs:
build-sample-ci:

runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Build
run: dotnet build samples\Plugin.Maui.Feature.Sample.sln -c Release
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,21 @@ on:
pull_request:
branches: [ "main" ]

env:
DOTNET_VERSION: '9.0.x' # The .NET SDK version to use

jobs:
build-plugin-ci:

runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Build
run: dotnet build src\Plugin.Maui.Feature.sln -c Release
10 changes: 10 additions & 0 deletions .github/workflows/release-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,23 @@ on:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-preview[0-9]+"

env:
DOTNET_VERSION: '9.0.x' # The .NET SDK version to use

jobs:
release-nuget:

runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Verify commit exists in origin/main
run: |
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
Expand Down

0 comments on commit dd05139

Please sign in to comment.