summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorRyan Riginding <marc.riginding@gmail.com>2019-10-05 09:17:18 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-10-05 03:17:18 -0400
commit2a02107bba27685324e62bd099ccaaac9c3b08d5 (patch)
tree7efb5b63c3148d8737ae1a4d83b201cf11530ee4 /.github/workflows/build.yml
parentb81e5db17aa8b3088d6034ddf86b79c69410f012 (diff)
merge build.yml and lint.yml (#3066)
Fixes #3063
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml24
1 files changed, 23 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index d82914a48..a1c321c98 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -10,12 +10,16 @@ jobs:
strategy:
matrix:
os: [macOS-10.14, windows-2016, ubuntu-16.04]
- kind: ['test', 'bench']
+ kind: ['test', 'bench', 'lint']
exclude:
- os: windows-2016
kind: 'bench'
+ - os: windows-2016
+ kind: 'lint'
- os: macOS-10.14
kind: 'bench'
+ - os: macOS-10.14
+ kind: 'lint'
steps:
- name: Configure git
run: git config --global core.symlinks true
@@ -31,6 +35,12 @@ jobs:
with:
rust-version: "1.38.0"
+ - name: Install clippy and rustfmt
+ if: matrix.kind == 'lint'
+ run: |
+ rustup component add clippy
+ rustup component add rustfmt
+
- name: Install python
uses: actions/setup-python@v1
with:
@@ -76,6 +86,18 @@ jobs:
SCCACHE_IDLE_TIMEOUT: 0
run: sccache --start-server
+ - name: lint.py
+ if: matrix.kind == 'lint'
+ run: python ./tools/lint.py
+
+ - name: test_format.py
+ if: matrix.kind == 'lint'
+ run: python ./tools/test_format.py
+
+ - name: Clippy
+ if: matrix.kind == 'lint'
+ run: cargo clippy --all-targets --release --locked -- -D clippy::all
+
- name: Build
run: cargo build --release --locked --all-targets