Skip to content

Commit

Permalink
Enable GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mvsoder committed Jun 25, 2023
1 parent 4c04ac1 commit 653bcdb
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 0 deletions.
77 changes: 77 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
name: Build

on:
workflow_dispatch:
workflow_call:
inputs:
os:
required: true
type: string
jdk:
required: true
type: string
openjfx:
required: true
type: string

permissions:
actions: read
checks: write
contents: read
issues: read
packages: read
pull-requests: write
statuses: read
security-events: write

env:
DISPLAY: ":99"
XVFB_PARMS: "-screen 0 1920x1080x24 -nolisten unix"
OPENJFX_VERSION: "${{ inputs.openjfx }}"

jobs:
build:
name: Build Monocle on ${{ inputs.os }} JDK ${{ inputs.jdk }} OpenJFX ${{ inputs.openjfx }}
runs-on: ${{ inputs.os }}
timeout-minutes: 5

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

- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: zulu
java-package: jdk+fx
java-version: ${{ inputs.jdk }}

- name: Cache Gradle Resources
uses: actions/cache@v3
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle

- name: Set up Virtual Display (for Linux)
if: runner.os == 'Linux'
run: |
Xvfb ${{env.DISPLAY}} ${{env.XVFB_PARMS}} &
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./gradlew build
# - name: Publish Test Results
# uses: EnricoMi/publish-unit-test-result-action/composite@v2
# if: always()
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# check_name: Unit Test Results (${{ inputs.os }}-java-${{ inputs.jvm }})
# report_individual_runs: true
# check_run_annotations_branch: master
# check_run_annotations: all tests, skipped tests
# files: subprojects/**/build/test-results/**/*.xml
39 changes: 39 additions & 0 deletions .github/workflows/entry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: TestFX 4 CI

on:
workflow_dispatch:
pull_request:
branches:
- 'master'
push:
branches:
- 'master'

permissions:
actions: read
checks: write
contents: read
issues: read
packages: read
pull-requests: write
statuses: read
security-events: write

jobs:
# testfx-4-ubuntu-22-04-jdk-8-jfx-8:
# name: TestFX 4 - Ubuntu 22.04 - JDK 8 - JFX 8
# uses: ./.github/workflows/build.yml
# with:
# os: ubuntu-22.04
# jdk: 8
# openjfx: 8
# secrets: inherit
monocle:
name: Monocle
uses: ./.github/workflows/build.yml
with:
os: ubuntu-22.04
jdk: 11
openjfx: 11
secrets: inherit
Empty file modified gradlew
100644 → 100755
Empty file.

0 comments on commit 653bcdb

Please sign in to comment.