Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
skiko
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuqiang
skiko
Commits
1641d30c
Unverified
Commit
1641d30c
authored
Dec 28, 2021
by
Dmitry
Committed by
GitHub
Dec 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check SkiaJvmSample on pull_request (#442)
parent
5fd5fd63
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
blank.yml
.github/workflows/blank.yml
+13
-13
README.md
README.md
+5
-1
No files found.
.github/workflows/blank.yml
View file @
1641d30c
...
...
@@ -28,10 +28,10 @@ jobs:
java-version
:
'
11'
-
shell
:
bash
run
:
|
cd $GITHUB_WORKSPACE/skiko
./gradlew --stacktrace --info -Pskiko.native.enabled=true
awt
Test
./gradlew --stacktrace --info -Pskiko.native.enabled=true
macosX64Test
./gradlew --stacktrace --info
-Pskiko.native.enabled=true publishToMavenLocal
./gradlew --stacktrace --info -Pskiko.native.enabled=true :skiko:awtTest
./gradlew --stacktrace --info -Pskiko.native.enabled=true
:skiko:macosX64
Test
./gradlew --stacktrace --info -Pskiko.native.enabled=true
:skiko:publishToMavenLocal
./gradlew --stacktrace --info
:SkiaJvmSample:installDist # check jvm sample works
-
uses
:
actions/upload-artifact@v2
with
:
name
:
test-reports-macos
...
...
@@ -51,9 +51,9 @@ jobs:
java-version
:
'
11'
-
shell
:
bash
run
:
|
cd $GITHUB_WORKSPACE/skiko
./gradlew --stacktrace --info -Pskiko.native.enabled=true
iosX64Test
./gradlew --stacktrace --info -Pskiko.native.enabled=true publishToMavenLocal
./gradlew --stacktrace --info -Pskiko.native.enabled=true :skiko:iosX64Test
./gradlew --stacktrace --info -Pskiko.native.enabled=true
:skiko:publishToMavenLocal
# TODO run iOS specific tests on iPhone simulator
-
uses
:
actions/upload-artifact@v2
with
:
name
:
test-reports-macos
...
...
@@ -73,7 +73,6 @@ jobs:
# Runs a set of commands using the runners shell
-
shell
:
bash
run
:
|
cd ./skiko
# TODO: simplify installation of compilers.
sudo apt-get update -y
sudo apt-get install build-essential software-properties-common -y
...
...
@@ -87,8 +86,9 @@ jobs:
sudo apt-get install ninja-build fontconfig libfontconfig1-dev libglu1-mesa-dev libxrandr-dev zip xvfb -y
sudo Xvfb :0 -screen 0 1280x720x24 &
export DISPLAY=:0
./gradlew --stacktrace --info -Pskiko.native.enabled=true linuxX64Test awtTest
./gradlew --stacktrace --info publishToMavenLocal
./gradlew --stacktrace --info -Pskiko.native.enabled=true :skiko:linuxX64Test :skiko:awtTest
./gradlew --stacktrace --info :skiko:publishToMavenLocal
./gradlew --stacktrace --info :SkiaJvmSample:installDist # check jvm sample works
-
uses
:
actions/upload-artifact@v2
with
:
name
:
test-reports-linux
...
...
@@ -144,9 +144,9 @@ jobs:
java-version
:
'
11'
-
shell
:
bash
run
:
|
cd ./skiko
./gradlew --stacktrace --info
awtTest
./gradlew --stacktrace --info
publishToMavenLocal
./gradlew --stacktrace --info :skiko:awtTest
./gradlew --stacktrace --info
:skiko:publishToMavenLocal
./gradlew --stacktrace --info
:SkiaJvmSample:installDist # check jvm sample works
-
uses
:
actions/upload-artifact@v2
with
:
name
:
test-reports-windows
...
...
README.md
View file @
1641d30c
...
...
@@ -72,7 +72,7 @@ To use latest development snapshot use version `0.0.0-SNAPSHOT`.
## Building JVM bindings
*
Set JAVA_HOME to location of JDK, at least version 11
*
`
cd skiko && ./gradlew publishToMavenLocal`
will build the arte
fact and publish it to local Maven repo
*
`
./gradlew :skiko:publishToMavenLocal`
will build the arti
fact and publish it to local Maven repo
To build with debug symbols and debug Skia build use
`-Pskiko.debug=true`
Gradle argument.
...
...
@@ -113,3 +113,7 @@ For example, if we want to include UI tests when we test JVM target, call this:
./gradlew awtTest -Dskiko.test.ui.enabled=true
```
Don't run any background tasks, click mouse, or press keys during the tests. Otherwise, they probably fail.
#### Run samples
-
First follow the instruction here:
[
Building JVM bindings
](
#building-jvm-bindings
)
-
`./gradlew :SkiaJvmSample:run`
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment