Skip to content

Checkout and build core before running check. #58

Checkout and build core before running check.

Checkout and build core before running check. #58

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
path: koalaplot-samples
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
cache: 'gradle'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Checkout koalaplot-core
uses: actions/checkout@v3
with:
repository: koalaplot/koalaplot-core
path: koalaplot-core
- name: Publish koalaplot-core to Maven Local
uses: gradle/gradle-build-action@v2
with:
arguments: check publishToMavenLocal
build-root-directory: koalaplot-core
- name: Build koalaplot-samples
uses: gradle/gradle-build-action@v2
with:
arguments: build
build-root-directory: koalaplot-samples
# jsBrowserWebpack in one step doesn't put skiko.wasm or skio.js in the distributions directory
- name: Build js koalaplot-samples
uses: gradle/gradle-build-action@v2
with:
arguments: jsBrowserWebpack
build-root-directory: koalaplot-samples
- name: Build wasm koalaplot-samples
uses: gradle/gradle-build-action@v2
with:
arguments: wasmjsBrowserDistribution
build-root-directory: koalaplot-samples