Skip to content

Commit

Permalink
github-workflows: addded jector-monkey to the publishing scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrappers-glitch committed Jul 29, 2023
1 parent 206bd34 commit abee3f0
Show file tree
Hide file tree
Showing 28 changed files with 73 additions and 566 deletions.
39 changes: 30 additions & 9 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,36 @@ jobs:
distribution: 'temurin'
java-version: '19'

- name: Compiling java
- name: Building jector
run: ./gradlew --console="verbose" -Pversion=${GITHUB_REF_NAME} :jector:build

- name: Archive build
- name: Building jector-monkey
run: ./gradlew --console="verbose" -Pversion=${GITHUB_REF_NAME} :jector-monkey:build

- name: Generate jector sources jar
run: ./gradlew -Pversion=$GITHUB_REF_NAME :jector:generateSourcesJar

- name: Generate jector-monkey sources jar
run: ./gradlew -Pversion=$GITHUB_REF_NAME :jector-monkey:generateSourcesJar

- name: Generate jector javadoc jar
run: ./gradlew -Pversion=$GITHUB_REF_NAME :jector:generateJavadocJar

- name: Generate jector-monkey javadoc jar
run: ./gradlew -Pversion=$GITHUB_REF_NAME :jector-monkey:generateJavadocJar

- name: Archive jector
uses: actions/upload-artifact@v3
with:
name: jector-build
path: jector/build/libs

- name: Archive jector-monkey
uses: actions/upload-artifact@v3
with:
name: jector-monkey-build
path: jector-monkey/build/libs

deploy:
environment:
name: maven-central
Expand Down Expand Up @@ -87,18 +108,18 @@ jobs:
- name: Send public key 'avrsandbox'
# sends the public key to a maven compatible host
run: gpg --keyserver keyserver.ubuntu.com --send-keys 85A57D4975B6EE2B6D0EA46903DE10B9F12F0B20

- name: Generate sources jar
run: ./gradlew -Pversion=$GITHUB_REF_NAME :jector:generateSourcesJar

- name: Generate javadoc jar
run: ./gradlew -Pversion=$GITHUB_REF_NAME :jector:generateJavadocJar

- name: Download build
- name: Download jector build
uses: actions/download-artifact@v3
with:
name: jector-build
path: jector/build/libs/

- name: Download jector-monkey build
uses: actions/download-artifact@v3
with:
name: jector-monkey-build
path: jector-monkey/build/libs/

- name: Deploying jector binaries
env:
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@ jobs:
distribution: 'temurin'
java-version: '19'

- name: Compiling java
- name: Compiling jector
run: ./gradlew --console="verbose" :jector:build

- name: Archive build
- name: Compiling jector-monkey
run: ./gradlew --console="verbose" :jector-monkey:build

- name: Archive jector
uses: actions/upload-artifact@v3
with:
name: jector-snapshot
Expand All @@ -61,9 +64,12 @@ jobs:
distribution: 'temurin'
java-version: '19'

- name: Generate javadoc
- name: Generate javadoc for jector
run: chmod +rwx ./gradlew && ./gradlew :jector:generateJavadocJar

- name: Generate javadoc for jector-monkey
run: chmod +rwx ./gradlew && ./gradlew :jector-monkey:generateJavadocJar

test:
# runner images with architectures (variants)
runs-on: ${{ matrix.os }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ source "./helper-scripts/project-impl/variables.sh"

# obtain dependencies in the form 'groupId:artifact:version'
version=${1}
desktop_artifact="${build_dir}/${desktop_artifactId_release}-${version}.jar"

sources_jar="${build_dir}/${desktop_artifactId_release}-${version}-sources.jar"
javadoc_jar="${build_dir}/${desktop_artifactId_release}-${version}-javadoc.jar"
lib_artifact="${lib_build_dir}/${lib_artifactId_release}-${version}.jar"
lib_sources_jar="${lib_build_dir}/${lib_artifactId_release}-${version}-sources.jar"
lib_javadoc_jar="${lib_build_dir}/${lib_artifactId_release}-${version}-javadoc.jar"

ext_artifact="${ext_build_dir}/${ext_artifactId_release}-${version}.jar"
ext_sources_jar="${ext_build_dir}/${ext_artifactId_release}-${version}-sources.jar"
ext_javadoc_jar="${ext_build_dir}/${ext_artifactId_release}-${version}-javadoc.jar"

generateGenericPom "${groupId}" \
"${desktop_artifactId_release}" \
"${lib_artifactId_release}" \
"${version}" \
"The Jector Framework" \
"A Dependency Injection framework designed for JVM and Android applications with an Open-Ended API and Submit-Callback features." \
Expand All @@ -23,7 +27,23 @@ generateGenericPom "${groupId}" \
"The AvrSandbox" \
"https://github.com/Software-Hardware-Codesign" \
"scm:git:git://github.com/Software-Hardware-Codesign/Jector.git" \
"${desktop_pomFile}"
"${lib_pomFile}"

generateGenericPom "${groupId}" \
"${ext_artifactId_release}" \
"${version}" \
"The JectorMonkey API" \
"A Specialized implementation of the Jector Framework for jMonkeyEngine." \
"https://github.com/Software-Hardware-Codesign/Jector" \
"The AvrSandbox Project, Jector Framework, BSD-3 Clause License" \
"https://github.com/Software-Hardware-Codesign/Jector/blob/master/LICENSE" \
"Pavly Gerges (aka. pavl_g)" \
"pepogerges33@gmail.com" \
"The AvrSandbox" \
"https://github.com/Software-Hardware-Codesign" \
"scm:git:git://github.com/Software-Hardware-Codesign/Jector.git" \
"${ext_pomFile}"

# publish 'android' and 'desktop' builds to maven sonatype
publishBuild "${desktop_artifactId_release}" "${desktop_artifact}" "${version}" "${javadoc_jar}" "${sources_jar}" "${desktop_pomFile}"
publishBuild "${lib_artifactId_release}" "${lib_artifact}" "${version}" "${lib_javadoc_jar}" "${lib_sources_jar}" "${lib_pomFile}"
publishBuild "${ext_artifactId_release}" "${ext_artifact}" "${version}" "${ext_javadoc_jar}" "${ext_sources_jar}" "${ext_pomFile}"
11 changes: 8 additions & 3 deletions helper-scripts/project-impl/variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@ repository="ossrh"
groupId="io.github.software-hardware-codesign"
maven_version="3.9.3"
maven_bin="./apache-maven-$maven_version/bin/mvn"
desktop_pomFile="./helper-scripts/project-impl/publishing/jector.pom"

lib_pomFile="./helper-scripts/project-impl/publishing/jector.pom"
ext_pomFile="./helper-scripts/project-impl/publishing/jector.pom"

passphrase="avrsandbox"

desktop_artifactId_release="jector"
lib_artifactId_release="jector"
ext_artifactId_release="jector-monkey"

desktop_artifactId_debug="jector-debug"
artifactId_debug="jector-debug"

settings="./helper-scripts/project-impl/publishing/maven-settings.xml"
build_dir="./jector/build/libs"
ext_build_dir="./jector-monkey/build/libs"
# ---------------------
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

Loading

0 comments on commit abee3f0

Please sign in to comment.