Skip to content

Commit

Permalink
Set up building
Browse files Browse the repository at this point in the history
Signed-off-by: Martmists <martmists@gmail.com>
  • Loading branch information
Martmists-GH committed Sep 3, 2024
1 parent 92bdbf9 commit 9c60b1e
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,19 @@ ij_kotlin_while_on_new_line = false
ij_kotlin_wrap_elvis_expressions = 1
ij_kotlin_wrap_expression_body_functions = 1
ij_kotlin_wrap_first_method_in_call_chain = false

[{*.yaml,*.yml}]
tab_width = 2
ij_yaml_align_values_properties = do_not_align
ij_yaml_autoinsert_sequence_marker = true
ij_yaml_block_mapping_on_new_line = false
ij_yaml_indent_sequence_value = true
ij_yaml_keep_indents_on_empty_lines = false
ij_yaml_keep_line_breaks = true
ij_yaml_line_comment_add_space = false
ij_yaml_line_comment_add_space_on_reformat = false
ij_yaml_line_comment_at_first_column = true
ij_yaml_sequence_on_new_line = false
ij_yaml_space_before_colon = false
ij_yaml_spaces_within_braces = true
ij_yaml_spaces_within_brackets = true
35 changes: 35 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on: push

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y fakeroot

- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
cache: 'gradle'

- name: Build with Gradle
run: ./gradlew packageReleaseDeb

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/compose/binaries/main-release/deb/*.deb

- name: Upload Artifact
uses: actions/upload-artifact@v4
if: "!startsWith(github.ref, 'refs/tags/')"
with:
path: build/compose/binaries/main-release/deb/*.deb
12 changes: 10 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,18 @@ compose {
mainClass = "com.martmists.wallpaperengine.MainKt"

nativeDistributions {
targetFormats(TargetFormat.AppImage)
packageName = "Wallpaper Engine"
targetFormats(TargetFormat.Deb)
packageName = "WallpaperEngine"
packageVersion = project.version as String
}

buildTypes {
release {
proguard {
isEnabled = false
}
}
}
}
}
}
Expand Down

0 comments on commit 9c60b1e

Please sign in to comment.