Skip to content

Fix event handler leak in keyboard #11

Fix event handler leak in keyboard

Fix event handler leak in keyboard #11

Workflow file for this run

name: Build Debug
on:
push:
branches: ["dev"]
pull_request:
branches: ["dev"]
jobs:
build:
runs-on: self-hosted
env:
DOTNET_INSTALL_DIR: ~/.dotnet
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Copy build time dependencies
run: cp ~/lcvr/Libs/*.dll ./Libs/
- name: Setup Dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0"
- name: Restore NuGet packages
run: dotnet restore
- name: Build app
run: dotnet build
- name: Prepare and bundle package
id: prepare
run: |
# Set up template
unzip ~/lcvr/package-template.zip -d ./package
# Copy and sign debug binary
cp bin/Debug/netstandard2.1/LCVR.dll ./package/BepInEx/plugins/LCVR/
gpg --output ./package/BepInEx/plugins/LCVR/LCVR.dll.sig --detach-sig ./package/BepInEx/plugins/LCVR/LCVR.dll
# Copy docs and license
cp CHANGELOG.md ./package/CHANGELOG.md
cp Docs/thunderstore.md ./package/README.md
cp LICENSE ./package/LICENSE
# Extract package version from project
version=$(grep -oP '<Version>\K[^<]+' LCVR.csproj)
echo "version=$version" >> "$GITHUB_OUTPUT"
# Update Thunderstore manifest
jq ".version_number = \"$version\"" ./package/manifest.json > ./package/manifest_new.json
mv ./package/manifest_new.json ./package/manifest.json
- name: Upload build artifacts
if: github.event_name == 'push'
uses: actions/upload-artifact@v4
with:
name: LCVR-${{ steps.prepare.outputs.version }}-dev
path: ./package