File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 4545
4646 - name : Run designer CSS localization tests
4747 run : xvfb-run -a ant -noinput -buildfile CodenameOneDesigner/build.xml test-css-localization
48+
49+ - name : Build designer release jar
50+ run : xvfb-run -a ant -noinput -buildfile CodenameOneDesigner/build.xml release
51+
52+ - name : Verify designer CLI CSS compilation
53+ run : |
54+ tmp_dir="CodenameOneDesigner/tmp-cli-test"
55+ css_file="$tmp_dir/test.css"
56+ l10n_dir="$tmp_dir/localization"
57+ output_file="$tmp_dir/output.res"
58+ mkdir -p "$l10n_dir"
59+ cat <<'EOF' > "$css_file"
60+ #TestLabel {
61+ color: rgb(255, 0, 0);
62+ }
63+ EOF
64+ cat <<'EOF' > "$l10n_dir/Strings.properties"
65+ greeting=Hello from CLI
66+ EOF
67+ xvfb-run -a java -Dcli=true -jar CodenameOneDesigner/dist/designer.jar \
68+ -css -stateless -input "$css_file" -output "$output_file" -localization "$l10n_dir"
69+ test -s "$output_file"
70+
71+ - name : Upload designer jar artifact
72+ uses : actions/upload-artifact@v3
73+ with :
74+ name : designer-jar
75+ path : CodenameOneDesigner/dist/designer.jar
You can’t perform that action at this time.
0 commit comments