#53 Add Deref and DerefMut for StateHandle #1289
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |