Skip to content

Have the client independently spawn the resource exhaustion animation to avoid having frames between when the animation begins playing and when the resource's graphic changes #987

Have the client independently spawn the resource exhaustion animation to avoid having frames between when the animation begins playing and when the resource's graphic changes

Have the client independently spawn the resource exhaustion animation to avoid having frames between when the animation begins playing and when the resource's graphic changes #987

Workflow file for this run

name: Pull Requests
on:
pull_request:
branches: [ "main" ]
paths:
- 'Framework/**'
- 'Intersect*/**'
- '!Intersect.Tests*/**'
- '!launchSettings.json'
- '!*.md'
- '!Examples/**'
- '!Documentation/**'
- '!.git*'
- '!*.DotSettings'
workflow_dispatch:
inputs:
forceBuild:
description: 'If the build should be forced even on cache hit'
default: false
type: boolean
forceRestore:
description: 'If dependencies should be forced even on cache hit'
default: false
type: boolean
env:
VERSION_PREFIX: 0.8.0
VERSION_SUFFIX_NAME: pr${{ github.event.number }}
VERSION_SUFFIX: -pr${{ github.event.number }}
PARENT_VERSION_SUFFIX: -beta
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache binaries
uses: actions/[email protected]
id: cache-binaries
with:
key: ${{ runner.os }}-binaries-${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}-${{ hashFiles('/*.props', 'Intersect*/**/*.cs*', 'Framework/**/*.cs*') }}
path: |
Intersect*/bin/Release/**/*
- name: Setup dotnet
if: steps.cache-binaries.outputs.cache-hit != 'true' || inputs.forceBuild == true || inputs.forceRestore == true
uses: actions/[email protected]
with:
dotnet-version: 8.0.x
- name: Cache NuGet dependencies
uses: actions/[email protected]
id: cache-nuget
if: steps.cache-binaries.outputs.cache-hit != 'true' || inputs.forceBuild == true || inputs.forceRestore == true
with:
key: ${{ runner.os }}-nuget-${{ env.VERSION_PREFIX }}${{ env.PARENT_VERSION_SUFFIX }}-${{ hashFiles('/*.props', 'Intersect*/*.csproj', 'Framework/*/*.csproj') }}
path: |
~/.nuget/packages
Intersect*/obj/
- name: Restore NuGet Packages
if: steps.cache-binaries.outputs.cache-hit != 'true' && steps.cache-nuget.outputs.cache-hit != 'true' || inputs.forceRestore == true
run: dotnet restore Intersect.sln
# - run: ls -R ~/.nuget/packages
- name: Build solution
if: steps.cache-binaries.outputs.cache-hit != 'true' || inputs.forceBuild == true || inputs.forceRestore == true
run: |
dotnet publish Intersect.sln -r win-x64 -p:Configuration=Release -p:PackageVersion=${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}.${{ github.run_number }}+build.${{ github.sha }} -p:Version=${{ env.VERSION_PREFIX }}.${{ github.run_number }} -p:CommitSha=${{ github.sha }} -p:BuildNumber=${{ github.run_number }} -p:VersionNameSuffix=${{ env.VERSION_SUFFIX_NAME }}
git apply disable-windows-only.patch
dotnet publish Intersect.sln -r linux-x64 -p:Configuration=Release -p:PackageVersion=${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}.${{ github.run_number }}+build.${{ github.sha }} -p:Version=${{ env.VERSION_PREFIX }}.${{ github.run_number }} -p:CommitSha=${{ github.sha }} -p:BuildNumber=${{ github.run_number }} -p:VersionNameSuffix=${{ env.VERSION_SUFFIX_NAME }}
dotnet publish Intersect.sln -r osx-x64 -p:Configuration=Release -p:PackageVersion=${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}.${{ github.run_number }}+build.${{ github.sha }} -p:Version=${{ env.VERSION_PREFIX }}.${{ github.run_number }} -p:CommitSha=${{ github.sha }} -p:BuildNumber=${{ github.run_number }} -p:VersionNameSuffix=${{ env.VERSION_SUFFIX_NAME }}
- name: Package artifacts
uses: AscensionGameDev/actions@a573cea975b37832c9fe4a9ee880e22af93696de
with:
bundle: .github/bundles/patch.*.json
version: ${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}.${{ github.run_number }}+build.${{ github.sha }}
# - name: Debug output
# run: ls -R ./dist
- name: Upload linux-x64 artifacts
uses: actions/[email protected]
with:
if-no-files-found: error
path: "dist/linux-x64/**/*"
name: intersect-linux-x64-${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}.${{ github.run_number }}+build.${{ github.sha }}
retention-days: 1
- name: Upload osx-x64 artifacts
uses: actions/[email protected]
with:
if-no-files-found: error
path: "dist/osx-x64/**/*"
name: intersect-osx-x64-${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}.${{ github.run_number }}+build.${{ github.sha }}
retention-days: 1
- name: Upload win-x64 artifacts
uses: actions/[email protected]
with:
if-no-files-found: error
path: "dist/win-x64/**/*"
name: intersect-win-x64-${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}.${{ github.run_number }}+build.${{ github.sha }}
retention-days: 1