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

View File

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