-
-
Notifications
You must be signed in to change notification settings - Fork 1
22 lines (22 loc) · 828 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: Main Workflow
on: [push]
env:
LIB: jc-chip8
DESKTOP: jc-chip8-desktop
WEB: jc-chip8-web
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup component add rustfmt
- run: rustup component add clippy
- run: cd ${{ env.LIB }} && cargo fmt --all -- --check
- run: cd ${{ env.LIB }} && cargo clippy -- -D clippy::all
- run: cd ${{ env.LIB }} && cargo build --release
- run: cd ${{ env.DESKTOP }} && cargo fmt --all -- --check
- run: cd ${{ env.DESKTOP }} && cargo clippy -- -D clippy::all
- run: cd ${{ env.DESKTOP }} && cargo build --release
- run: cd ${{ env.WEB }} && cargo fmt --all -- --check
- run: cd ${{ env.WEB }} && cargo clippy -- -D clippy::all
- run: cd ${{ env.WEB }} && cargo build --release