forked from audulus/vger-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (29 loc) · 879 Bytes
/
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
41
name: Rust
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# Note that we can't run the tests because GitHub CI doesn't have GPUs.
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --all-targets --verbose
- name: Check formatting
run: cargo fmt -- --check
build-wasm:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
# Note that we can't run the tests because GitHub CI doesn't have GPUs.
steps:
- uses: actions/checkout@v3
- name: Install Rust WASM target
run: rustup target add wasm32-unknown-unknown
- name: Build
run: cargo build --release --target wasm32-unknown-unknown