2021-02-25 14:44:00 +00:00
|
|
|
os: linux
|
2024-01-19 10:38:06 +00:00
|
|
|
dist: jammy
|
|
|
|
node_js: 18
|
2022-08-23 13:17:15 +00:00
|
|
|
jdk:
|
2024-01-19 10:38:06 +00:00
|
|
|
- openjdk17
|
2021-02-25 14:44:00 +00:00
|
|
|
|
|
|
|
git:
|
|
|
|
depth: 3
|
|
|
|
|
|
|
|
before_cache:
|
|
|
|
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
|
|
|
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
|
|
|
|
|
|
|
cache:
|
|
|
|
npm: true
|
|
|
|
directories:
|
|
|
|
- $HOME/.npm
|
|
|
|
- $HOME/.gradle/caches/
|
|
|
|
- $HOME/.gradle/wrapper/
|
|
|
|
- $HOME/.android/build-cache
|
2023-05-10 08:23:49 +00:00
|
|
|
- $HOME/Library/Caches/Homebrew
|
2021-02-25 14:44:00 +00:00
|
|
|
|
|
|
|
before_install:
|
2024-01-19 10:38:06 +00:00
|
|
|
- echo -e "machine github.com\n login $GIT_TOKEN" > ~/.netrc
|
2021-09-01 06:34:52 +00:00
|
|
|
- nvm install
|
2021-02-25 14:44:00 +00:00
|
|
|
- node --version
|
|
|
|
- npm --version
|
|
|
|
- nvm --version
|
|
|
|
- npm ci
|
|
|
|
|
|
|
|
before_script:
|
2021-07-05 08:13:49 +00:00
|
|
|
- npx gulp
|
2021-02-25 14:44:00 +00:00
|
|
|
|
2020-10-06 07:44:27 +00:00
|
|
|
script:
|
2021-02-25 14:44:00 +00:00
|
|
|
- scripts/build.sh
|
2021-03-18 13:04:16 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
2023-05-10 08:23:49 +00:00
|
|
|
- name: "Build Android"
|
2021-07-02 12:10:22 +00:00
|
|
|
if: env(DEPLOY) = 1 OR (env(DEPLOY) = 2 AND tag IS NOT blank)
|
2024-01-19 10:38:06 +00:00
|
|
|
language: java
|
2024-01-19 15:07:34 +00:00
|
|
|
env:
|
|
|
|
- ANDROID_PLATFORM_VERSION=32
|
|
|
|
- ANDROID_BUILD_TOOLS_VERSION="32.0.0"
|
2021-07-02 14:24:49 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libsecret-1-dev
|
2023-05-10 08:23:49 +00:00
|
|
|
- name: "Build iOS"
|
2021-03-18 13:04:16 +00:00
|
|
|
language: node_js
|
2021-07-02 12:10:22 +00:00
|
|
|
if: env(BUILD_IOS) = 1 AND (env(DEPLOY) = 1 OR (env(DEPLOY) = 2 AND tag IS NOT blank))
|
2021-03-18 13:04:16 +00:00
|
|
|
os: osx
|
2023-05-10 08:23:49 +00:00
|
|
|
osx_image: xcode14.2
|
2022-03-24 10:45:44 +00:00
|
|
|
addons:
|
|
|
|
homebrew:
|
|
|
|
packages:
|
|
|
|
- jq
|
2023-05-10 08:23:49 +00:00
|
|
|
before_cache:
|
|
|
|
- brew cleanup
|