Skip to content

Commit

Permalink
Finer granularity for Actions; update build badges.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikael Vejdemo-Johansson committed Nov 22, 2023
1 parent 9a7f026 commit c35bbda
Show file tree
Hide file tree
Showing 8 changed files with 202 additions and 114 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle

name: CI with Gradle

on:
push:
branches: [ "kotlin" ]
pull_request:
branches: [ "kotlin" ]
workflow_dispatch:

jobs:
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Gradle Built
uses: gradle/gradle-build-action@v2 # v2.6.0
with:
gradle-version: 8.4
- name: dokkaHtml
run: ./gradlew dokkaHtml
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build/dokka/html # The folder the action should deploy.
32 changes: 32 additions & 0 deletions .github/workflows/fullbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle

name: CI with Gradle

on:
push:
branches: [ "kotlin" ]
pull_request:
branches: [ "kotlin" ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Build
uses: gradle/gradle-build-action@v2 # v2.6.0
with:
gradle-version: 8.4
- name: Execute full build and test
run: ./gradlew build
111 changes: 0 additions & 111 deletions .github/workflows/gradle.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle

name: CI with Gradle

on:
push:
branches: [ "kotlin" ]
pull_request:
branches: [ "kotlin" ]
workflow_dispatch:

jobs:
js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Build
uses: gradle/gradle-build-action@v2 # v2.6.0
with:
gradle-version: 8.4
- name: Execute JS tests
run: ./gradlew jsTest
32 changes: 32 additions & 0 deletions .github/workflows/jvm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle

name: CI with Gradle

on:
push:
branches: [ "kotlin" ]
pull_request:
branches: [ "kotlin" ]
workflow_dispatch:

jobs:
jvm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Build
uses: gradle/gradle-build-action@v2 # v2.6.0
with:
gradle-version: 8.4
- name: Execute JVM tests
run: ./gradlew jvmTest
32 changes: 32 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle

name: CI with Gradle

on:
push:
branches: [ "kotlin" ]
pull_request:
branches: [ "kotlin" ]
workflow_dispatch:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Gradle Built
uses: gradle/gradle-build-action@v2 # v2.6.0
with:
gradle-version: 8.4
- name: Lint
run: ./gradlew ktlintCheck
32 changes: 32 additions & 0 deletions .github/workflows/native.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle

name: CI with Gradle

on:
push:
branches: [ "kotlin" ]
pull_request:
branches: [ "kotlin" ]
workflow_dispatch:

jobs:
native:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Build
uses: gradle/gradle-build-action@v2 # v2.6.0
with:
gradle-version: 8.4
- name: Execute native tests
run: ./gradlew nativeTest
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[![test](https://github.com/appliedtopology/tda4j/actions/workflows/test.yml/badge.svg?branch=scala)](https://github.com/appliedtopology/tda4j/actions)
[![lint](https://github.com/appliedtopology/tda4j/actions/workflows/lint.yml/badge.svg?branch=scala)](https://github.com/appliedtopology/tda4j/actions)
[![docs](https://github.com/appliedtopology/tda4j/actions/workflows/docs.yml/badge.svg?branch=scala)](https://github.com/appliedtopology/tda4j/actions)
[![lint](https://github.com/appliedtopology/tda4j/actions/workflows/lint.yml/badge.svg?branch=kotlin)](https://github.com/appliedtopology/tda4j/actions)
[![doc](https://github.com/appliedtopology/tda4j/actions/workflows/doc.yml/badge.svg?branch=kotlin)](https://github.com/appliedtopology/tda4j/actions)
[![js-test](https://github.com/appliedtopology/tda4j/actions/workflows/js.yml/badge.svg?branch=kotlin)](https://github.com/appliedtopology/tda4j/actions)
[![jvm-test](https://github.com/appliedtopology/tda4j/actions/workflows/jvm.yml/badge.svg?branch=kotlin)](https://github.com/appliedtopology/tda4j/actions)
[![native-test](https://github.com/appliedtopology/tda4j/actions/workflows/native.yml/badge.svg?branch=kotlin)](https://github.com/appliedtopology/tda4j/actions)
[![full-build](https://github.com/appliedtopology/tda4j/actions/workflows/fullbuild.yml/badge.svg?branch=kotlin)](https://github.com/appliedtopology/tda4j/actions)


# TDA4j
Expand Down

0 comments on commit c35bbda

Please sign in to comment.