From 19169c450a36fff8115c871008d9fdaef26457c8 Mon Sep 17 00:00:00 2001 From: Dmitry Stepanov Date: Sun, 31 Mar 2024 17:52:48 +0300 Subject: [PATCH] added ci for project template for wasm and android --- .github/workflows/ci.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1429b3dfd..aad43508b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -144,4 +144,21 @@ jobs: fyrox-template init --name test_project --style=3d cd test_project fyrox-template upgrade --version=latest --local - cargo build --package editor \ No newline at end of file + cargo build --package editor + - name: Build Android + env: + # Suppress warnings, because project template contains a lot of unused method arguments. + RUSTFLAGS: -Awarnings + run: | + rustup target add armv7-linux-androideabi + cargo install cargo-apk + cargo-apk apk build --package executor-android --target armv7-linux-androideabi + - name: Build WASM + env: + # Suppress warnings, because project template contains a lot of unused method arguments. + RUSTFLAGS: -Awarnings + run: | + rustup target add wasm32-unknown-unknown + cargo install wasm-pack + cd executor-wasm + wasm-pack build --target=web \ No newline at end of file