Skip to content

Commit

Permalink
Create build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Grayray75 committed Aug 10, 2023
1 parent f83fd18 commit b8f460d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build

on: [push, pull_request]

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: "6.0.x"

- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"

- name: Build with Gradle
run: gradlew build
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@ dependencies {
modRuntimeOnly "maven.modrinth:modmenu:7.2.1"
}

task buildWinForms(type: Exec) {
workingDir "WinForms/"
commandLine "cmd", "/c", "dotnet build --configuration Release"
}

task copyWinFormsFiles(type: Copy) {
dependsOn(buildWinForms)

from "WinForms/bin/Release/net6.0-windows"
into "src/main/resources/assets/cursedsodiumconfig/WinForms"
include "*.exe", "*.dll", "*.json"
Expand Down

0 comments on commit b8f460d

Please sign in to comment.