forked from UnderminersTeam/UndertaleModTool
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
53dcad7
commit 1c5362f
Showing
9 changed files
with
54 additions
and
524 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Build master | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_master: | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
debug: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
debug: | ||
description: 'If true, build with Debug configuration, otherwise build with Release configuration' | ||
type: boolean | ||
default: false | ||
|
||
env: | ||
CONFIGURATION: ${{ inputs.debug && 'Debug' || 'Release' }} | ||
|
||
jobs: | ||
build_gui: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x | ||
- name: Restore dependencies | ||
run: dotnet restore -r win-x64 | ||
- name: Publish UndertaleModTool | ||
run: dotnet publish UndertaleModTool --no-restore -c ${{ env.CONFIGURATION }} --self-contained true -p:PublishSingleFile=true -p:DebugType=embedded --output ./publish/UndertaleModTool | ||
- name: Publish UndertaleModToolUpdater | ||
run: dotnet publish UndertaleModToolUpdater --no-restore -c ${{ env.CONFIGURATION }} --self-contained true -p:PublishSingleFile=true -p:DebugType=embedded --output ./publish/UndertaleModTool/Updater | ||
- name: Copy external files | ||
run: | | ||
cp ./README.md ./publish/UndertaleModTool | ||
cp ./SCRIPTS.md ./publish/UndertaleModTool | ||
cp ./LICENSE.txt ./publish/UndertaleModTool | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: UndertaleModTool-${{ env.CONFIGURATION }} | ||
path: ./publish/UndertaleModTool |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.