-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (49 loc) · 1.33 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Rust
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
env:
CARGO_TERM_COLOR: always
jobs:
build_with_glutin_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install_alsa
run: |
sudo apt-get -qq update
sudo apt-get -qq install libasound2-dev
- name: build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
build_with_sdl2_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install_sdl2
run: |
sudo apt-get -qq update
sudo apt-get -qq install libsdl2-dev
- name: build_with_sdl2_enabled
run: cargo build --no-default-features --features=extras,sdl2 --verbose
- name: Run tests
run: cargo test --verbose
build_with_glutin_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: glutin_windows
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
build_with_web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install_wasm_target
run: rustup target add wasm32-unknown-unknown
- name: build
run: cargo build --target=wasm32-unknown-unknown --verbose