-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (51 loc) · 1.43 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
55
56
on: push
name: Build and test
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Clippy
run: cargo clippy --all-features -- -D warnings
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Format
run: cargo fmt --all -- --check
tailwind-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: '14'
- name: Install Tailwind
run: npm install -D tailwindcss
- name: Install Dependencies
run: npm install @tailwindcss/typography @tailwindcss/forms @tailwindcss/aspect-ratio
- name: Build
run: npx tailwind -o styles/main.css
- name: Upload Style Artifact
uses: actions/upload-artifact@v2
with:
name: tailwind-style
path: styles/main.css
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Add wasm32 target
run: rustup target add wasm32-unknown-unknown
- name: Install Trunk
run: cargo install --locked trunk
- name: Clean
run: cargo clean
- name: Download Style Artifact
uses: actions/download-artifact@v2
with:
name: tailwind-style
path: styles
- name: Build
run: trunk build --release --verbose