Skip to content

Structuring

Structuring #21

Workflow file for this run

name: "CI Build"
on: [ push ]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
distribution: temurin
java-version-file: .oj/jdk-version.txt
- uses: gradle/[email protected]
- run: "./oj check"
env:
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }}
BUILD_CACHE_PWD: ${{ secrets.BUILD_CACHE_PWD }}
test-functional:
needs: check
strategy:
matrix:
module: [app-javafx, lib]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
distribution: temurin
java-version-file: .oj/jdk-version.txt
- uses: gradle/[email protected]
- run: "./oj :${{ matrix.module }}:checkFunctional"
env:
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }}
BUILD_CACHE_PWD: ${{ secrets.BUILD_CACHE_PWD }}
package:
needs: check
strategy:
matrix:
os: [ubuntu, windows, macos]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
distribution: temurin
java-version-file: .oj/jdk-version.txt
- uses: gradle/[email protected]
- run: "./oj assemble${{ matrix.os }}"
env:
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }}
BUILD_CACHE_PWD: ${{ secrets.BUILD_CACHE_PWD }}
build:
needs: [test-functional, package]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
distribution: temurin
java-version-file: .oj/jdk-version.txt
- uses: gradle/[email protected]
- run: "./oj build"
env:
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }}
BUILD_CACHE_PWD: ${{ secrets.BUILD_CACHE_PWD }}
- uses: actions/[email protected]
with:
name: Application Packages
path: .oj/build/*/packages/*