-
Notifications
You must be signed in to change notification settings - Fork 118
68 lines (64 loc) · 2.1 KB
/
web.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
name: WebTarget
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ wasm-main, master ]
pull_request:
branches: [ wasm-main, master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
web:
runs-on: ubuntu-20.04
steps:
- uses: browser-actions/setup-chrome@v1
with:
chrome-version: stable
id: setup-chrome
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libdbus-1-dev
- name: 'install emsdk'
shell: bash
run: |
cd ./skiko
sudo apt-get update -y
sudo apt-get install binutils build-essential -y
sudo apt-get install software-properties-common -y
sudo apt-get install python git curl wget -y
if [ -d ./emsdk ]; then
cd ./emsdk
git pull
else
git clone https://github.com/emscripten-core/emsdk.git
cd ./emsdk
fi
./emsdk install 3.1.49
./emsdk activate 3.1.49
source ./emsdk_env.sh
cd ..
- name: 'run k/wasm tests'
shell: bash
run: |
cd ./skiko
source ./emsdk/emsdk_env.sh
./gradlew --stacktrace --info -Pskiko.wasm.enabled=true -Pskiko.js.enabled=true -Pskiko.test.onci=true wasmJsTest
./gradlew --stacktrace --info -Pskiko.wasm.enabled=true -Pskiko.js.enabled=true publishSkikoWasmRuntimePublicationToMavenLocal
- name: 'run k/js tests'
shell: bash
run: |
cd ./skiko
source ./emsdk/emsdk_env.sh
./gradlew --stacktrace --info -Pskiko.wasm.enabled=true -Pskiko.js.enabled=true -Pskiko.test.onci=true jsTest
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-reports-wasm
path: ./skiko/build/reports/tests
retention-days: 5