2019-08-27 07:17:01 +02:00
|
|
|
name: Rust
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
2020-05-28 23:11:03 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
|
|
|
2019-08-27 07:17:01 +02:00
|
|
|
steps:
|
|
|
|
- uses: hecrj/setup-rust-action@master
|
|
|
|
with:
|
|
|
|
rust-version: stable
|
2020-05-28 23:11:03 +02:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.0-dev libssl-dev
|
|
|
|
if: runner.os == 'Linux'
|
|
|
|
|
2019-08-27 07:17:01 +02:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-05-28 23:11:03 +02:00
|
|
|
node-version: '12.x'
|
2019-08-27 07:17:01 +02:00
|
|
|
- run: npm install -g yarn
|
2020-05-28 23:11:03 +02:00
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
2019-08-27 07:17:01 +02:00
|
|
|
- name: Build
|
|
|
|
run: cargo build --verbose
|