Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mason-Lam committed Sep 7, 2023
1 parent e1bd9ad commit ed40b74
Show file tree
Hide file tree
Showing 30 changed files with 857 additions and 753 deletions.
18 changes: 18 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="bin/main" path="src/main/java">
<attributes>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="bin/main" path="src/main/resources">
<attributes>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>
12 changes: 12 additions & 0 deletions .externalToolBuilders/Jar Builder.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="3128-common"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/3128-common/build.xml}"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,"/>
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
</launchConfiguration>
108 changes: 0 additions & 108 deletions .github/workflows/ci.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/gradleCI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build CI

# Triggers every time a commit or tag is pushed to GitHub
# Warning: use no tabs when editing this file

on: push

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

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

- name: Build
run: './gradlew build'

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: Generated Files
path: ./build/libs/*
95 changes: 95 additions & 0 deletions .github/workflows/gradleRelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: Build Release

# Only triggers when a release is published, draft releases do not count.
# Warning: use no tabs when editing this file

on:
release:
types: published

jobs:
build:
runs-on: ubuntu-latest

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

- name: Get Tag
uses: olegtarasov/[email protected]
id: getTag
with:
tagRegex: "v(.*)" # This filters out the `v` from the tag. (Ex: v3.8.0 becomes 3.8.0)

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

- name: Build 3128-common
run: './gradlew build'

- name: Upload 3128-common Jar
id: upload-release-asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./build/libs/3128-common-${{ steps.getTag.outputs.tag }}.jar
asset_name: 3128-common-${{ steps.getTag.outputs.tag }}.jar
tag: ${{ github.ref }}

- name: Upload 3128-common JavaDoc Jar
id: upload-release-asset-javadoc
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./build/libs/3128-common-${{ steps.getTag.outputs.tag }}-javadoc.jar
asset_name: 3128-common-${{ steps.getTag.outputs.tag }}-javadoc.jar
tag: ${{ github.ref }}

- name: Upload 3128-common Sources Jar
id: upload-release-asset-sources
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./build/libs/3128-common-${{ steps.getTag.outputs.tag }}-sources.jar
asset_name: 3128-common-${{ steps.getTag.outputs.tag }}-sources.jar
tag: ${{ github.ref }}


generateJSON:
# The build job (above) must complete successfully in order for this job to run.
needs: build

runs-on: ubuntu-latest

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

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

- name: Generate 3128-common.json
run: './gradlew vendorJSON'

- name: Commit 3128-common.json
uses: EndBug/[email protected]
with:
add: './3128-common.json'
message: 'Automated - Update 3128-common.json for release'

- name: Upload 3128-common.json to Release
id: upload-release-asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./3128-common.json
asset_name: 3128-common.json
tag: ${{ github.ref }}
Loading

0 comments on commit ed40b74

Please sign in to comment.