-
Notifications
You must be signed in to change notification settings - Fork 39
40 lines (34 loc) · 1.03 KB
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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@v4
- 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