Skip to content

consolidated streams into 1 struct #95

consolidated streams into 1 struct

consolidated streams into 1 struct #95

Workflow file for this run

name: Rust Tests
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
release:
types: [published]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Cache Cargo registry and git
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache target directory
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-target-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-target-
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
curl \
wget \
file \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-dev
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Install Rust dependencies
run: cargo build --release
- name: Run tests
run: cargo test --all