generated from Mighty-A/raytracer-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (59 loc) · 1.54 KB
/
cargo.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
55
56
57
58
59
60
61
on:
push:
branches:
- master
pull_request:
branches:
- master
name: CI
jobs:
lint:
name: Lint and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout 🛎️
- uses: actions-rs/toolchain@v1
name: Setup Cargo Toolchain 🛎️
with:
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
name: Running Tests 🚀
with:
command: test
args: --all-features
- uses: actions-rs/cargo@v1
name: Check Code Format 🔧
with:
command: fmt
args: -- --check
- uses: actions-rs/cargo@v1
name: Lint with Clippy 🔧
with:
command: clippy
args: --all-targets --all-features -- -D warnings
build:
name: Build and Upload
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout 🛎️
- uses: actions-rs/toolchain@v1
name: Setup Cargo Toolchain 🛎️
- name: Download Dependencies 🛎️
run: wget https://github.com/google/fonts/blob/main/ofl/encodesans/EncodeSans%5Bwdth%2Cwght%5D.ttf
- uses: actions-rs/cargo@v1
name: Build 🔧
with:
command: build
args: --release --all-features
- uses: actions-rs/cargo@v1
name: Run 🔧
with:
command: run
args: --release
- uses: actions/upload-artifact@v2
name: Upload Artifacts 🚀
with:
name: output
path: output/