Skip to content

Increase High Alt Flight experiment reward to account for body modifi… #3586

Increase High Alt Flight experiment reward to account for body modifi…

Increase High Alt Flight experiment reward to account for body modifi… #3586

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: build
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master, NotBudgets ]
pull_request:
branches: [ master, NotBudgets ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
KSP_ROOT: /tmp/ksp
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
check-secret:
uses: KSP-RO/BuildTools/.github/workflows/check-secret.yml@master
secrets:
KSP_ZIP_PASSWORD: ${{ secrets.KSP_ZIP_PASSWORD }}
validate-cfg-files:
uses: KSP-RO/BuildTools/.github/workflows/validate-cfg-files.yml@master
build:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
needs: [check-secret]
if: needs.check-secret.outputs.has-password == 'true'
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 100
- name: Download required assemblies
id: download-assemblies
uses: KSP-RO/BuildTools/download-assemblies-v2@master
with:
KSP_ZIP_PASSWORD: ${{ secrets.KSP_ZIP_PASSWORD }}
dependency-identifiers: |
Harmony2
ClickThroughBlocker
ContractConfigurator
FerramAerospaceResearchContinued
Kerbalism
KSPCommunityFixes
ModularFlightIntegrator
RealAntennas
RealFuels
ROUtils
SolverEngines
ToolbarController
- name: Get SHA
id: get-sha
run: |
EVENTNAME=${{github.event_name}}
if [ $EVENTNAME = 'pull_request' ]; then
GIT_SHA=${{github.event.pull_request.head.sha}}
else
GIT_SHA=$GITHUB_SHA
fi
echo "commit_sha=$GIT_SHA" >> $GITHUB_ENV
echo commit SHA: $GIT_SHA
INFO_TEXT="3.0.0.0-$(echo $GIT_SHA | cut -c1-7)-$(date -u '+%y%m%dT%H%M')"
echo "info_text=$INFO_TEXT" >> $GITHUB_ENV
echo Info Text: $INFO_TEXT
# Install .NET SDKs
- name: Setup .NET Core 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: Setup .NET 5.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Update AssemblyInfo
uses: KSP-RO/BuildTools/update-assembly-info@AssemblyInformationalVersion
with:
path: ${{ github.workspace }}/Source/RP0/Properties/AssemblyInfo.cs
tag: "3.0.0.0"
informational-version: ${{env.info_text}}
- name: Build mod solution
run: msbuild ${{ github.workspace }}/Source/RP0.sln /t:build /restore /p:RestorePackagesConfig=true /p:Configuration=Release /p:ReferencePath="${{ steps.download-assemblies.outputs.ksp-dll-path }}" /p:KSPRoot="${{ env.KSP_ROOT }}"
- name: Remove excess DLLs
uses: KSP-RO/BuildTools/remove-excess-dlls@master
with:
path: ${{ github.workspace }}/GameData/
- name: Build metadata
uses: KSP-RO/BuildTools/update-version-file@master
with:
path: ${{ github.workspace }}/GameData/RP-1/RP-1.version
tag: "v3.0.0.0"
- name: Assemble release
id: assemble-release
run: |
RELEASE_DIR="${RUNNER_TEMP}/release"
echo "Release dir: ${RELEASE_DIR}"
mkdir -v "${RELEASE_DIR}"
echo "::set-output name=release-dir::${RELEASE_DIR}"
cp -v -R "${{ github.workspace }}/GameData" "${RELEASE_DIR}"
cp -v -R "${{ github.workspace }}/LICENSE.md" "${RELEASE_DIR}/GameData/RP-1/LICENSE.md"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: RP-1
path: ${{ steps.assemble-release.outputs.release-dir }}