mirror of
https://github.com/bitsycore/skiko.git
synced 2026-10-06 23:17:27 +00:00
* Use kotlin 1.9.0-dev build - wip - tests do not pass * Fix tests * tmp: disable k/js tests on ci - can't find resources when running tests * Prepare publishing with new dev kotlin * Update wasm.yml
63 lines
1.8 KiB
YAML
63 lines
1.8 KiB
YAML
name: CIForWasm
|
|
|
|
on:
|
|
# Triggers the workflow on push or pull request events but only for the master branch
|
|
push:
|
|
branches: [ wasm-main ]
|
|
pull_request:
|
|
branches: [ wasm-main ]
|
|
|
|
# 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 2.0.29
|
|
./emsdk activate 2.0.29
|
|
source ./emsdk_env.sh
|
|
cd ..
|
|
- name: 'run 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 wasmTest
|
|
./gradlew --stacktrace --info -Pskiko.wasm.enabled=true -Pskiko.js.enabled=true publishSkikoWasmRuntimePublicationToMavenLocal
|
|
- uses: actions/upload-artifact@v2
|
|
if: always()
|
|
with:
|
|
name: test-reports-wasm
|
|
path: ./skiko/build/reports/tests
|
|
retention-days: 5
|