forked from miho/JCSG
-
Notifications
You must be signed in to change notification settings - Fork 8
149 lines (123 loc) · 3.56 KB
/
Copy pathverify.yml
File metadata and controls
149 lines (123 loc) · 3.56 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
name: "Test Build"
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
branches:
- '*'
jobs:
build-linux-arm:
runs-on: ubuntu-24.04-arm
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: initialize the X11 DISPLAY variable
run:
export DISPLAY=:0
- name: After checkout, list directory contents
run: pwd; ls -la
- name: Install libraries
run: |
sudo apt update
sudo apt install libgtk2.0-0
- name: Pull a JavaFX JDK
run: wget https://cdn.azul.com/zulu/bin/zulu25.32.21-ca-fx-jdk25.0.2-linux_aarch64.tar.gz
- name: Set Java
uses: actions/setup-java@v1
with:
java-version: 25
jdkFile: ./zulu25.32.21-ca-fx-jdk25.0.2-linux_aarch64.tar.gz
- name: Test with Gradle
run: xvfb-run -s '-screen 0 1024x768x24' ./gradlew test
build-windows:
runs-on: windows-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Pull a JavaFX JDK
run: curl -O https://cdn.azul.com/zulu/bin/zulu25.32.21-ca-fx-jdk25.0.2-win_x64.zip
- name: Set Java
uses: actions/setup-java@v1
with:
java-version: 25
jdkFile: ./zulu25.32.21-ca-fx-jdk25.0.2-win_x64.zip
- name: Test with Gradle
run: ./gradlew test
build-mac:
runs-on: macos-14
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Java and Maven
run: |
wget https://cdn.azul.com/zulu/bin/zulu25.32.21-ca-fx-jdk25.0.2-macosx_aarch64.tar.gz
tar -xzf zulu25.32.21-ca-fx-jdk25.0.2-macosx_aarch64.tar.gz
echo "JAVA_HOME=$(pwd)/zulu25.32.21-ca-fx-jdk25.0.2-macosx_aarch64" >> $GITHUB_ENV
echo "PATH=$(pwd)/zulu25.32.21-ca-fx-jdk25.0.2-macosx_aarch64/bin:$PATH" >> $GITHUB_ENV
- name: Test with Gradle
run: ./gradlew test
build-linux-x86:
runs-on: ubuntu-24.04
container:
image: ubuntu:20.04
options: --user root
env:
CC: gcc
CXX: g++
steps:
- run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y \
unzip \
curl \
wget \
ca-certificates \
lsb-release \
gnupg \
git \
file \
xz-utils \
openjdk-11-jdk \
gcc \
g++ \
make \
maven \
libgtk2.0-0 \
xvfb
- 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: initialize the X11 DISPLAY variable
run:
export DISPLAY=:0
- name: After checkout, list directory contnts
run: pwd; ls -la
- name: Pull a JavaFX JDK
run: wget https://cdn.azul.com/zulu/bin/zulu25.32.21-ca-fx-jdk25.0.2-linux_x64.tar.gz
- name: Set Java
uses: actions/setup-java@v1
with:
java-version: 25
jdkFile: ./zulu25.32.21-ca-fx-jdk25.0.2-linux_x64.tar.gz
- name: Test with Gradle
run: xvfb-run -s '-screen 0 1024x768x24' ./gradlew test