Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/ci-gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
org.gradle.daemon=false
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx5120m
org.gradle.workers.max=2
kotlin.incremental=false
kotlin.compiler.execution.strategy=in-process
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
open-pull-requests-limit: 30
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build Feature Branch artifact

on: [ push, pull_request ]

jobs:
build-job:
runs-on: ubuntu-latest # enables hardware acceleration in the virtual machine
timeout-minutes: 30

steps:
- name: Checkout
uses: actions/checkout@v5

- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17


- name: Print git commit variables
run: |
echo "TAG: $CURRENT_TAG"

- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: Build
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew --stacktrace clean assemble
55 changes: 55 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Publish to GitHub Packages

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- '*' # Push events to matching *, i.e. 1.0, 20.15.10


jobs:
build-job:
runs-on: macos-latest
timeout-minutes: 30

permissions:
contents: write
packages: write

steps:
- name: Checkout
uses: actions/checkout@v5

- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17


- name: Print git commit variables
run: |
echo "TAG: $CURRENT_TAG"

- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

- name: Build
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew --stacktrace clean assemble

- name: Setup Gradle
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1

- name: Publish package
run: ./gradlew :kotlin-jupyter:publishAllPublicationsToGithubPackagesRepository
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORG_GRADLE_PROJECT_githubPackagesUsername: ${{ github.actor }}
ORG_GRADLE_PROJECT_githubPackagesPassword: ${{ secrets.GITHUB_TOKEN }}
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
local.properties
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
.kotlin

## skainet zoo
*ubyte
*gz

## antora
_public
.cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/


### VS Code ###
.vscode/

### Mac OS ###
.DS_Store
45 changes: 45 additions & 0 deletions RELEASING.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
= Releasing

. Update the `VERSION_NAME` in `gradle.properties` to the release version.

. Update the `CHANGELOG.md`:

.. Change the `Unreleased` header to the release version.
.. Add a link URL to ensure the header link works.
.. Add a new `Unreleased` section to the top.
. Update the `README.md` so the "Download" section reflects the new release version and the
snapshot section reflects the next "SNAPSHOT" version.

. Commit

`
$ git commit -am "Prepare version X.Y.X"
`

. Publish

----
$ ./gradlew clean publish
----

If this step fails, drop the Sonatype repo, fix, commit, and publish again.

. Tag

`
$ git tag -am "Version X.Y.Z" X.Y.Z
`

. Update the `VERSION_NAME` in `gradle.properties` to the next "SNAPSHOT" version.

. Commit

`
$ git commit -am "Prepare next development version"
`

. Push!

`
$ git push && git push --tags
`
8 changes: 8 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
plugins {
alias(libs.plugins.jetbrainsKotlinJvm) apply false
}

allprojects {
group = "sk.ai.net.jupyter"
version = "0.0.7"
}
19 changes: 19 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#Gradle
org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx2048M"
org.gradle.caching=true
org.gradle.configuration-cache=true
#Kotlin
kotlin.code.style=official
kotlin.js.compiler=ir
#MPP
kotlin.mpp.enableCInteropCommonization=true
#Android
android.useAndroidX=true
android.nonTransitiveRClass=true


kotlin.mpp.stability.nowarn=true

SONATYPE_HOST=DEFAULT
SONATYPE_AUTOMATIC_RELEASE=false
RELEASE_SIGNING_ENABLED=false
16 changes: 16 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[versions]
kotlin = "1.9.23"
shadow = "8.1.1"
skainet = "0.0.7"


[libraries]
skainet-core = { module = "sk.ai.net:core", version.ref = "skainet" }
skainet-io = { module = "sk.ai.net:io", version.ref = "skainet" }
skainet-modelZoo = { module = "sk.ai.net:model-zoo", version.ref = "skainet" }
skainet-gguf = { module = "sk.ai.net:gguf", version.ref = "skainet" }


[plugins]
jetbrainsKotlinJvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
johnrengelman-shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading