Skip to content
This repository has been archived by the owner on Sep 15, 2020. It is now read-only.

Separate CI into build and format tasks #15

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/rust.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: build

on:
push:
Expand All @@ -16,8 +16,6 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Formatting
run: cargo fmt -- --check
- name: Build
run: cargo build
- name: Run tests
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: format

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Formatting
run: cargo fmt -- --check