2019-05-08 19:39:30 +00:00
|
|
|
version: 2.1
|
|
|
|
description: Ruffle - Flash Player emulator written in Rust
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
2019-08-15 21:01:04 +00:00
|
|
|
- image: circleci/rust:1.36
|
2019-05-08 19:39:30 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
|
|
key: project-cache
|
2019-08-22 05:44:49 +00:00
|
|
|
- run:
|
|
|
|
name: Tests
|
|
|
|
command: |
|
|
|
|
rustup toolchain install stable
|
|
|
|
rustup run stable rustc --version --verbose
|
|
|
|
rustup run stable cargo test --package=ruffle_core
|
2019-05-08 19:39:30 +00:00
|
|
|
- run:
|
|
|
|
name: Desktop Build
|
|
|
|
command: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -y install libasound2-dev # Required for cpal crate on Linux
|
|
|
|
rustup toolchain install stable
|
|
|
|
rustup run stable rustc --version --verbose
|
|
|
|
rustup run stable cargo --version --verbose
|
|
|
|
rustup run stable cargo build --package ruffle_desktop
|
|
|
|
- run:
|
|
|
|
name: Web Build
|
|
|
|
command: |
|
|
|
|
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
|
|
|
|
sudo apt-get install -y nodejs
|
|
|
|
rustup toolchain install stable
|
|
|
|
rustup run stable rustc --version --verbose
|
|
|
|
rustup run stable cargo --version --verbose
|
2019-06-25 23:53:58 +00:00
|
|
|
cd web/demo
|
|
|
|
npm install
|
|
|
|
npm run build
|
2019-05-08 19:39:30 +00:00
|
|
|
- save_cache:
|
|
|
|
key: project-cache
|
|
|
|
paths:
|
|
|
|
- "~/.cargo"
|
|
|
|
- "./target"
|