-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (41 loc) · 1.19 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
name: Rust
on: [push]
jobs:
build-vulkan:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
rust: [stable, nightly]
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@master
- name: Build lib
run: cargo build --verbose --lib
- name: Build bin
run: cargo build --verbose --bin sailor
# - name: Run tests lib
# run: cargo test --verbose --lib
# - name: Run tests bin
# run: cargo test --verbose --bin sailor
build-metal:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest]
rust: [stable, nightly]
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@master
- name: Build lib
run: cargo build --verbose --lib --no-default-features --features metal
- name: Build bin
run: cargo build --verbose --bin sailor --no-default-features --features metal
# - name: Run tests lib
# run: cargo test --verbose --lib
# - name: Run tests bin
# run: cargo test --verbose --bin sailor