Skip to content

Commit

Permalink
GitHub Actions: run clippy, check formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
iceiix committed Jul 5, 2020
1 parent f5f61e0 commit a0cc266
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,18 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y libxcb-composite0-dev
- name: Build binary
- name: Build
run: |
cargo build --verbose --release
env:
MACOSX_DEPLOYMENT_TARGET: 10.14
- name: Run clippy
uses: actions-rs/clippy-check@v1.0.5
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets -- -D warnings
- name: Check formatting
run: cargo fmt --all -- --check
- name: (Linux/MacOS) Strip binary
if: matrix.os != 'windows-latest'
run: strip target/release/stevenarella
Expand Down

0 comments on commit a0cc266

Please sign in to comment.