2019-10-07 15:15:41 +03:00
|
|
|
name: Build (MacOS, Linux, Windows)
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
2019-10-07 19:59:19 +03:00
|
|
|
# Please check if all components are available before updating the rust toolchain version.
|
|
|
|
# https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu.html
|
2019-10-07 19:31:07 +03:00
|
|
|
|
2019-10-07 15:15:41 +03:00
|
|
|
jobs:
|
2020-03-05 08:25:00 +03:00
|
|
|
|
|
|
|
|
2019-10-07 15:15:41 +03:00
|
|
|
build:
|
2019-10-07 20:36:42 +03:00
|
|
|
name: Build
|
2019-10-07 15:15:41 +03:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
2020-02-06 13:13:07 +03:00
|
|
|
matrix:
|
2019-10-07 15:15:41 +03:00
|
|
|
os: [windows-latest, macOS-latest, ubuntu-latest]
|
2020-03-16 05:58:00 +03:00
|
|
|
fail-fast: false
|
2019-10-07 15:15:41 +03:00
|
|
|
steps:
|
2019-10-07 17:19:06 +03:00
|
|
|
- uses: actions/checkout@v1
|
2020-03-05 08:25:00 +03:00
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
- name: Install Rust
|
2019-10-07 15:45:49 +03:00
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2019-11-18 18:56:26 +03:00
|
|
|
toolchain: nightly-2019-11-04
|
2019-10-07 15:45:49 +03:00
|
|
|
override: true
|
2020-03-05 08:25:00 +03:00
|
|
|
|
2019-11-25 13:52:51 +03:00
|
|
|
- name: Install wasm-pack
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: install
|
2020-03-05 08:25:00 +03:00
|
|
|
args: wasm-pack --version 0.8.1
|
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
- name: Install Node
|
|
|
|
uses: actions/setup-node@v1
|
2019-10-07 18:01:11 +03:00
|
|
|
with:
|
2020-03-16 05:58:00 +03:00
|
|
|
node-version: '12.16.1'
|
2020-03-05 08:25:00 +03:00
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
- name: Build
|
|
|
|
run: node ./run dist
|
2020-03-05 08:25:00 +03:00
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
- name: Upload Artifacts (Ubuntu, AppImage)
|
|
|
|
uses: actions/upload-artifact@v1
|
2020-02-06 13:13:07 +03:00
|
|
|
with:
|
2020-03-16 05:58:00 +03:00
|
|
|
name: Enso IDE (Linux, AppImage)
|
|
|
|
path: dist/client/Enso Studio-2.0.0-alpha.0.AppImage
|
|
|
|
if: matrix.os == 'ubuntu-latest'
|
2020-03-05 08:25:00 +03:00
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
- name: Upload Artifacts (Ubuntu, not packed)
|
|
|
|
uses: actions/upload-artifact@v1
|
2020-02-06 13:13:07 +03:00
|
|
|
with:
|
2020-03-16 05:58:00 +03:00
|
|
|
name: Enso IDE (Linux, not packed)
|
|
|
|
path: dist/client/linux-unpacked
|
|
|
|
if: matrix.os == 'ubuntu-latest'
|
2019-10-07 18:01:11 +03:00
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
- name: Upload Artifacts (Windows, Installer)
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
if: matrix.os == 'windows-latest'
|
|
|
|
with:
|
|
|
|
name: Enso IDE (Windows, installer)
|
|
|
|
path: dist/client/Enso Studio Setup 2.0.0-alpha.0.exe
|
2020-03-05 08:25:00 +03:00
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
- name: Upload Artifacts (Windows, not packed)
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
if: matrix.os == 'windows-latest'
|
2019-10-07 18:01:11 +03:00
|
|
|
with:
|
2020-03-16 05:58:00 +03:00
|
|
|
name: Enso IDE (Windows, not packed)
|
|
|
|
path: dist/client/win-unpacked
|
2020-03-05 08:25:00 +03:00
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
- name: Upload Artifacts (macOS, dmg)
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
if: matrix.os == 'macos-latest'
|
|
|
|
with:
|
|
|
|
name: Enso IDE (macOS, dmg)
|
|
|
|
path: dist/client/Enso Studio-2.0.0-alpha.0.dmg
|
2020-03-05 08:25:00 +03:00
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
- name: Upload Artifacts (macOS, app)
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
if: matrix.os == 'macos-latest'
|
2019-10-07 18:01:11 +03:00
|
|
|
with:
|
2020-03-16 05:58:00 +03:00
|
|
|
name: Enso IDE (macOS, app)
|
|
|
|
path: dist/client/mac/Enso Studio.app
|
2019-10-07 17:19:06 +03:00
|
|
|
|
2020-03-05 08:25:00 +03:00
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
lint:
|
|
|
|
name: Lint
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [windows-latest, macOS-latest, ubuntu-latest]
|
2019-10-07 17:19:06 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-03-05 08:25:00 +03:00
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
- name: Install Rust
|
2019-10-07 17:19:06 +03:00
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2019-11-18 18:56:26 +03:00
|
|
|
toolchain: nightly-2019-11-04
|
2019-10-07 17:19:06 +03:00
|
|
|
override: true
|
2020-03-05 08:25:00 +03:00
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
- name: Install Clippy
|
|
|
|
run: rustup component add clippy
|
2020-03-05 08:25:00 +03:00
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
- name: Install Node
|
|
|
|
uses: actions/setup-node@v1
|
2019-10-07 17:19:06 +03:00
|
|
|
with:
|
2020-03-16 05:58:00 +03:00
|
|
|
node-version: '12.16.1'
|
|
|
|
|
|
|
|
- name: Building Rust Sources
|
|
|
|
run: node ./run lint
|
2020-03-05 08:25:00 +03:00
|
|
|
|
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
test:
|
|
|
|
name: Tests
|
2020-03-05 08:25:00 +03:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-03-16 05:58:00 +03:00
|
|
|
os: [windows-latest,macOS-latest,ubuntu-latest]
|
2020-03-05 08:25:00 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
- name: Install Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
2020-03-05 08:25:00 +03:00
|
|
|
with:
|
|
|
|
toolchain: nightly-2019-11-04
|
|
|
|
override: true
|
|
|
|
|
|
|
|
- name: Install wasm-pack
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: install
|
|
|
|
args: wasm-pack --version 0.8.1
|
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
- name: Install Node
|
|
|
|
uses: actions/setup-node@v1
|
2020-03-05 08:25:00 +03:00
|
|
|
with:
|
|
|
|
node-version: '12.16.1'
|
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
- name: Run tests
|
|
|
|
run: node ./run test
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: enable after fixing https://github.com/actions-rs/grcov/issues/50
|
|
|
|
# coverage:
|
|
|
|
# name: Coverage
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
# steps:
|
|
|
|
# - uses: actions/checkout@v1
|
|
|
|
#
|
|
|
|
# - name: Install Rust
|
|
|
|
# uses: actions-rs/toolchain@v1
|
|
|
|
# with:
|
|
|
|
# toolchain: nightly-2019-11-04
|
|
|
|
# override: true
|
|
|
|
#
|
|
|
|
# - name: Install Node
|
|
|
|
# uses: actions/setup-node@v1
|
|
|
|
# with:
|
|
|
|
# node-version: '12.16.1'
|
|
|
|
#
|
|
|
|
# - name: Generate test profile
|
|
|
|
# working-directory: src/rust
|
|
|
|
# run: cargo test --all-features --no-fail-fast
|
|
|
|
# env:
|
|
|
|
# 'CARGO_INCREMENTAL': '0'
|
|
|
|
# 'RUSTFLAGS': '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads'
|
|
|
|
#
|
|
|
|
# - name: Generate coverage report
|
|
|
|
# id: coverage
|
|
|
|
# uses: actions-rs/grcov@v0.1
|
|
|
|
#
|
|
|
|
# - name: Show the coverage report
|
|
|
|
# run: cat ${{ steps.coverage.outputs.report }}
|
|
|
|
#
|
|
|
|
# - name: Upload the coverage report
|
|
|
|
# uses: codecov/codecov-action@v1.0.2
|
|
|
|
# with:
|
|
|
|
# token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
# file: ./lcov.info
|
|
|
|
|
|
|
|
|
|
|
|
build-fm:
|
|
|
|
name: Build File Manager Server Mock
|
2020-03-05 08:25:00 +03:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [windows-latest, macOS-latest, ubuntu-latest]
|
|
|
|
fail-fast: false
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
- name: Install Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
2020-03-05 08:25:00 +03:00
|
|
|
with:
|
|
|
|
toolchain: nightly-2019-11-04
|
|
|
|
override: true
|
|
|
|
|
|
|
|
- name: Build File Manager Server
|
2020-03-16 05:58:00 +03:00
|
|
|
working-directory: src/rust
|
|
|
|
run: cargo build --release --bin file-manager-server
|
2020-03-05 08:25:00 +03:00
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
- name: Upload Artifacts (Ubuntu)
|
|
|
|
uses: actions/upload-artifact@v1
|
2020-03-05 08:25:00 +03:00
|
|
|
with:
|
|
|
|
name: File Manager Server (Linux)
|
2020-03-16 05:58:00 +03:00
|
|
|
path: src/rust/target/release/file-manager-server
|
2020-03-05 08:25:00 +03:00
|
|
|
if: matrix.os == 'ubuntu-latest'
|
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
- name: Upload Artifacts (macOS)
|
|
|
|
uses: actions/upload-artifact@v1
|
2020-03-05 08:25:00 +03:00
|
|
|
with:
|
|
|
|
name: File Manager Server (macOS)
|
2020-03-16 05:58:00 +03:00
|
|
|
path: src/rust/target/release/file-manager-server
|
2020-03-05 08:25:00 +03:00
|
|
|
if: matrix.os == 'macos-latest'
|
|
|
|
|
2020-03-16 05:58:00 +03:00
|
|
|
- name: Upload Artifacts (Ubuntu)
|
|
|
|
uses: actions/upload-artifact@v1
|
2020-03-05 08:25:00 +03:00
|
|
|
with:
|
|
|
|
name: File Manager Server (Windows)
|
2020-03-16 05:58:00 +03:00
|
|
|
path: src/rust/target/release/file-manager-server.exe
|
2020-03-05 08:25:00 +03:00
|
|
|
if: matrix.os == 'windows-latest'
|