Skip to content

Commit

Permalink
ci: speed up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ekroon committed Jan 1, 2023
1 parent cf3a363 commit 7ed6db4
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 54 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

env:
CARGO_TERM_COLOR: always

jobs:
ci:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v2
- name: install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- uses: Swatinem/rust-cache@v2
- name: test
run: cargo test
clippy:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
54 changes: 0 additions & 54 deletions .github/workflows/rust.yml

This file was deleted.

0 comments on commit 7ed6db4

Please sign in to comment.