ruffle/.circleci/config.yml

36 lines
1.2 KiB
YAML
Raw Normal View History

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
- 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"