-
-
Notifications
You must be signed in to change notification settings - Fork 3
75 lines (60 loc) · 2.24 KB
/
verify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# test
name: Test package
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: List directory contents
run: pwd; ls -la
- name: start xvfb
run:
Xvfb :0 &
- name: After checkout, list directory contnts
run: pwd; ls -la
- name: Install libraries
run: |
sudo apt update
sudo apt install libgtk2.0-0
- name: initialize the X11 DISPLAY variable
run:
export DISPLAY=:0
- name: Pull a JavaFX JDK
run: wget http://static.azul.com/zulu/bin/zulu8.33.0.1-ca-fx-jdk8.0.192-linux_x64.tar.gz
- name: After JDK download, list directory contnts
run: pwd; ls -la
- name: Set Java
uses: actions/setup-java@v1
with:
java-version: 1.8
jdkFile: ./zulu8.33.0.1-ca-fx-jdk8.0.192-linux_x64.tar.gz
- name: Build with Gradle
run: ./gradlew shadowJar
- name: Test with Gradle
run: xvfb-run -s '-screen 0 1024x768x24' ./gradlew test
- name: If Fail
if: ${{ failure() }}
run: cat /home/runner/work/bowler-script-kernel/bowler-script-kernel/build/reports/tests/test/index.html
- name: Test Bezier
run: xvfb-run -s '-screen 0 1024x768x24' java -Dprism.verbose=true -Dprism.forceGPU=true -jar build/libs/bowler-kernel.jar -g https://gist.github.com/4aeeaa49bd3a807eed8f8ff3dea84c48.git BezierEditorDemo.groovy
- name: start xvfb
run:
Xvfb :0 &
- name: Test Local
run: xvfb-run -s '-screen 0 1024x768x24' java -Dprism.verbose=true -Dprism.forceGPU=true -jar build/libs/bowler-kernel.jar -f kernel-return-test.groovy
- name: Clean Cad
run: rm -rf $HOME/bowler-workspace/gitcache/github.com/Hephaestus-Arm/HephaestusArm2
- name: build Cad
run: xvfb-run -s '-screen 0 1024x768x24' java -Dprism.verbose=true -Dprism.forceGPU=true -jar build/libs/bowler-kernel.jar -g https://github.com/Hephaestus-Arm/HephaestusArm2.git hephaestus.xml