forked from dflib/jjava
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from m-dzianishchyts/workflows
Workflows
- Loading branch information
Showing
48 changed files
with
412 additions
and
1,213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: 'build test' | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
java: [ 11, 17, 21 ] | ||
|
||
steps: | ||
- name: Checkout... | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK... | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
|
||
- name: Build and test... | ||
run: mvn clean verify -U |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: 'create release' | ||
|
||
on: | ||
push: | ||
tags: | ||
- '[0-9]+.[0-9]+*' | ||
|
||
jobs: | ||
prepare-release: | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
tag: ${{ steps.vars.outputs.tag }} | ||
version: ${{ steps.vars.outputs.version }} | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
|
||
steps: | ||
- name: Checkout... | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set version... | ||
id: vars | ||
run: | | ||
RELEASE_TAG=${GITHUB_REF#refs/*/} | ||
echo ::set-output name=tag::${RELEASE_TAG} | ||
echo ::set-output name=version::${RELEASE_TAG:1} | ||
- name: Create release... | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.vars.outputs.tag }} | ||
release_name: ${{ steps.vars.outputs.tag }} | ||
body: JJava ${{ steps.vars.outputs.tag }} release | ||
draft: true | ||
prerelease: false | ||
|
||
build-and-upload: | ||
needs: prepare-release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout... | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK... | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
|
||
- name: Build and test... | ||
run: mvn clean verify -U | ||
|
||
- name: Upload Archive... | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.prepare-release.outputs.upload_url }} | ||
asset_path: ./target/jjava-${{ needs.prepare-release.outputs.version }}.zip | ||
asset_name: jjava-${{ needs.prepare-release.outputs.version }}.zip | ||
asset_content_type: application/zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
.gradle/ | ||
.idea/ | ||
build/ | ||
out/ | ||
target/ | ||
.classpath | ||
.project | ||
.settings | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd"> | ||
<id>zip</id> | ||
<formats> | ||
<format>zip</format> | ||
</formats> | ||
<includeBaseDirectory>false</includeBaseDirectory> | ||
<files> | ||
<file> | ||
<source>${project.build.directory}/${project.build.finalName}.jar</source> | ||
<outputDirectory>java</outputDirectory> | ||
</file> | ||
<file> | ||
<source>assembly/zip/kernel.json</source> | ||
<outputDirectory>java</outputDirectory> | ||
<filtered>true</filtered> | ||
</file> | ||
<file> | ||
<source>assembly/zip/install.py</source> | ||
<outputDirectory>/</outputDirectory> | ||
</file> | ||
</files> | ||
</assembly> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
buildSrc/src/main/groovy/io/github/spencerpark/gradle/DeclaredModuleInfo.groovy
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.