Update build.yml

This commit is contained in:
Mark McDowall 2023-12-24 14:47:38 -08:00
parent b1a894a1f3
commit 899771cdeb
3 changed files with 10 additions and 24 deletions

View File

@ -1,19 +0,0 @@
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
name: Set up environment
description: Runs setup actions and installs packages
inputs:
framework:
description: '.net framework'
required: true
runtime:
description: '.net runtime'
required: true
runs:
using: 'composite'
steps:
- run: |
echo "Packaging ${{inputs.framework}} ${{inputs.runtime}}"
shell: bash

View File

@ -14,23 +14,30 @@ concurrency:
cancel-in-progress: true
env:
SOLUTION_FILE: src/Sonarr.sln
SONARR_MAJOR_VERSION: 4
VERSION: 4.0.0
jobs:
build_backend:
runs-on: windows-latest
steps:
- name: Check out
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
- name: Setup Environment Variables
shell: bash
run: |
DOTNET_VERSION=$(jq -r '.sdk.version' global.json)
echo "SDK_PATH=${{ env.DOTNET_ROOT }}/sdk/${DOTNET_VERSION}" >> "$GITHUB_ENV"
echo "SONARR_VERSION=${{ env.VERSION }}.${{ env.GITHUB_RUN_NUMBER }}" >> "$GITHUB_ENV"
- name: Enable Extra Platforms In SDK
shell: bash
run: ./build.sh --enable-extra-platforms-in-sdk
- name: Build Backend
shell: bash
run: ./build.sh --backend --enable-extra-platforms --packages

View File

@ -7,16 +7,14 @@ artifactsFolder="_artifacts";
ProgressStart()
{
echo "##teamcity[blockOpened name='$1']"
echo "##teamcity[progressStart '$1']"
echo "::group::$1"
echo "Start '$1'"
}
ProgressEnd()
{
echo "Finish '$1'"
echo "##teamcity[progressFinish '$1']"
echo "##teamcity[blockClosed name='$1']"
echo "::endgroup::"
}
UpdateVersionNumber()