Skip to content

Merge branch 'main' into thread-local-context #1284

Merge branch 'main' into thread-local-context

Merge branch 'main' into thread-local-context #1284

Workflow file for this run

name: Rust
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Install Gtk (ubuntu only)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev
- name: Install ayatana-libappindicator (ubuntu[default/tray] only)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install -y libayatana-appindicator3-dev
- name: Install GCC Multilib
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install gcc-multilib
- name: Build
run: cargo build --verbose
- name: Test
run: cargo test
- name: Build w/o default features
run: cargo build --no-default-features
- name: Build for wasm
run: |
rustup target add wasm32-unknown-unknown
RUSTFLAGS=--cfg=web_sys_unstable_apis cargo build --target wasm32-unknown-unknown