mirror of
https://github.com/browsermt/bergamot-translator.git
synced 2024-09-11 13:46:12 +03:00
c478a626a8
- The upstream browsermt/bergamot-translator builds the wasm artifacts in top level build folder now
33 lines
763 B
YAML
33 lines
763 B
YAML
version: 2.1
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: 'emscripten/emsdk:2.0.9'
|
|
resource_class: medium
|
|
|
|
working_directory: ~/checkout
|
|
|
|
steps:
|
|
- checkout
|
|
|
|
- run:
|
|
name: Build WASM
|
|
command: bash build-wasm.sh
|
|
|
|
- run:
|
|
name: Check artifacts
|
|
working_directory: build-wasm
|
|
command: |
|
|
ls -all bergamot*
|
|
if ls bergamot*.wasm &>/dev/null && ls bergamot*.js &>/dev/null && ls bergamot*.data &>/dev/null
|
|
then
|
|
echo "Artifacts Successfully Generated"
|
|
else
|
|
echo "Failure: Artifacts Not Present"
|
|
exit 1
|
|
fi
|
|
|
|
- store_artifacts:
|
|
path: "build-wasm"
|
|
destination: "build-wasm"
|